diff --git a/.config/i3/lock.sh b/.config/i3/lock.sh index 44eaffc..0846f5a 100755 --- a/.config/i3/lock.sh +++ b/.config/i3/lock.sh @@ -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