#!/bin/sh

options="Lock|Sleep|Logout|Reboot|Shutdown|Cancel"

selection=$(echo $options | rofi -dmenu -sep '|' -p 'Select option: ')
exit_option=$(echo "$selection" | tr '[:upper:]' '[:lower:]')

if [ ! "$selection" = "Cancel" ]; then
    "$HOME/scripts/i3/exit.sh" $exit_option
fi

exit 0

#!/bin/sh

options="Lock|Sleep|Logout|Reboot|Shutdown|Cancel"

selection=$(echo $options | rofi -dmenu -sep '|' -p 'Select option: ')
exit_option=$(echo "$selection" | tr '[:upper:]' '[:lower:]')

if [ ! $selection = "Cancel" ]; then
    "$HOME/scripts/i3/exit.sh" $exit_option
fi

exit 0

Fix button being removed from i3blocks after click
Fix button being removed from i3blocks after click
