aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/SwitchKeyboardLayout.sh
diff options
context:
space:
mode:
authorJaKooLit <jimmielovejay.com>2023-12-17 22:09:37 +0900
committerJaKooLit <jimmielovejay.com>2023-12-17 22:09:37 +0900
commit70d3ed24206ba3445a73b75328f7688c6f78e894 (patch)
treed900cff5caaac019e95259aeaef57699ecc60ad4 /config/hypr/scripts/SwitchKeyboardLayout.sh
parent96c5794d550d34bce500828f4160667d70d60681 (diff)
minor tweaks before final
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