Add "reboot to windows" option to lock script

This commit is contained in:
Adam Goldsmith 2020-11-02 01:03:45 -05:00
parent 91106ce377
commit 45d98e81d9
1 changed files with 5 additions and 2 deletions

View File

@ -34,14 +34,17 @@ case "$1" in
reboot)
systemctl reboot
;;
"reboot to Windows")
sudo refind-next-boot 'Microsoft' && systemctl reboot
;;
shutdown)
systemctl poweroff
;;
pick)
$0 $(echo -e "lock\nlogout\nsuspend\nhibernate\nreboot\nshutdown" | rofi -dmenu -i)
$0 "$(echo -e 'lock\nlogout\nsuspend\nhibernate\nreboot\nreboot to Windows\nshutdown' | rofi -dmenu -i)"
;;
*)
echo "Usage: $0 {lock|logout|suspend|hibernate|reboot|shutdown|pick}"
echo "Usage: $0 {lock|logout|suspend|hibernate|reboot|reboot to Windows|shutdown|pick}"
exit 2
;;
esac