From a2651ce31761301b5ac9c1c5915ef16c3f13ce6f Mon Sep 17 00:00:00 2001 From: tak0dan Date: Sat, 26 Jul 2025 17:20:35 +0200 Subject: Small technical additions for keyboard layout and app dispatch fixesSmall technical additions for keyboard layout and app dispatch fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit introduces two minor but useful scripts aimed at solving specific edge cases in Hyprland usage: 1. Tak0-Per-Window-Switch.sh: Enables per-window keyboard layout switching. This is useful for multilingual workflows where the global layout model becomes inconvenient. The script listens to window focus events and restores the last-used layout for that specific window. 2. Tak0-Autodispatch.sh: Fixes a recurring issue where startup applications are dispatched to incorrect monitors or workspaces, especially in dynamic multi-monitor environments (e.g., a laptop that gets docked/undocked). The original dispatch rules sometimes fail due to race conditions or child process spawning out of focus. This script re-applies correct dispatching logic after startup, reducing manual corrections. Also: - Updated UserKeybinds.conf to run the per-window layout script at startup. - All changes are additive. No existing configs or behavior were overridden or broken. These changes don't introduce any core structural modifications — just small utilities to improve the overall experience when using Hyprland in daily workflows. --- config/hypr/UserConfigs/UserKeybinds.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config/hypr/UserConfigs/UserKeybinds.conf') diff --git a/config/hypr/UserConfigs/UserKeybinds.conf b/config/hypr/UserConfigs/UserKeybinds.conf index 70202ba4..dd18b971 100644 --- a/config/hypr/UserConfigs/UserKeybinds.conf +++ b/config/hypr/UserConfigs/UserKeybinds.conf @@ -64,7 +64,8 @@ bind = $mainMod CTRL, O, exec, hyprctl setprop active opaque toggle # disable op bind = $mainMod SHIFT, K, exec, $scriptsDir/KeyBinds.sh # search keybinds via rofi bind = $mainMod SHIFT, A, exec, $scriptsDir/Animations.sh #hyprland animations menu bind = $mainMod SHIFT, O, exec, $UserScripts/ZshChangeTheme.sh # Change oh-my-zsh theme -bindln = ALT_L, SHIFT_L, exec, $scriptsDir/SwitchKeyboardLayout.sh # Change keyboard layout +bindln = ALT_L, SHIFT_L, exec, $scriptsDir/SwitchKeyboardLayout.sh # Change keyboard layout globally +bindln = SHIFT_L, ALT_L, exec, $scriptsDir/Tak0-Per-Window-Switch.sh # Change keyboard layout locally for each window bind = $mainMod ALT, C, exec, $UserScripts/RofiCalc.sh # calculator (qalculate) -- cgit v1.2.3