diff options
| author | kayprish <86522033+kayprish@users.noreply.github.com> | 2026-01-01 03:10:40 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-31 21:10:40 -0500 |
| commit | 991f30d07ffbdeef8498ca45cf85284b2e85280e (patch) | |
| tree | 75230d63728f0752f1802eeb2e45565deb94ab3e /config/hypr/configs/Keybinds.conf | |
| parent | 2ae39ff4ea20d67e38300a0f5ac5445a3af1c64a (diff) | |
Modify SwitchKeyboardLayout.sh to not require .cache/kb_layout (#901)
* Modify SwitchKeyboardLayout.sh to not require .cache/kb_layout
The bulk of the SwitchKeyboardLayout.sh script has been renamed to
KeyboardLayout.sh, meanwhile its behavior has been changed.
Instead of relying on the file .cache/kb_layout, to check the current
keyboard layout, as well as to toggle it, it now uses hyprctl to query
this information, while making sure that it checks the first non-ignored
keyboard. In this way, it querys from keyboards which it's also in
charge of modifying. The logic from the script is also repurposed in
waybar, just for viewing, so the script was renamed.
* Implement fixes for KeyboardLayout.sh changes
* Remove SwitchKeyboardLayout call from initial-boot.sh
---------
Co-authored-by: Petar Kapriš <kayprish@bonsai.cool>
Co-authored-by: Donald Williams <129223418+dwilliam62@users.noreply.github.com>
Diffstat (limited to 'config/hypr/configs/Keybinds.conf')
| -rw-r--r-- | config/hypr/configs/Keybinds.conf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/hypr/configs/Keybinds.conf b/config/hypr/configs/Keybinds.conf index 43bd1e94..91eb66e2 100644 --- a/config/hypr/configs/Keybinds.conf +++ b/config/hypr/configs/Keybinds.conf @@ -62,7 +62,7 @@ bindd = $mainMod CTRL, O, toggle active window opacity, setprop, active opaque t bindd = $mainMod SHIFT, K, search keybinds, exec, $scriptsDir/KeyBinds.sh bindd = $mainMod SHIFT, A, animations menu, exec, $scriptsDir/Animations.sh bindd = $mainMod SHIFT, O, change oh-my-zsh theme, exec, $UserScripts/ZshChangeTheme.sh -bindlnd = ALT_L, SHIFT_L, switch keyboard layout globally, exec, $scriptsDir/SwitchKeyboardLayout.sh +bindlnd = ALT_L, SHIFT_L, switch keyboard layout globally, exec, $scriptsDir/KeyboardLayout.sh switch bindlnd = SHIFT_L, ALT_L, switch keyboard layout per-window, exec, $scriptsDir/Tak0-Per-Window-Switch.sh bindd = $mainMod ALT, C, calculator, exec, $UserScripts/RofiCalc.sh |
