mirror of
https://github.com/frebib/dotfiles.git
synced 2024-06-14 12:57:23 +00:00
i3/powermenu: fix rebooting when non-interactive
This commit is contained in:
parent
4b52c21ac9
commit
8e86599372
@ -12,7 +12,7 @@ case $option in
|
||||
windows)
|
||||
windows=`efibootmgr | grep -Po -m1 'Boot\K(\d{4}).*Windows.*' | head -c4`
|
||||
sudo efibootmgr -n $windows
|
||||
sudo hibereboot;;
|
||||
reboot;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user