From df57f9890b28aa6f5139e2917cee213031ba0e9c Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Tue, 14 Jan 2025 00:12:29 +0900 Subject: some scripts are tweaked to get a better notification. swaync config tweaked --- config/hypr/scripts/SwitchKeyboardLayout.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/hypr/scripts/SwitchKeyboardLayout.sh') diff --git a/config/hypr/scripts/SwitchKeyboardLayout.sh b/config/hypr/scripts/SwitchKeyboardLayout.sh index 2d265e28..6974e386 100755 --- a/config/hypr/scripts/SwitchKeyboardLayout.sh +++ b/config/hypr/scripts/SwitchKeyboardLayout.sh @@ -93,11 +93,11 @@ change_layout() { # Execute layout change and notify if ! change_layout; then - notify-send -u low -t 2000 'kb_layout' 'Error: Layout change failed' + notify-send -u low -t 2000 'kb_layout' "$(printf '\n Error: Layout change failed')" echo "Layout change failed." >&2 exit 1 else - notify-send -u low -i "$notif_icon" "New kb_layout: $new_layout" + notify-send -u low -i "$notif_icon" "$(printf "\n New kb_layout: $new_layout")" echo "Layout change notification sent." fi -- cgit v1.2.3