[Hypr] move lua setup to new folder, add bind to toggle muting of default mic

This commit is contained in:
2026-05-29 17:00:49 +02:00
parent e73e7b2353
commit 9602c673e5
5 changed files with 138 additions and 0 deletions
-25
View File
@@ -1,25 +0,0 @@
-- TODO: Laptop vs desktop vs docked config
local swap_escape = false
hl.config({
general = require("hyprland.core.general")(),
input = require("hyprland.core.input")(swap_escape),
xwayland = {
force_zero_scaling = true,
},
misc = {
disable_hyprland_logo = true,
disable_splash_rendering = false,
vrr = 3,
allow_session_lock_restore = true,
},
dwindle = {
pseudotile = true,
force_split = 2,
preserve_split = true,
},
})
hl.device({
name = "pnp0c50:00-093a:0255-touchpad",
enabled = true,
})
@@ -52,6 +52,7 @@ bind = , U, exec, hyprctl keyword input:kb_layout us && hyprctl keyword input:kb
bind = , U, submap, reset
bind = , C, exec, hyprctl keyword input:kb_layout ch && hyprctl keyword input:kb_variant '' && notify-send 'Set to CH keyboard layout' --app-name="Keyboard layout"
bind = , C, submap, reset
bind = , M, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
# ── Exit submap ─────────────────────────────────────────────────────