Rebuild keyboard config

This commit is contained in:
2026-05-25 15:54:25 -04:00
parent b66c051ef8
commit f115c971c8
6 changed files with 125 additions and 5 deletions
+7
View File
@@ -0,0 +1,7 @@
{
"workspace": {
"library": [
/usr/share/hypr/stubs"
]
}
}
+25
View File
@@ -0,0 +1,25 @@
# ! Auto-generated file. Do not edit directly.
# Remove source = ./dms/colors.conf from your config to override.
$primary = rgb(d0bcff)
$outline = rgb(948f99)
$error = rgb(f2b8b5)
general {
col.active_border = $primary
col.inactive_border = $outline
}
group {
col.border_active = $primary
col.border_inactive = $outline
col.border_locked_active = $error
col.border_locked_inactive = $outline
groupbar {
col.active = $primary
col.inactive = $outline
col.locked_active = $error
col.locked_inactive = $outline
}
}
+11
View File
@@ -0,0 +1,11 @@
# Auto-generated by DMS - do not edit manually
general {
gaps_in = 4
gaps_out = 4
border_size = 2
}
decoration {
rounding = 12
}
View File
+7 -5
View File
@@ -19,7 +19,7 @@ hl.monitor({
output = "",
mode = "preferred",
position = "auto",
scale = "auto",
scale = 1,
})
@@ -251,14 +251,16 @@ hl.device({
---- KEYBINDINGS ----
---------------------
require('keybinds')
local mainMod = "SUPER" -- Sets "Windows" key as main modifier
-- Example binds, see https://wiki.hypr.land/Configuring/Basics/Binds/ for more
hl.bind(mainMod .. " + Q", hl.dsp.exec_cmd(terminal))
-- hl.bind(mainMod .. " + Q", hl.dsp.exec_cmd(terminal))
local closeWindowBind = hl.bind(mainMod .. " + C", 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 .. " + E", hl.dsp.exec_cmd(fileManager))
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 .. " + E", hl.dsp.exec_cmd(fileManager))
hl.bind(mainMod .. " + V", hl.dsp.window.float({ action = "toggle" }))
hl.bind(mainMod .. " + R", hl.dsp.exec_cmd(menu))
hl.bind(mainMod .. " + P", hl.dsp.window.pseudo())
+75
View File
@@ -0,0 +1,75 @@
local mainMod = "SUPER"
local terminal = "kitty"
local browser = "flatpak run app.zen_browser.zen"
local fileManager = "dolphin"
local menu = "hyprlauncher"
local calculator = "kcalc"
hl.bind(mainMod .. " + RETURN", hl.dsp.exec_cmd(terminal))
hl.bind(mainMod .. " + B", hl.dsp.exec_cmd(browser))
hl.bind(mainMod .. " + E", hl.dsp.exec_cmd(fileManager))
hl.bind(mainMod .. " + SPACE", hl.dsp.exec_cmd(menu))
local closeWindowBind = hl.bind(mainMod .. " + Q", hl.dsp.window.close())
hl.bind(mainMod .. " + F", hl.dsp.window.fullscreen({ action = "toggle" }))
hl.bind(mainMod .. " + M", hl.dsp.window.fullscreen({ mode = "maximized" }))
hl.bind(mainMod .. " + T", hl.dsp.window.float({action = "toggle"}))
hl.bind(mainMod .. " + mouse:272", hl.dsp.window.drag(), { mouse = true })
hl.bind(mainMod .. " + mouse:273", hl.dsp.window.resize(), { mouse = true})
hl.bind(mainMod .. " + K", hl.dsp.window.swap({ prev = 1 }))
hl.bind(mainMod .. " + J", hl.dsp.window.swap({ direction = "down" }))
hl.bind(mainMod .. " + CTRL + R", hl.dsp.exec_cmd("hyprctl reload"))
-- Specialized Keybinds (such as play, volume up/down, etc)
hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd("brightnessctl -q s +10%"))
hl.bind("XF86MonBrightnessDown", hl.dsp.exec_cmd("brightnessctl -q s 10-%"))
hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd("wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+"))
hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"))
hl.bind("XF86AudioMute", hl.dsp.exec_cmd("pactl set-sink-mute @DEFAULT_SINK@ toggle"))
hl.bind("XF86AudioPlay", hl.dsp.exec_cmd("playerctl play-pause"))
hl.bind("XF86AudioPause", hl.dsp.exec_cmd("playerctl pause"))
hl.bind("XF86AudioNext", hl.dsp.exec_cmd("playerctl next"))
hl.bind("XF86AudioPrev", hl.dsp.exec_cmd("playerctl previous"))
hl.bind("code:238", hl.dsp.exec_cmd("brightnessctl -d smc::kbd_backlight s +10"))
hl.bind("XF86Calculator", hl.dsp.exec_cmd(calculator))
-- Grouping Related submaps
hl.bind(mainMod .. " + G", hl.dsp.submap("group"))
hl.define_submap("group", function()
hl.bind("G", function()
hl.dsp.group.toggle()
hl.dsp.submap("reset")
end)
hl.bind("H", function()
hl.dsp.window.move({ into_or_create_group = "left" })
hl.dsp.submap("reset")
end)
hl.bind("L", function()
hl.dsp.window.move({into_or_create_group = "right" })
hl.dsp.submap("reset")
end)
hl.bind("K", function()
hl.dsp.window.move({into_or_create_group = "up"})
hl.dsp.submap("reset")
end)
hl.bind("J", function()
hl.dsp.window.move({into_or_create_group = "down"})
hl.dsp.submap("reset")
end)
hl.bind("bracketleft", hl.dsp.group.prev())
hl.bind("bracketright", hl.dsp.group.next())
hl.bind("ESCAPE", hl.dsp.submap("reset"))
end)