cleaned up for using multiple laptops and fixed music workspace bindings

This commit is contained in:
2026-08-24 12:55:16 +01:00
parent e9907d15e9
commit f1dde35e3d
2 changed files with 9 additions and 4 deletions

View File

@@ -46,8 +46,8 @@ local keyboardString = corneKeyboardString
local keybindIndex = 1 local keybindIndex = 1
local recordingMode = 0 local recordingMode = 0
-- Set different modifiers on laptop -- Set different modifiers on laptops
if Hostname == "mobile02" or Hostname == "mobile03" then if string.find(Hostname, "mobile") ~= nil then
mainMod = "ALT + " mainMod = "ALT + "
subMod = "SUPER + " subMod = "SUPER + "
keyboardString = "1234567890" keyboardString = "1234567890"
@@ -201,12 +201,17 @@ for _, bind in ipairs(globalAppBinds) do
else else
hl.bind(modBind .. bind.key[1], command) hl.bind(modBind .. bind.key[1], command)
end end
-- If corne keys not being bound by default, then bind them just in case -- If corne keys not being bound by default, then bind them just in case
if keybindIndex ~= 1 then if keybindIndex ~= 1 then
local deviceSpecifier = { device = { inclusive = true, list = { "zmk-project-corne-keyboard" } } } local deviceSpecifier = { device = { inclusive = true, list = { "zmk-project-corne-keyboard" } } }
-- Apply options so that dragging windows and stuff works -- Apply options so that dragging windows and stuff works
local corneOptions = merge_into(opts, deviceSpecifier) local corneOptions = merge_into(opts, deviceSpecifier)
hl.bind("SUPER + " .. bind.key[1], command, corneOptions)
-- Prevent binding keys multiple times if its already bound
if subMod ~= "SUPER + " then
hl.bind("SUPER + " .. bind.key[1], command, corneOptions)
end
end end
end end

View File

@@ -90,7 +90,7 @@ hl.workspace_rule({
gaps_out = { gaps_out = {
left = musicSides, left = musicSides,
right = musicSides, right = musicSides,
bottom = musicSides, bottom = musicBottom,
}, },
animation = "slidefadevert", animation = "slidefadevert",
}) })