From 6099f3626f0f4045feeec1172a3dc44d61dac6b6 Mon Sep 17 00:00:00 2001 From: Adam Dodman Date: Sat, 3 Feb 2018 18:09:07 +0000 Subject: [PATCH] Fix PowerMenu for Windows Boot --- i3/powermenu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3/powermenu.sh b/i3/powermenu.sh index b26d910..8ce08f7 100755 --- a/i3/powermenu.sh +++ b/i3/powermenu.sh @@ -8,7 +8,7 @@ case $option in 'Power Off') systemctl poweroff;; Restart) systemctl reboot;; Windows) - windows=`efibootmgr | grep -Po -m1 'Boot\K(\d{4}).*Windows.*' | head -c4` + windows=`efibootmgr | grep -Po -m1 'Boot\K(\w{4}).*Windows.*' | head -c4` `sudo efibootmgr -n $windows` reboot;; esac