diff options
| author | Ja.KooLit <jimmielovejay@gmail.com> | 2023-12-17 22:59:19 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-17 22:59:19 +0900 |
| commit | 9cede52e092289c8e5cbe66f5a97b4d759409ce4 (patch) | |
| tree | 9b52d33e7f8c099f2776878fb87099d966efa70f /config/hypr/scripts/SwitchKeyboardLayout.sh | |
| parent | 0ac64eb61526f5ae02a58e5e90a589ec0f4c3b45 (diff) | |
| parent | a42dde412ec9807705b9f6bfc8e25ad37f06a776 (diff) | |
Merge pull request #81 from JaKooLit/Development
Development
Diffstat (limited to 'config/hypr/scripts/SwitchKeyboardLayout.sh')
| -rwxr-xr-x | config/hypr/scripts/SwitchKeyboardLayout.sh | 4 |
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 |
