regolith-linux / regolith-desktop

Meta package for the Regolith Desktop Environment
1.5k stars 31 forks source link

Struggling with Ilia #870

Open vanboom opened 1 year ago

vanboom commented 1 year ago

Is your feature request related to a problem? Please describe. I am running regolith 2 on ubuntu 20.04 and am finding the Ilia popup for notifications and app launching to be extremely slow. Typing CTRL-SPACE takes at least 2 seconds to pop up the Ilia window. Deleting notifications is also extremely slow in the notifications window.

Describe the solution you'd like The old rofications was fast. Ilia is awful slow. Is anyone else having this issue? Or any suggestions about how to speed up Ilia?

Describe alternatives you've considered I attempted to remove regolith-i3-ilia but have broken the configuration so now I have no notification window lol.

Thank you!

kgilmer commented 1 year ago

Hi @vanboom , thanks for your feedback. Some other users have reported ilia being slow. I am guessing this is related to icon loading, as users with more apps, and apps with complex icons seem to notice the issue more. The version of ilia coming in Regolith 3.0 optimizes icon loading, load time is reduced by roughly half in my testing. That may still be too slow for you though. An easy check would be to disable icons, which you can do like this:

gsettings set org.regolith-linux.ilia icon-size 0

Changes will take effect immediately.

You're also welcome to use rofi instead, with the caveat being that you'll need to provide your own styling. You can install the package regolith-i3-rofi to add rofi and it's i3 integration, which I'll list here for clarity:

set_from_resource $rofiTheme rofi.theme /usr/share/regolith-look/minimal/rofi.rasi

## Launch // Application // <> Space ##
set_from_resource $wm.binding.launcher.app wm.binding.launcher.app space
set_from_resource $wm.program.launcher.app wm.program.launcher.app rofi -show drun -theme $rofiTheme
bindsym $mod+$wm.binding.launcher.app exec $wm.program.launcher.app

## Launch // Command // <><Shift> Space ##
set_from_resource $wm.binding.launcher.cmd wm.binding.launcher.cmd Shift+space
set_from_resource $wm.program.launcher.cmd wm.program.launcher.cmd rofi -show run -theme $rofiTheme
bindsym $mod+$wm.binding.launcher.cmd exec $wm.program.launcher.cmd

## Navigate // Window by Name // <><Ctrl> Space ##
set_from_resource $wm.binding.launcher.window wm.binding.launcher.window Ctrl+space
set_from_resource $wm.program.launcher.window wm.program.launcher.window rofi -show window -theme $rofiTheme
bindsym $mod+$wm.binding.launcher.window exec $wm.program.launcher.window

## Launch // File Search // <><Alt> Space ##
set_from_resource $wm.binding.file_search wm.binding.file_search space
set_from_resource $wm.program.file_search wm.program.file_search rofi -show find -modi find:/usr/share/rofi/modi/finder.sh
bindsym $mod+$alt+$wm.binding.file_search exec $wm.program.file_search

## Launch // Look Selector // <><Alt> l ##
set_from_resource $wm.binding.look_selector wm.binding.look_selector l
set_from_resource $wm.program.look_selector wm.program.look_selector rofi -show look -modi look:/usr/share/rofi/modi/look-selector.sh
bindsym $mod+$alt+$wm.binding.look_selector exec $wm.program.look_selector

Notice at the top you'll need to specify an Xresource key of rofi.theme to a value which is a file path to the rofi theme you wish to load.

vanboom commented 1 year ago

Thanks @kgilmer

gsettings set org.regolith-linux.ilia icon-size 0

This sped it up a bit, but I think the rofi/drun method was way faster with the same basic functionality. Thank you for posting some of the config to head back in the rofi direction - I attempted to do that but broke it pretty good. Will give rofi a try in a bit. Thanks again!

UPDATE: oddly, I simply installed regolith-i3-rofi and the drun/rofi app launcher works fine now. Previously I had tried to do that but the config was missing so the app launcher was totally broken. Using regolith-i3-rofi the launcher pops up almost instantly compared to the Ilia method. Thanks again!