aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/SwitchKeyboardLayout.sh
diff options
context:
space:
mode:
Diffstat (limited to 'config/hypr/scripts/SwitchKeyboardLayout.sh')
-rwxr-xr-xconfig/hypr/scripts/SwitchKeyboardLayout.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/hypr/scripts/SwitchKeyboardLayout.sh b/config/hypr/scripts/SwitchKeyboardLayout.sh
index e7c56b42..9d1ee844 100755
--- a/config/hypr/scripts/SwitchKeyboardLayout.sh
+++ b/config/hypr/scripts/SwitchKeyboardLayout.sh
@@ -2,6 +2,7 @@
layout_f="$HOME/.cache/kb_layout"
settings_file="$HOME/.config/hypr/configs/Settings.conf"
+dunst_notif="$HOME/.config/dunst/images/bell.png"
# Check if ~/.cache/kb_layout exists and create it with a default layout from Settings.conf if not found
if [ ! -f "$layout_f" ]; then
@@ -37,3 +38,6 @@ new_layout="${layout_mapping[next_index]}"
# Update the keyboard layout
hyprctl keyword input:kb_layout "$new_layout"
echo "$new_layout" > "$layout_f"
+
+# Notification for the new keyboard layout
+dunstify -u low -i "$dunst_notif" "Keyboard layout set to $new_layout" \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage