diff options
| author | Ja.KooLit <jimmielovejay@gmail.com> | 2023-12-14 20:38:10 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-14 20:38:10 +0900 |
| commit | 980956c16962a1ba478e958c706aec6186c3af47 (patch) | |
| tree | 8c200f50f482eac4ce62a4182964960a13b879dd | |
| parent | a5c48ee9398dac168219b6e082155bd4d29792a9 (diff) | |
| parent | 821a6a7cb6d037334cefce928911557a97443325 (diff) | |
Merge pull request #71 from momcilovicluka/main
fix(RofiBeats): Remove notification when canceled
| -rwxr-xr-x | config/hypr/scripts/RofiBeats.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/hypr/scripts/RofiBeats.sh b/config/hypr/scripts/RofiBeats.sh index 27fbf08a..f7d7074a 100755 --- a/config/hypr/scripts/RofiBeats.sh +++ b/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" |
