From d254d3d0b630c9eb1a52683d0993ceac86630754 Mon Sep 17 00:00:00 2001 From: "Ja.KooLit" Date: Wed, 13 Mar 2024 05:44:48 +0900 Subject: removal of extra # to align with new hyprlang requirement. Credit goes to @@Ryuuyas --- config/hypr/scripts/SwitchKeyboardLayout.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/hypr/scripts/SwitchKeyboardLayout.sh') diff --git a/config/hypr/scripts/SwitchKeyboardLayout.sh b/config/hypr/scripts/SwitchKeyboardLayout.sh index 90451c67..b280493e 100755 --- a/config/hypr/scripts/SwitchKeyboardLayout.sh +++ b/config/hypr/scripts/SwitchKeyboardLayout.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # This is for changing kb_layouts. Set kb_layouts in $settings_file layout_f="$HOME/.cache/kb_layout" -- cgit v1.2.3 From 90e986c2acf89350444ce2ea0c1268d571089744 Mon Sep 17 00:00:00 2001 From: Maksym Diachok <108470719+BbIXOD@users.noreply.github.com> Date: Fri, 29 Mar 2024 22:58:21 +0200 Subject: 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. --- config/hypr/scripts/SwitchKeyboardLayout.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/hypr/scripts/SwitchKeyboardLayout.sh') 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" -- cgit v1.2.3