diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-14 05:57:34 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-14 05:57:34 +0800 |
| commit | 2030a14afc3753746aa2bd2f36e4b49f590063df (patch) | |
| tree | 4edc2a3fcbcdfcab6c12820fecc083067b6ff138 /keybind.lua | |
| parent | bc8a5889c4bb52405f2ac73d18a42ab43e93e867 (diff) | |
fix(config): update wallpaper and fix float toggle for Lua build
Update wallpaper to KON_2.png and rewrite toggle_float_center.sh
to use Lua syntax dispatchers, as old dispatcher names are
unavailable under hyprland.lua.
```
Diffstat (limited to 'keybind.lua')
| -rw-r--r-- | keybind.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/keybind.lua b/keybind.lua index c0e765b..da33d17 100644 --- a/keybind.lua +++ b/keybind.lua @@ -25,7 +25,8 @@ hl.bind(mainMod .. " + CTRL + A", hl.dsp.exec_cmd(variables.screenshot)) hl.bind(mainMod .. " + SHIFT + F12", hl.dsp.exit()) -- 切换浮动窗口 ALT + F --- hl.bind(mainMod .. " + F", hl.dsp.window.float()) +-- 注意:本构建中“纯 Lua 函数绑定”存在 bug 不会触发(dispatcher 绑定正常), +-- 因此这里改为执行脚本(脚本内用 hyprctl dispatch + Lua 语法 dispatcher 实现) hl.bind(mainMod .. " + F", hl.dsp.exec_cmd("~/.config/hypr/scripts/toggle_float_center.sh")) -- 切换全屏 ALT + F12 |
