regolith-linux / regolith-desktop

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

Uninstalling packages to allow for personal configuration removes `regolith-session-flashback` #925

Open typhooncamel opened 11 months ago

typhooncamel commented 11 months ago

Describe the bug To allow for personal configuration, I copy over some of the files in /usr/share/regolith/i3/config.d to my own directory to modify. I then try to uninstall the corresponding package (e.g., regolith-i3-session), but then Ubuntu also uninstalls regolith-session-flashback, so when I log out and try to log back in, Regolith is no longer an option.

To Reproduce Uninstall regolith-i3-session, which then uninstalls regolith-session-flashback.

Expected behavior To be able to uninstall the packages for specific configuration files without removing Regolith outright.

Installation Details

kgilmer commented 11 months ago

Hi @typhooncamel , thanks for the detailed report. Just curious, you were not able to achieve your goals with customization here by overriding the default keybindings using Xresource overrides?

(for example, given this line in the partial regolith-i3-session partial;

set_from_resource $wm.binding.restart wm.binding.restart Ctrl+r

You could change the binding by specifyfing the following:

~/.config/regolith3/Xresources:

wm.binding.restart wm.binding.restart:  Ctrl+g

)

typhooncamel commented 11 months ago

Hi @kgilmer , thanks for the quick response. Setting the keybindings in Xresources did indeed fix it. I think the issue was specifically with regolith-i3-session, so the other ones I was able to keep by having my own config files, and just add the things I had in 55_session_keybindings to Xresources fixed the issue, although it's still somewhat incongruous that this problem affects that single file/package only. Thanks again though!

uviigideon commented 10 months ago

Hi @kgilmer , I have same problem. In regolith2 I used to prevent sleep, shutdown, restart from key binding through override ~/.config/regolith2/i3/config.d/55_session_keybindings

but with regolith3 seems I cannot simply do apt remove regolith-i3-session

I tried unbind through ~/.config/regolith3/Xresources:

wm.binding.sleep wm.binding.sleep:

seems not work, I still go to sleep when I push $mod + shift + s I can't not figure out how to prevent this binding without override the 55_session_keybindings config. Maybe I did wrong setting, Could you kindly help me to do these unbind in proper way.