diff options
-rw-r--r-- | .fluxbox/keys | 1 | ||||
-rw-r--r-- | .xinitrc | 12 |
2 files changed, 11 insertions, 2 deletions
diff --git a/.fluxbox/keys b/.fluxbox/keys index bb0c93b..5ead746 100644 --- a/.fluxbox/keys +++ b/.fluxbox/keys @@ -80,6 +80,7 @@ Control Shift F12 :TakeToWorkspace 12 Mod4 F1 :Delay {Exec xset dpms force off} 1000000 Pause :Delay {Exec xset dpms force off} 1000000 Control Mod1 Delete l :Exec xscreensaver-command -lock +Control Mod1 Delete q :Exec printf 'quit\n' >~/.xsessionmanage Control Mod1 Delete s :Exec sudo shutdown -hP now Control Mod1 Delete r :Exec sudo reboot @@ -2,5 +2,13 @@ startfluxbox -# Keep the X server running forever -exec tail -f /dev/null +rm -f ~/.xsessionmanage +mkfifo -m 0600 ~/.xsessionmanage +while read action; do + case "${action}" in + 'quit') + break + ;; + esac +done <~/.xsessionmanage +rm -f ~/.xsessionmanage |