diff options
| author | Maksym Diachok <108470719+BbIXOD@users.noreply.github.com> | 2024-03-29 22:58:21 +0200 |
|---|---|---|
| committer | Maksym Diachok <maksdyachok2005@gmail.com> | 2024-03-31 20:34:47 +0300 |
| commit | 90e986c2acf89350444ce2ea0c1268d571089744 (patch) | |
| tree | 02f743f5f84ebfdbfa929576c7b00a22c0d6cb77 | |
| parent | 7fefc808e40d763217b1ae5ad2bd7548eb160084 (diff) | |
fix: Fix bug in SwitchKeyboardLayout.sh
`hyprctl switchxkblayout input:kb_layout $next_index` is a proper way to switch layouts. Should prevent from keybinds messing.
| -rwxr-xr-x | config/hypr/scripts/SwitchKeyboardLayout.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/hypr/scripts/SwitchKeyboardLayout.sh b/config/hypr/scripts/SwitchKeyboardLayout.sh index b280493e..0145e262 100755 --- a/config/hypr/scripts/SwitchKeyboardLayout.sh +++ b/config/hypr/scripts/SwitchKeyboardLayout.sh @@ -38,8 +38,8 @@ next_index=$(( (current_index + 1) % layout_count )) new_layout="${layout_mapping[next_index]}" # Update the keyboard layout -hyprctl keyword input:kb_layout "$new_layout" +hyprctl switchxkblayout "at-translated-set-2-keyboard" "$new_layout" echo "$new_layout" > "$layout_f" # Notification for the new keyboard layout -notify-send -u low -i "$notif" "new KB_Layout: $new_layout"
\ No newline at end of file +notify-send -u low -i "$notif" "new KB_Layout: $new_layout" |
