feat(loginctl): use stock power management command instead elogind (need in sudoers let to execute zzz, reboot and etc.)
This commit is contained in:
0
rofi/colors.rasi
Normal file → Executable file
0
rofi/colors.rasi
Normal file → Executable file
0
rofi/config.rasi
Normal file → Executable file
0
rofi/config.rasi
Normal file → Executable file
0
rofi/launcher/app_menu.rasi
Normal file → Executable file
0
rofi/launcher/app_menu.rasi
Normal file → Executable file
BIN
rofi/power/bg.png
Normal file → Executable file
BIN
rofi/power/bg.png
Normal file → Executable file
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)"
|
selected="$(confirm_exit)"
|
||||||
if [[ "$selected" == "$yes" ]]; then
|
if [[ "$selected" == "$yes" ]]; then
|
||||||
if [[ $1 == '--shutdown' ]]; then
|
if [[ $1 == '--shutdown' ]]; then
|
||||||
loginctl poweroff
|
sudo shutdown -f now
|
||||||
elif [[ $1 == '--reboot' ]]; then
|
elif [[ $1 == '--reboot' ]]; then
|
||||||
loginctl reboot
|
sudo reboot
|
||||||
elif [[ $1 == '--suspend' ]]; then
|
elif [[ $1 == '--suspend' ]]; then
|
||||||
betterlockscreen --suspend
|
betterlockscreen --suspend
|
||||||
elif [[ $1 == '--logout' ]]; then
|
elif [[ $1 == '--logout' ]]; then
|
||||||
|
|||||||
0
rofi/power/power_menu.rasi
Normal file → Executable file
0
rofi/power/power_menu.rasi
Normal file → Executable file
0
rofi/volume/volume_menu.rasi
Normal file → Executable file
0
rofi/volume/volume_menu.rasi
Normal file → Executable file
Reference in New Issue
Block a user