diff options
Diffstat (limited to 'config')
| -rw-r--r-- | config/hypr/configs/Keybinds.conf | 2 | ||||
| -rw-r--r-- | config/hypr/lua/keybinds.lua | 34 |
2 files changed, 11 insertions, 25 deletions
diff --git a/config/hypr/configs/Keybinds.conf b/config/hypr/configs/Keybinds.conf index d7433ec6..00ed84a4 100644 --- a/config/hypr/configs/Keybinds.conf +++ b/config/hypr/configs/Keybinds.conf @@ -141,7 +141,7 @@ bindd = $mainMod ALT, S, Toggle scrolling V/H, exec, bash -c '[[ $(hyprctl getop $layout = 'smartgrid' # Or, using XDG_CONFIG_HOME: -bind = ctrl, tab, exec, $scriptsDir/toggle-qs-hyprview.sh $layout +bind = alt, tab, exec, $scriptsDir/toggle-qs-hyprview.sh $layout # Cycle windows; if floating bring to top bindd = ALT, Tab, Cycle next window, cyclenext diff --git a/config/hypr/lua/keybinds.lua b/config/hypr/lua/keybinds.lua index 82ccbfa7..9edbe8f3 100644 --- a/config/hypr/lua/keybinds.lua +++ b/config/hypr/lua/keybinds.lua @@ -330,12 +330,9 @@ bind( -- "satellite", "staggered", "columnar", "vortex", "random" local qs_hyprview_layout = "smartgrid" bind( - "CTRL", + "ALT", "tab", - exec_cmd( - "$HOME/.config/hypr/scripts/toggle-qs-hyprview.sh " - .. qs_hyprview_layout - ), + exec_cmd("$HOME/.config/hypr/scripts/toggle-qs-hyprview.sh " .. qs_hyprview_layout), { description = "qs-hyprview toggle" } ) local col_width_presets = { 0.25, 0.33, 0.5, 0.66, 0.75, 1.0 } @@ -372,7 +369,11 @@ local function _monitor_width(win) if hl.get_active_monitor then local active_mon = hl.get_active_monitor() if type(active_mon) == "table" then - local w = _as_number(active_mon.width or active_mon.w or (type(active_mon.size) == "table" and (active_mon.size[1] or active_mon.size.width))) + local w = _as_number( + active_mon.width + or active_mon.w + or (type(active_mon.size) == "table" and (active_mon.size[1] or active_mon.size.width)) + ) if w ~= nil then return w end @@ -561,25 +562,10 @@ bind( -- exec_cmd("bash $HOME/.config/hypr/scripts/ResizeActive.sh 0 50"), -- { description = "resize down (+50)" } -- ) -bind( - "SUPER SHIFT", - "left", - dispatch("resizeactive", "-50 0"), - { description = "resize left (-50)" } -) -bind( - "SUPER SHIFT", - "right", - dispatch("resizeactive", "50 0"), - { description = "resize right (+50)" } -) +bind("SUPER SHIFT", "left", dispatch("resizeactive", "-50 0"), { description = "resize left (-50)" }) +bind("SUPER SHIFT", "right", dispatch("resizeactive", "50 0"), { description = "resize right (+50)" }) bind("SUPER SHIFT", "up", dispatch("resizeactive", "0 -50"), { description = "resize up (-50)" }) -bind( - "SUPER SHIFT", - "down", - dispatch("resizeactive", "0 50"), - { description = "resize down (+50)" } -) +bind("SUPER SHIFT", "down", dispatch("resizeactive", "0 50"), { description = "resize down (+50)" }) -- Keep legacy directional move script binds commented for rollback during Lua API migration. -- Native movewindow dispatch below replaces LuaMoveWindowDirectional.sh usage. -- bind( |
