framapiaf.org est l'un des nombreux serveurs Mastodon indépendants que vous pouvez utiliser pour participer au fédiverse.
Un service Mastodon fourni par l'association d’éducation populaire Framasoft.

Administré par :

Statistiques du serveur :

1,4K
comptes actifs

#rofi

1 message1 participant1 message aujourd’hui
A répondu dans un fil de discussion

@selje I used #rofi + #Thunar custom actions to bodge up a previewer. For text files I added this command:
```
rofi -show prvw -modes "prvw:head -20 %n" -theme-str "mainbox {children:[listview];}"
```
That pops up a rofi window with the first 20 lines of the file. Would be great if I could assign it to a hotkey, so I don't have to right-click to get it, but it's a start.

Been tweaking my #Rofi theme, because it was rainy and I was too knackered to do anything else useful today. Rofi is an application switcher and more (calculator, character picker, launcher, weather widget, etc.). It is used in minimalist window managers like #i3wm, instead of a top-bar, dock or Start™ menu.
I used to use #Litestep on Windows, and using i3 and Rofi to DIY my own graphical shell feels similar.
#Linux #Ricing

#DeepSeek may have came to my rescue when seeking some assistance with #Rofi.

Question:
How do I program Rofi to just display applications in Linux?

Answer:
To configure Rofi to display only applications in Linux, you can use the `rofi -show drun` command. This command tells Rofi to show entries from the desktop entry files (`.desktop` files), which typically represent installed applications.

Here’s how you can set it up:

### 1. Basic Command
Run the following command in your terminal to launch Rofi in application mode:
```bash
rofi -show drun
```
This will display a list of installed applications.

### 2. Customize Rofi (Optional)
If you want to customize the appearance or behavior of Rofi, you can create a configuration file or pass additional options.

#### Create a Configuration File
Rofi can be configured using a configuration file located at `~/.config/rofi/config.rasi`. Here’s an example configuration for displaying applications:

```rasi
configuration {
modi: "drun";
show-icons: true;
icon-theme: "Papirus";
drun-display-format: "{name}";
sidebar-mode: false;
}
```

- `modi: "drun"`: Ensures Rofi opens in application mode.
- `show-icons: true`: Displays application icons.
- `icon-theme: "Papirus"`: Specifies the icon theme (replace `"Papirus"` with your preferred theme).
- `drun-display-format: "{name}"`: Displays only the application name.
- `sidebar-mode: false`: Disables sidebar mode.

Save the file and run `rofi -show drun` to see the changes.

#### Command-Line Options
You can also customize Rofi directly from the command line. For example:
```bash
rofi -show drun -show-icons -icon-theme "Papirus" -drun-display-format "{name}"
```

### 3. Bind Rofi to a Keyboard Shortcut (Optional)
To make it easier to launch Rofi in application mode, you can bind it to a keyboard shortcut. This can be done through your desktop environment’s settings or a tool like `xbindkeys`.

For example, in `~/.config/i3/config` (if you’re using i3 window manager):
```bash
bindsym $mod+d exec rofi -show drun
```

### 4. Test Rofi
Run `rofi -show drun` in your terminal or use the keyboard shortcut you configured. Rofi should now display a list of applications.

Let me know if you need further assistance!

Hi there. Respectful greetings, and salutations!
@stib

I notice you discuss some #Rofi . i wonder if you could have a look at my post about ... getting the colors to look consistent for things like mouse-over pop ups, as shown.

i'm not a mastodon pro, so i'm afraid i have no foreign key as hyperlink. but... i think the hashtag will do come to think of it. last night.

best regards!

or maybe one of your pals would have an advisory. thank you!
:)

What is great about #i3wm is that if you want the application switcher to also include info like the time and what it's like outside, you can just tweak some config files, set up a systemd timer to run a script that fetches the data from wttr.in, and you get the time and weather right there in your application switcher.
What's not so great about i3wm is that you can tweak some config files, set up a systemd timer to run a script that fetches the data from wttr.in, and get the time and weather right in your application switcher, then start thinking about some other tweaks you could do, and hello it's 1 in the morning and you haven't actually done that actual thing you sat down at the computer to do.
(What is brilliant is that the person who actually developed the #rofi application switcher will help you when you ask on the github discussion page).
#Linux

A répondu dans un fil de discussion

@warmaster

I found this project called `tofi` that seems to work the same way as dmenu but for Wayland. It is not in the Arch repos only in the AUR, so I guess it is not that popular.

Might be `rofi` the good option? It seems to have a Wayland-compatible version, too. What do you think?

github.com/philj56/tofi
github.com/lbonn/rofi

GitHubGitHub - philj56/tofi: Tiny dynamic menu for WaylandTiny dynamic menu for Wayland. Contribute to philj56/tofi development by creating an account on GitHub.
#Wayland#tofi#rofi
I had a relaxing day yesterday playing with the OpenBox window manager on a ThinkPad X270 laptop (my daily driver).

The color matching of the icons and the rofi accent color turned out well. I usually just go with the defaults most of the time, but the defaults on a basic OpenBox install are too limited.

I learned a lot about the OpenBox rc.xml configuration, set a lot of my own keybinds. It was an enjoyable experience.

The rofi window switching works so well, taking you to exactly the window that you want even if it is on a different desktop.

#openbox #rofi #devuan #linux #thinkpad

Ich finde ja die "window"-such funktion von #rofi toll. Mit einem shortcut geht ein rofi-fenster auf und ich kann meine offenen Fenster nach dem Title durchsuchen.

Ich würde mir eine Erweiterung wünschen, wo in dieser Suche auch die Browsertabs zu finden sind und rofi nicht nur ins richtige Browserfenster springt, sondern auch gleich in den gewählten Tab