nwg-piotr / nwg-shell-config

nwg-shell configuration utility
MIT License
67 stars 10 forks source link

Shell Config Check for swayidle Potentially Too Greedy #64

Open ancathri opened 12 months ago

ancathri commented 12 months ago

As a user, I would like to include a keybind to automatically lock and signal USR1 to swayidle to automatically send dpms off (e.g. something like bindsym $Mod+Escape exec nwg-lock && sleep 1 && pkill -USR1 swayidle)

At present, any mention of the specific term swayidle will disable the default Idle & Lock screen settings, resulting in no swayidle config in the generated autostart on reboot.

I think it can be worked around by just tossing that keybind into a different config file, but I wonder if this can't be refined by someone smarter than I.

https://github.com/nwg-piotr/nwg-shell-config/blob/be8dda3879ad1d0e711608cf3141e8bd36b8a6d3/nwg_shell_config/ui_components.py#L2186C61-L2186C61