taylor85345 / leftwm-theme-garden

My custom theme for LeftWM
24 stars 2 forks source link

rofi setup ? #2

Closed NicTanghe closed 1 year ago

NicTanghe commented 1 year ago

Hello sorry to bother u again but how do you setup the rofi config ? Coppying the rofi folder to .config did not seem todo anyhing for me.

taylor85345 commented 1 year ago

There are a few different rofi modules in there, none of which use the default config.rasi, so you'll need to specify the config you want to use. If you want the app launcher, this is the command I have in my keybinds:

rofi -no-config -no-lazy-grab -show drun -theme $HOME/.config/leftwm/themes/current/rofi/launcher.rasi"

If you want the global search:

rofi -show 'Global Search' -modi 'Global Search':$HOME/.config/bspwm/rofi/global/rofi-spotlight.sh -theme $HOME/.config/bspwm/rofi/global/rofi.rasi

For the power menu (shutdown, restart), you'll want:

$HOME/.config/leftwm/themes/current/rofi/powermenu.sh

You can find all of these and more in the example leftwm config.toml included in the misc folder, and in my polybar config.

NicTanghe commented 1 year ago

could u add this info to the readme ? (thx)

NicTanghe commented 1 year ago

Also some of my apps dont have a standard icon in the menu do you have anny idea how i could give them one or set a default ?

taylor85345 commented 1 year ago

I plan to revisit this theme in the near future to make some updates around the new config format, and I'll update the README at that time.

Regarding icons, I'd make sure you have a fairly complete icon set like hicolor and/or adwaita installed. Rofi will prefer your configured icon theme, but fall back to any other icon pack that has an icon for a given app.

If you haven't configured a default icon pack, I'd recommend doing so via something like lxappearance.

NicTanghe commented 1 year ago

I have one setup in gnome, I would think that one is also applied. But apparently it is not. Do you know of a gnome way ? I don't like too much bloat, and gnome is industry standard.

taylor85345 commented 1 year ago

If you're using gnome, Adwaita should be the icon pack by default, with hicolor as a fallback. You can change your default icon pack in gnome-tweaks if memory serves.

Looking at the Rofi wiki, it looks like icon sets need to be located in ~/.icons or ~/.local/share/Icons, so any Icon sets not installed to one of those locations will not be detected. I have Tela and Hicolor in there on my system, and I can only assume that they were put there by Pacman on my system. If that is empty, try maybe copying /usr/share/icons/Adwaita and /usr/share/icons/hicolor to ~/.local/share/icons/? I have never had to do this on any install, but worth a shot?

If that doesn't work, maybe try adding drun-icon-theme: Adwaita to the configuration section of launcher.rasi in the rofi folder of my theme.

If that still doesn't work, then I'm not really sure. The icon display is handled by Rofi and isn't set by my theme, so maybe ask in a Rofi community?

NicTanghe commented 1 year ago

Seems all of my icons no longer apear, anny idea why this could be ?