feat(loginctl): use stock power management command instead elogind (need in sudoers let to execute zzz, reboot and etc.)
This commit is contained in:
parent
4fbe56d827
commit
f0c02135ff
Binary file not shown.
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 0 B |
|
@ -59,9 +59,9 @@ run_cmd() {
|
|||
selected="$(confirm_exit)"
|
||||
if [[ "$selected" == "$yes" ]]; then
|
||||
if [[ $1 == '--shutdown' ]]; then
|
||||
loginctl poweroff
|
||||
sudo shutdown -f now
|
||||
elif [[ $1 == '--reboot' ]]; then
|
||||
loginctl reboot
|
||||
sudo reboot
|
||||
elif [[ $1 == '--suspend' ]]; then
|
||||
betterlockscreen --suspend
|
||||
elif [[ $1 == '--logout' ]]; then
|
||||
|
|
Loading…
Reference in New Issue