Compare commits

...

5 Commits

Author SHA1 Message Date
Andrew b08732e898 Add more DMS-related keybinds 2026-06-04 20:39:44 -04:00
Andrew b228ba16fa Replace hyprlauncher with DMS Shell launcher 2026-06-04 15:05:00 -04:00
Andrew 7e47956fdb Tune scrolling layout 2026-05-25 16:59:50 -04:00
Andrew 00139c7023 Add workspace rules 2026-05-25 16:51:51 -04:00
Andrew f115c971c8 Rebuild keyboard config 2026-05-25 15:54:25 -04:00
7 changed files with 154 additions and 12 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
+17 -12
View File
@@ -19,7 +19,7 @@ hl.monitor({
output = "",
mode = "preferred",
position = "auto",
scale = "auto",
scale = 1,
})
@@ -196,6 +196,8 @@ hl.config({
hl.config({
scrolling = {
fullscreen_on_one_column = true,
column_width = 0.80,
focus_fit_method = 0
},
})
@@ -210,7 +212,6 @@ hl.config({
},
})
---------------
---- INPUT ----
---------------
@@ -251,18 +252,20 @@ 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))
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())
hl.bind(mainMod .. " + J", hl.dsp.layout("togglesplit")) -- dwindle only
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())
-- hl.bind(mainMod .. " + J", hl.dsp.layout("togglesplit")) -- dwindle only
-- Move focus with mainMod + arrow keys
hl.bind(mainMod .. " + left", hl.dsp.focus({ direction = "left" }))
@@ -287,8 +290,8 @@ hl.bind(mainMod .. " + mouse_down", hl.dsp.focus({ workspace = "e+1" }))
hl.bind(mainMod .. " + mouse_up", hl.dsp.focus({ workspace = "e-1" }))
-- Move/resize windows with mainMod + LMB/RMB and dragging
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 .. " + mouse:272", hl.dsp.window.drag(), { mouse = true })
-- hl.bind(mainMod .. " + mouse:273", hl.dsp.window.resize(), { mouse = true })
-- Laptop multimedia keys for volume and LCD brightness
hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd("wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+"), { locked = true, repeating = true })
@@ -309,6 +312,8 @@ hl.bind("XF86AudioPrev", hl.dsp.exec_cmd("playerctl previous"), { locked = tr
---- WINDOWS AND WORKSPACES ----
--------------------------------
require("workspaces")
-- See https://wiki.hypr.land/Configuring/Basics/Window-Rules/
-- and https://wiki.hypr.land/Configuring/Basics/Workspace-Rules/
+83
View File
@@ -0,0 +1,83 @@
local mainMod = "SUPER"
local terminal = "kitty"
local browser = "flatpak run app.zen_browser.zen"
local fileManager = "dolphin"
local menu = "dms ipc call spotlight open"
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 .. " + L", hl.dsp.exec_cmd("dms ipc call lock lock"))
hl.bind(mainMod .. " + CTRL + Q", hl.dsp.exec_cmd("dms ipc call powermenu open"))
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(mainMod .. " + 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)
hl.on("keybinds.submap", function (n)
hl.notification.create({ text = "Entered submap: " .. n, timeout = 5000, icon = "ok"})
end)
+11
View File
@@ -0,0 +1,11 @@
hl.workspace_rule({ workspace = "1", monitor = "eDP-1", layout = "scrolling"})
hl.workspace_rule({ workspace = "3", monitor = "eDP-1", layout = "scrolling"})
hl.workspace_rule({ workspace = "5", monitor = "eDP-1", layout = "scrolling"})
hl.workspace_rule({ workspace = "7", monitor = "eDP-1", layout = "scrolling"})
hl.workspace_rule({ workspace = "9", monitor = "eDP-1", layout = "scrolling"})
hl.workspace_rule({ workspace = 2, monitor = "HDMI-A-3" })
hl.workspace_rule({ workspace = 4, monitor = "HDMI-A-3" })
hl.workspace_rule({ workspace = 6, monitor = "HDMI-A-3" })
hl.workspace_rule({ workspace = 8, monitor = "HDMI-A-3" })
hl.workspace_rule({ workspace = 0, monitor = "HDMI-A-3" })