Update Kill X funct

This commit is contained in:
Alexis Jhon Gaspar 2023-09-30 22:31:02 +08:00
parent dc4a5461ab
commit 005fbf0f4a
2 changed files with 3 additions and 1 deletions

View file

@ -38,6 +38,8 @@ For those who want the old version, check out `oldmain`. I don't plan on maintai
Note that there are some programs that is included here, mainly for compatibility or choice reasons. While slstatus is pretty barebones compared to dwmblocks-async, it is included on the repo if one decides not to have statuscmd, for example. This aims to be also compatible with already existing setups. Note that there are some programs that is included here, mainly for compatibility or choice reasons. While slstatus is pretty barebones compared to dwmblocks-async, it is included on the repo if one decides not to have statuscmd, for example. This aims to be also compatible with already existing setups.
For the shutdown menu script (located in `scripts/shutdown`), `/usr/libexec/ssh/gnome-ssh-askpass` was set by default for asking password for killing X. Either change it to a more preferred ssh-askpass program or make sudo passwordless.
### Keybind notes ### Keybind notes
In the documentation for this suite, <kbd>Mod4Key</kbd> would be defined as <kbd>⊞ Win</kbd>/<kbd>⌘ Cmd</kbd>/<kbd>❖ Super</kbd>, depending on whichever keyboard do you use. In the documentation for this suite, <kbd>Mod4Key</kbd> would be defined as <kbd>⊞ Win</kbd>/<kbd>⌘ Cmd</kbd>/<kbd>❖ Super</kbd>, depending on whichever keyboard do you use.

View file

@ -10,5 +10,5 @@ cat <<EOF | jgmenu --simple --at-pointer
󰌾 Lock session, slock 󰌾 Lock session, slock
󰤁 Suspend, systemctl suspend 󰤁 Suspend, systemctl suspend
󰤄 Hibernate, systemctl hibernate 󰤄 Hibernate, systemctl hibernate
󰚌 Kill X, xkill -a 󰚌 Kill X, pkill X || pkill Xorg || SUDO_ASKPASS=/usr/libexec/ssh/gnome-ssh-askpass sudo -A pkill X || SUDO_ASKPASS=/usr/libexec/ssh/gnome-ssh-askpass sudo -A pkill Xorg
EOF EOF