3 # rofi_command="rofi -theme blackpearl/powermenu.rasi"
4 rofi_command
="rofi -theme darknix/powermenu.rasi"
12 # Variable passed to rofi
13 options
="$power_off\n$reboot\n$lock\n$suspend\n$log_out"
15 chosen
="$(echo -e "$options" | $rofi_command -dmenu -selected-row 0)"
18 notify-send
'shutting down' 'the system is going to shutdown now'
20 sudo
/sbin
/shutdown
-h now
23 notify-send
'rebooting the system' 'the system is going to reboot now'
25 sudo
/sbin
/shutdown
-r now