mirror of
https://github.com/kastdeur/dotfiles.git
synced 2024-11-12 14:43:32 +01:00
20 lines
237 B
Bash
20 lines
237 B
Bash
#!/bin/bash
|
|
|
|
uptime=$(uptime -p | sed -e 's/up //g')
|
|
|
|
# Options
|
|
shutdown = " Shutdown"
|
|
reboot = " Reboot"
|
|
lock = " Lock"
|
|
|
|
|
|
case $chosen in
|
|
$shutdown)
|
|
systemctl poweroff
|
|
;;
|
|
$reboot)
|
|
systemctl reboot
|
|
;;
|
|
$lock
|
|
;;
|
|
esac
|