Browse Source

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.
pull/189/head
Maksym Diachok 2 years ago committed by John Titor
parent
commit
d66e309078
No known key found for this signature in database
GPG Key ID: 29B0514F4E3C1CC0
  1. 2
      config/hypr/scripts/SwitchKeyboardLayout.sh

2
config/hypr/scripts/SwitchKeyboardLayout.sh

@ -38,7 +38,7 @@ next_index=$(( (current_index + 1) % layout_count ))
new_layout="${layout_mapping[next_index]}" new_layout="${layout_mapping[next_index]}"
# Update the keyboard layout # 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" echo "$new_layout" > "$layout_f"
# Notification for the new keyboard layout # Notification for the new keyboard layout

Loading…
Cancel
Save