Files
dots/caelestia/hypr-user.lua
T
2026-09-14 21:59:03 +02:00

47 lines
1.1 KiB
Lua

hl.on("hyprland.start", function()
hl.exec_cmd("kwalletd6")
hl.exec_cmd("/usr/lib/polkit-kde-agent-1/polkit-kde-agent-1")
end)
local vars = require("variables")
hl.config({
input = {
kb_layout = "se",
numlock_by_default = false,
repeat_delay = 250,
repeat_rate = 35,
focus_on_close = 1,
touchpad = {
natural_scroll = true,
disable_while_typing = vars.touchpadDisableTyping,
scroll_factor = vars.touchpadScrollFactor,
},
},
binds = {
scroll_event_delay = 0,
},
cursor = {
hotspot_padding = 1,
},
})
hl.gesture({ fingers = 3, direction = "horizontal", action = "workspace" })
hl.window_rule({
name = "comm1-signal",
match = { class = "signal" },
workspace = "special:signal"
})
hl.window_rule({
name = "comm1-nctalk",
match = { class = "com.nextcloud.talk" },
workspace = "special:nctalk"
})
hl.bind("SUPER + SHIFT + D", hl.dsp.exec_cmd("caelestia toggle signal"))
hl.bind("SUPER + CTRL + D", hl.dsp.exec_cmd("caelestia toggle nctalks"))