Update dotfiles (2026-05-31 16:36:42)

This commit is contained in:
2026-05-31 16:36:42 +02:00
parent fc1a17b447
commit 7f5c6731aa
40 changed files with 23076 additions and 23173 deletions
+29 -4
View File
@@ -2,6 +2,34 @@ local mainMod = "SUPER"
local prefix = "app2unit -S out -- "
local fileManager = "dolphin"
local MAX_ZOOM = 10
local MIN_ZOOM = 1
local ZOOM_TOGGLE_FACTOR = 1.5
---@param offset number
---@return nil
local function zoom(offset)
local current = hl.get_config("cursor.zoom_factor")
if offset ~= nil then
current = current + offset
elseif current ~= MIN_ZOOM then
current = MIN_ZOOM
else
current = ZOOM_TOGGLE_FACTOR
end
current = math.max(MIN_ZOOM, math.min(MAX_ZOOM, current))
hl.config({ cursor = { zoom_factor = current } })
end
-- Zooming
hl.bind(mainMod .. " + GRAVE", zoom)
hl.bind(mainMod .. " + mouse_down", function()
zoom(0.5)
end)
hl.bind(mainMod .. " + mouse_up", function()
zoom(-0.5)
end)
-- Zachjittery
hl.bind(mainMod .. " + RETURN", hl.dsp.exec_cmd(prefix .. "zterm"))
hl.bind(mainMod .. " + CTRL + RETURN", hl.dsp.global("zshell:toggle-launcher"))
@@ -16,10 +44,6 @@ hl.bind(
hl.dsp.exec_cmd("zshell-cli shell kill; sleep 0.5; " .. prefix .. "zshell-cli shell start")
)
-- ZOOMING HYPRLAND IS WEIRD
hl.bind(mainMod .. " + mouse_down", hl.dsp.exec_cmd("~/.config/hypr/scripts/zoomIn.sh"))
hl.bind(mainMod .. " + mouse_up", hl.dsp.exec_cmd("~/.config/hypr/scripts/zoomOut.sh"))
-- QML
hl.bind("CTRL + mouse:274", hl.dsp.exec_cmd("ideskpet toggle-region"))
hl.bind("SHIFT + mouse:274", hl.dsp.exec_cmd("ideskpet toggle-layer"))
@@ -50,6 +74,7 @@ hl.bind(mainMod .. " + T", hl.dsp.window.float({ action = "toggle" }))
hl.bind(mainMod .. " + K", hl.dsp.layout("swapsplit"))
hl.bind(mainMod .. " + J", hl.dsp.layout("togglesplit"))
hl.bind(mainMod .. " + F", hl.dsp.window.fullscreen())
hl.bind(mainMod .. " + SHIFT + F", hl.dsp.window.fullscreen_state({ internal = 3, client = 3, action = "toggle" }))
hl.bind(mainMod .. " + left", hl.dsp.focus({ direction = "left" }))
hl.bind(mainMod .. " + right", hl.dsp.focus({ direction = "right" }))
hl.bind(mainMod .. " + up", hl.dsp.focus({ direction = "up" }))