Improve configs

This commit is contained in:
Tobias Reisinger 2022-12-12 18:43:54 +01:00
parent d0bbb66934
commit 40ca0e9ae4
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
6 changed files with 20 additions and 16 deletions

View file

@ -1,17 +1,10 @@
#!/bin/sh
action=$(echo -e "Shutdown\nReboot\nLogout" | $MENU)
action=$(printf "shutdown\nreboot\nlogout\nautostart" | $MENU)
case "$action" in
"Shutdown")
systemctl poweroff -i
;;
"Reboot")
systemctl reboot
;;
"Logout")
systemctl --user exit
;;
*)
;;
esac
shutdown) systemctl poweroff -i ;;
reboot) systemctl reboot ;;
logout) systemctl --user exit ;;
autostart) autostart-manage start ;;
*) ;; esac