mirror of
https://github.com/arthur-pbty/arch-custom-iso.git
synced 2026-08-01 20:28:05 +02:00
fix hyprland config error
This commit is contained in:
@@ -256,7 +256,7 @@ local mainMod = "SUPER" -- Sets "Windows" key as main modifier
|
||||
hl.bind(mainMod .. " + Return", hl.dsp.exec_cmd(terminal))
|
||||
local closeWindowBind = hl.bind(mainMod .. " + W", hl.dsp.window.close())
|
||||
-- closeWindowBind:set_enabled(false)
|
||||
hl.bind(mainMod .. " + M", hl.dsp.exec_cmd("command -v hyprshutdown >/dev/null 2>&1 && hyprshutdown || hyprctl dispatch 'hl.dsp.exit()'"))
|
||||
hl.bind(mainMod .. " + M", hl.dsp.exec_cmd("command -v hyprshutdown >/dev/null 2>&1 && hyprshutdown || hyprctl dispatch exit"))
|
||||
hl.bind(mainMod .. " + F", hl.dsp.exec_cmd(fileManager))
|
||||
hl.bind(mainMod .. " + T", hl.dsp.window.float({ action = "toggle" }))
|
||||
hl.bind(mainMod .. " + SPACE", hl.dsp.exec_cmd(menu))
|
||||
@@ -276,8 +276,9 @@ for i = 1, 10 do
|
||||
local keycode = 9 + i -- 10=1, 11=2, 12=3 ... 18=9, 19=0
|
||||
local key_str = "code:" .. keycode
|
||||
|
||||
hl.bind(mainMod .. " + " .. key_str, hl.dsp.workspace(i))
|
||||
hl.bind(mainMod .. " + SHIFT + " .. key_str, hl.dsp.movetoworkspace(i))
|
||||
-- Utilisation de exec_cmd pour éviter les erreurs d'API (workspace est une table, pas une fonction)
|
||||
hl.bind(mainMod .. " + " .. key_str, hl.dsp.exec_cmd("workspace " .. i))
|
||||
hl.bind(mainMod .. " + SHIFT + " .. key_str, hl.dsp.exec_cmd("movetoworkspace " .. i))
|
||||
end
|
||||
|
||||
-- Example special workspace (scratchpad)
|
||||
|
||||
Reference in New Issue
Block a user