Created
March 7, 2022 18:43
-
-
Save tunalad/08b3ab2545c21f53de72db1f390400e5 to your computer and use it in GitHub Desktop.
dwm login session script utilising dmenu (and slock for screen locking)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
pick=$(echo -e " Power off\n Reboot\n Lock\n Logout" | dmenu -i -l 5) | |
case $pick in | |
" Power off") shutdown now ;; | |
" Reboot") reboot ;; | |
" Lock") slock ;; | |
" Logout") killall dwm ;; | |
*) exit 1 ;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment