aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts
diff options
context:
space:
mode:
authorLuka Momčilović <l.momcilovic61@gmail.com>2023-12-14 11:15:59 +0100
committerLuka Momčilović <l.momcilovic61@gmail.com>2023-12-14 11:15:59 +0100
commit821a6a7cb6d037334cefce928911557a97443325 (patch)
tree8c200f50f482eac4ce62a4182964960a13b879dd /config/hypr/scripts
parenta5c48ee9398dac168219b6e082155bd4d29792a9 (diff)
fix(RofiBeats): Remove notification when canceled
Remove notification and further execution when user selects nothing/closes RofiBeats
Diffstat (limited to 'config/hypr/scripts')
-rwxr-xr-xconfig/hypr/scripts/RofiBeats.sh4
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"
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage