Browse Source

fix(RofiBeats): Remove notification when canceled

Remove notification and further execution when user selects nothing/closes RofiBeats
pull/71/head
Luka Momčilović 2 years ago
parent
commit
821a6a7cb6
No known key found for this signature in database
GPG Key ID: 4DAC474FFA15BEF5
  1. 4
      config/hypr/scripts/RofiBeats.sh

4
config/hypr/scripts/RofiBeats.sh

@ -28,6 +28,10 @@ notification() {
main() {
choice=$(printf "%s\n" "${!menu_options[@]}" | rofi -dmenu -config ~/.config/rofi/config-rofi-Beats.rasi -i -p "")
if [ -z "$choice" ]; then
exit 1
fi
link="${menu_options[$choice]}"
notification "$choice"

Loading…
Cancel
Save