3 rofi_command
="rofi -theme blackpearl/powermenu.rasi"
11 # Variable passed to rofi
12 options
="$power_off\n$reboot\n$lock\n$suspend\n$log_out"
14 chosen
="$(echo -e "$options" | $rofi_command -dmenu -selected-row 2)"
17 notify-send
'shutting down' 'the system is going to shutdown now'
19 sudo
/sbin
/shutdown
-h now
22 notify-send
'rebooting the system' 'the system is going to reboot now'
24 sudo
/sbin
/shutdown
-r now