mirror of
https://github.com/kastdeur/dotfiles.git
synced 2024-12-22 17:23:33 +01:00
21 lines
237 B
Text
21 lines
237 B
Text
|
#!/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
|