Add "reboot to windows" option to lock script
This commit is contained in:
parent
91106ce377
commit
45d98e81d9
@ -34,14 +34,17 @@ case "$1" in
|
|||||||
reboot)
|
reboot)
|
||||||
systemctl reboot
|
systemctl reboot
|
||||||
;;
|
;;
|
||||||
|
"reboot to Windows")
|
||||||
|
sudo refind-next-boot 'Microsoft' && systemctl reboot
|
||||||
|
;;
|
||||||
shutdown)
|
shutdown)
|
||||||
systemctl poweroff
|
systemctl poweroff
|
||||||
;;
|
;;
|
||||||
pick)
|
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
|
exit 2
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user