From 48fb1e6a1974594954d6d94b1e4526a04f13e7d3 Mon Sep 17 00:00:00 2001 From: Hannes Date: Wed, 2 Sep 2026 00:54:14 +0200 Subject: [PATCH] fixes to Notifications --- scripts/goxlr/goxlr-settings-start.sh | 5 ++--- scripts/goxlr/goxlr-start.sh | 5 +---- scripts/screenshot/screenshot_area.sh | 2 +- scripts/screenshot/screenshot_area_2.sh | 2 +- scripts/screenshot/screenshot_monitor.sh | 2 +- scripts/screenshot/screenshot_ocr.sh | 2 +- scripts/screenshot/screenshot_window.sh | 2 +- 7 files changed, 8 insertions(+), 12 deletions(-) diff --git a/scripts/goxlr/goxlr-settings-start.sh b/scripts/goxlr/goxlr-settings-start.sh index a5ca085..6978b6c 100755 --- a/scripts/goxlr/goxlr-settings-start.sh +++ b/scripts/goxlr/goxlr-settings-start.sh @@ -1,9 +1,8 @@ #!/bin/bash # Source the functions file -notify-send "GoXLR inteface is starting" +notify-send --app-name "GOXLR client" --icon "goxlr-utility" -u normal "Starting" "GoXLR inteface is starting" -# nohup goxlr-daemon & sleep 10 goxlr-client profiles device load 'Default' -notify-send "GoXLR start complete" +notify-send --app-name "GOXLR client" --icon "goxlr-utility" -u normal "Started" "GoXLR start complete" diff --git a/scripts/goxlr/goxlr-start.sh b/scripts/goxlr/goxlr-start.sh index c339e45..342dd79 100755 --- a/scripts/goxlr/goxlr-start.sh +++ b/scripts/goxlr/goxlr-start.sh @@ -1,11 +1,8 @@ #!/bin/bash -# Source the functions file -source "$HOME/.config/function_helper.sh" - SCRIPT="goxlr-daemon" SCRIPT2="$HOME/.config/hypr/scripts/goxlr/goxlr-settings-start.sh" tmux new-session -d -s goxlr "$SCRIPT" & -send_notification "normal" "GOXLR daemon Started" "Launched the GOXLR Daemon to control the Audio" "$HOME/.icons/BeautyLine-Garuda/apps/scalable/goxlr-utility.svg" +notify-send --app-name "GOXLR daemon" --icon "goxlr-utility" -u normal "Started" "Launched the GOXLR Daemon to control the Audio" "$SCRIPT2" diff --git a/scripts/screenshot/screenshot_area.sh b/scripts/screenshot/screenshot_area.sh index ce5e752..7e6f9ed 100755 --- a/scripts/screenshot/screenshot_area.sh +++ b/scripts/screenshot/screenshot_area.sh @@ -17,7 +17,7 @@ grim -g "$geometry" "$dir/$file" || exit 1 wl-copy -t image/png < "$dir/$file" if command -v notify-send >/dev/null 2>&1; then - notify-send -a Screenshot -i camera-photo "Screenshot saved" "$file" + notify-send --app-name "Screenshot" --icon "camera-photo" -u normal "Area" "Screenshot saved $file" fi # Open the editor if satty is available (blocks until it is closed). diff --git a/scripts/screenshot/screenshot_area_2.sh b/scripts/screenshot/screenshot_area_2.sh index 9c7ba0e..de1b240 100755 --- a/scripts/screenshot/screenshot_area_2.sh +++ b/scripts/screenshot/screenshot_area_2.sh @@ -10,5 +10,5 @@ geometry=$(slurp) || exit 1 grim -g "$geometry" - | wl-copy -t image/png if command -v notify-send >/dev/null 2>&1; then - notify-send -a Screenshot -i camera-photo "Screenshot copied to clipboard" + notify-send --app-name "Screenshot" --icon "camera-photo" -u normal "Area" "Screenshot copied to clipboard" fi diff --git a/scripts/screenshot/screenshot_monitor.sh b/scripts/screenshot/screenshot_monitor.sh index e6ce6e6..8dfa360 100755 --- a/scripts/screenshot/screenshot_monitor.sh +++ b/scripts/screenshot/screenshot_monitor.sh @@ -18,7 +18,7 @@ grim -o "$monitor" "$dir/$file" || exit 1 wl-copy -t image/png < "$dir/$file" if command -v notify-send >/dev/null 2>&1; then - notify-send -a Screenshot -i camera-photo "Screenshot saved" "$file" + notify-send --app-name "Screenshot" --icon "camera-photo" -u normal "Monitor" "Screenshot saved $file" fi # Open the editor if satty is available (blocks until it is closed). diff --git a/scripts/screenshot/screenshot_ocr.sh b/scripts/screenshot/screenshot_ocr.sh index 1d4b9d1..8fc2cd9 100755 --- a/scripts/screenshot/screenshot_ocr.sh +++ b/scripts/screenshot/screenshot_ocr.sh @@ -32,7 +32,7 @@ printf "%s" "$text" | wl-copy if command -v notify-send >/dev/null 2>&1; then # Truncate text preview for notification brevity preview=$(echo "$text" | head -n 3) - notify-send -a "OCR" -i edit-select-all "Text Copied to Clipboard" "$preview" + notify-send --app-name "Screenshot" --icon "edit-find" -u normal "OCR" "Text Copied to Clipboard:\n$preview" fi # Install: sudo pacman -S grim slurp tesseract tesseract-data-eng wl-clipboard libnotify \ No newline at end of file diff --git a/scripts/screenshot/screenshot_window.sh b/scripts/screenshot/screenshot_window.sh index 06b0efd..69ee417 100755 --- a/scripts/screenshot/screenshot_window.sh +++ b/scripts/screenshot/screenshot_window.sh @@ -37,7 +37,7 @@ grim -g "$geometry" "$dir/$file" || exit 1 wl-copy -t image/png < "$dir/$file" if command -v notify-send >/dev/null 2>&1; then - notify-send -a Screenshot -i camera-photo "Screenshot saved" "$file" + notify-send --app-name "Screenshot" --icon "camera-photo" -u normal "Window" "Screenshot saved $file" fi # Open the editor if satty is available (blocks until it is closed).