23 Commits
Author SHA1 Message Date
janishutz c7780ea9d8 feat: pdf page script now reads dirs recursively 2026-07-27 14:46:17 +02:00
janishutz 08c3d41ff2 feat: improved pdf page count script 2026-07-26 14:47:18 +02:00
janishutz ecaab3e673 fix: special workspace used 2026-07-26 12:30:02 +02:00
janishutz 6d2306e3f7 feat: script to count pdf pages 2026-07-25 16:43:05 +02:00
janishutz 0ec2614799 fix: dev container script container selection 2026-07-25 06:54:30 +02:00
janishutz 62de408edd feat: reworked dev container script, many more features 2026-07-24 13:42:20 +02:00
janishutz 90bc568a06 feat: dev container startup script fixes and docker auto-start 2026-07-24 11:07:26 +02:00
janishutz dc2ed58d20 feat: windowrules for summaries pdfs 2026-07-22 10:25:33 +02:00
janishutz c404e5107e feat: dms settings updated 2026-07-21 11:45:24 +02:00
janishutz 0f848aa16c feat: improved dev env launcher script 2026-07-18 08:52:54 +02:00
janishutz 7e4c52d4d1 fix: improved workspace rules 2026-07-17 13:28:29 +02:00
janishutz 12622ce815 fix: workspace rule for workspace 10 2026-07-17 13:26:03 +02:00
janishutz 2ecc89b6b3 fix: windowrule for pdf readers 2026-07-17 09:34:43 +02:00
janishutz 682750bf63 feat: better binds 2026-07-17 09:04:29 +02:00
janishutz cad9b833ae feat: improved predictability 2026-07-17 08:48:46 +02:00
janishutz b99e6fe109 fix: bind for wallpaper picker 2026-07-13 13:23:21 +02:00
janishutz e7e7e7692e feat: wallpaper picker bind 2026-07-13 13:23:00 +02:00
janishutz d3f67649ca feat: better animations 2026-07-12 12:16:23 +02:00
janishutz e37d9f64be feat: group binds 2026-07-12 12:13:20 +02:00
janishutz c51f60064e feat: descriptions for hyprland binds 2026-07-11 09:12:24 +02:00
janishutz b11a8f82c6 feat: dms settings 2026-07-10 17:27:59 +02:00
janishutz e554d98510 fix: qt6ct config 2026-07-10 17:27:34 +02:00
janishutz fd4f36a3c9 feat: add more launch commands 2026-07-08 15:50:27 +02:00
22 changed files with 580 additions and 211 deletions
+16 -10
View File
@@ -3,19 +3,19 @@ local function exit_submap()
end end
-- TODO: Update this for laptop -- TODO: Update this for laptop
hl.bind("code:232", hl.dsp.exec_cmd("brightnessctl -S")) hl.bind("code:232", hl.dsp.exec_cmd("brightnessctl -S"), { description = "Doesn't do anything yet" })
-- bind = ,code:232, exec, light -U 5 && notify-send 'Display brightness decreased by 5%' -- bind = ,code:232, exec, light -U 5 && notify-send 'Display brightness decreased by 5%'
-- bind = ,code:233, exec, light -A 5 && notify-send 'Display brightness increased by 5%' -- bind = ,code:233, exec, light -A 5 && notify-send 'Display brightness increased by 5%'
hl.bind("code:123", hl.dsp.exec_cmd("pamixer -i 5")) hl.bind("code:123", hl.dsp.exec_cmd("pamixer -i 5"), { description = "Increase volume by 5%" })
hl.bind("code:122", hl.dsp.exec_cmd("pamixer -d 5")) hl.bind("code:122", hl.dsp.exec_cmd("pamixer -d 5"), { description = "Decrease volume by 5%" })
hl.bind("code:121", hl.dsp.exec_cmd("pamixer t")) hl.bind("code:121", hl.dsp.exec_cmd("pamixer t"), { description = "Open mixer" })
hl.define_submap("device", function() hl.define_submap("device", function()
hl.bind("m", function() hl.bind("m", function()
hl.dispatch(hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle")) hl.dispatch(hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"))
exit_submap() exit_submap()
end) end, { description = "Toggle mute for default audio input device" })
-- Touchpad -- Touchpad
hl.bind("SHIFT + T", function() hl.bind("SHIFT + T", function()
@@ -24,33 +24,39 @@ hl.define_submap("device", function()
enabled = false, enabled = false,
}) })
hl.dispatch(hl.dsp.exec_cmd("notify-send 'Disabled Trackpad' --app-name='Hyprctl'")) hl.dispatch(hl.dsp.exec_cmd("notify-send 'Disabled Trackpad' --app-name='Hyprctl'"))
end) end, { description = "Disable trackpad" })
hl.bind("T", function() hl.bind("T", function()
hl.device({ hl.device({
name = "pnp0c50:00-093a:0255-touchpad", name = "pnp0c50:00-093a:0255-touchpad",
enabled = true, enabled = true,
}) })
hl.dispatch(hl.dsp.exec_cmd("notify-send 'Enabled Trackpad' --app-name='Hyprctl'")) hl.dispatch(hl.dsp.exec_cmd("notify-send 'Enabled Trackpad' --app-name='Hyprctl'"))
end) end, { description = "Enable trackpad" })
-- ── DMS controls ───────────────────────────────────────────────── -- ── DMS controls ─────────────────────────────────────────────────
-- clipboard history -- clipboard history
hl.bind("h", function() hl.bind("h", function()
hl.dispatch(hl.dsp.exec_cmd("dms ipc call clipboard toggle")) hl.dispatch(hl.dsp.exec_cmd("dms ipc call clipboard toggle"))
exit_submap() exit_submap()
end) end, { description = "Toggle clipboard history panel" })
-- Dash -- Dash
hl.bind("d", function() hl.bind("d", function()
hl.dispatch(hl.dsp.exec_cmd("dms ipc call dash toggle")) hl.dispatch(hl.dsp.exec_cmd("dms ipc call dash toggle"))
exit_submap() exit_submap()
end) end, { description = "Toggle DMS dash (top left)" })
-- Wallpaper
hl.bind("w", function()
hl.dispatch(hl.dsp.exec_cmd("dms ipc call dankdash wallpaper"))
exit_submap()
end, { description = "Open DMS wallpaper picker" })
-- Settings -- Settings
hl.bind("s", function() hl.bind("s", function()
hl.dispatch(hl.dsp.exec_cmd("dms ipc call settings toggle")) hl.dispatch(hl.dsp.exec_cmd("dms ipc call settings toggle"))
exit_submap() exit_submap()
end) end, { description = "Toggle DMS settings" })
hl.bind("Escape", function() hl.bind("Escape", function()
exit_submap() exit_submap()
+4 -3
View File
@@ -4,25 +4,26 @@ end
hl.define_submap("groupedlaunch", function() hl.define_submap("groupedlaunch", function()
hl.bind("e", function() hl.bind("e", function()
hl.exec_cmd("systemctl start docker")
hl.exec_cmd("kitty ~/projects/eth/projects/eyetap/", { workspace = 1 }) hl.exec_cmd("kitty ~/projects/eth/projects/eyetap/", { workspace = 1 })
hl.exec_cmd("kitty ~/projects/eth/projects/eyetap/backend/", { workspace = 10 }) hl.exec_cmd("kitty ~/projects/eth/projects/eyetap/backend/", { workspace = 10 })
hl.exec_cmd("kitty ~/projects/eth/projects/eyetap/frontend/", { workspace = 10 }) hl.exec_cmd("kitty ~/projects/eth/projects/eyetap/frontend/", { workspace = 10 })
hl.exec_cmd("librewolf http://localhost:8081") hl.exec_cmd("librewolf http://localhost:8081")
exit_submap() exit_submap()
end) end, { description = "Launch programs for EYE-TAP development" })
hl.bind("s", function() hl.bind("s", function()
hl.exec_cmd("kitty ~/projects/eth/eth-summaries/", { workspace = 1 }) hl.exec_cmd("kitty ~/projects/eth/eth-summaries/", { workspace = 1 })
hl.exec_cmd("kitty ~/NextCloud/Documents/ETH/Semester4/", { workspace = 3 }) hl.exec_cmd("kitty ~/NextCloud/Documents/ETH/Semester4/", { workspace = 3 })
exit_submap() exit_submap()
end) end, { description = "Launch programs to write ETH summaries" })
hl.bind("b", function() hl.bind("b", function()
hl.exec_cmd("alvr_dashboard", { workspace = 1 }) hl.exec_cmd("alvr_dashboard", { workspace = 1 })
hl.exec_cmd("/opt/BSManager/bs-manager", { workspace = 2 }) hl.exec_cmd("/opt/BSManager/bs-manager", { workspace = 2 })
hl.exec_cmd("steam", { workspace = 3 }) hl.exec_cmd("steam", { workspace = 3 })
exit_submap() exit_submap()
end) end, { description = "Launch everything for BeatSaber" })
hl.bind("Escape", function() hl.bind("Escape", function()
exit_submap() exit_submap()
+9 -6
View File
@@ -2,39 +2,42 @@ local function exit_submap()
hl.dispatch(hl.dsp.submap("reset")) hl.dispatch(hl.dsp.submap("reset"))
end end
hl.bind("SUPER + SHIFT + H", hl.dsp.group.prev(), { description = "Go to previous group member" })
hl.bind("SUPER + SHIFT + L", hl.dsp.group.next(), { description = "Go to next group member" })
-- TODO: Improve mapping (also global mapping, for moving between els if to use regularly) -- TODO: Improve mapping (also global mapping, for moving between els if to use regularly)
-- Improve colours -- Improve colours
hl.define_submap("groups", function() hl.define_submap("groups", function()
hl.bind("c", function() hl.bind("c", function()
hl.dispatch(hl.dsp.group.toggle()) hl.dispatch(hl.dsp.group.toggle())
exit_submap() exit_submap()
end) end, { description = "Toggle group" })
hl.bind("l", function() hl.bind("l", function()
hl.dispatch(hl.dsp.group.next()) hl.dispatch(hl.dsp.group.next())
exit_submap() exit_submap()
end) end, { description = "Go to next group member" })
hl.bind("h", function() hl.bind("h", function()
hl.dispatch(hl.dsp.group.prev()) hl.dispatch(hl.dsp.group.prev())
exit_submap() exit_submap()
end) end, { description = "Go to previous group member" })
hl.bind("CTRL + L", function() hl.bind("CTRL + L", function()
hl.dispatch(hl.dsp.exec_cmd("notify-send 'Group locking toggled' --app-name='Hyprtclt'")) hl.dispatch(hl.dsp.exec_cmd("notify-send 'Group locking toggled' --app-name='Hyprtclt'"))
hl.dispatch(hl.dsp.group.lock_active()) hl.dispatch(hl.dsp.group.lock_active())
exit_submap() exit_submap()
end) end, { description = "Toggle group lock" })
hl.bind("SHIFT + L", function() hl.bind("SHIFT + L", function()
hl.dispatch(hl.dsp.window.move({ into_or_create_group = "r" })) hl.dispatch(hl.dsp.window.move({ into_or_create_group = "r" }))
exit_submap() exit_submap()
end) end, { description = "Move window into group to right" })
hl.bind("SHIFT + H", function() hl.bind("SHIFT + H", function()
hl.dispatch(hl.dsp.window.move({ into_or_create_group = "l" })) hl.dispatch(hl.dsp.window.move({ into_or_create_group = "l" }))
exit_submap() exit_submap()
end) end, { description = "Move window into group to left" })
hl.bind("Escape", function() hl.bind("Escape", function()
exit_submap() exit_submap()
+14 -14
View File
@@ -3,7 +3,7 @@ local function exit_submap()
end end
local function launcher(program) local function launcher(program)
return function () return function()
hl.dispatch(hl.dsp.exec_cmd(program)) hl.dispatch(hl.dsp.exec_cmd(program))
exit_submap() exit_submap()
end end
@@ -13,38 +13,38 @@ hl.bind("SUPER + Return", launcher("kitty"))
hl.define_submap("launch", function() hl.define_submap("launch", function()
-- Librewolf -- Librewolf
hl.bind("l", launcher("librewolf")) hl.bind("l", launcher("librewolf"), { description = "Launch Librewolf" })
-- Steam -- Steam
hl.bind("s", launcher("steam")) hl.bind("s", launcher("steam"), { description = "Launch Steam" })
-- Discord -- Discord
hl.bind("d", launcher("vesktop")) hl.bind("d", launcher("vesktop"), { description = "Launch Discord" })
-- Kitty -- Kitty
hl.bind("k", launcher("kitty")) hl.bind("k", launcher("kitty"), { description = "Launch kitty" })
hl.bind("Return", launcher("kitty")) hl.bind("Return", launcher("kitty"), { description = "Launch kitty" })
-- Filezilla -- Filezilla
hl.bind("f", launcher("filezilla")) hl.bind("f", launcher("filezilla"), { description = "Launch Filezilla" })
-- Thunderbird -- Thunderbird
hl.bind("t", launcher("thunderbird")) hl.bind("t", launcher("thunderbird"), { description = "Launch Thunderbird" })
-- Zathura -- Zathura
hl.bind("z", launcher("zathura")) hl.bind("z", launcher("zathura"), { description = "Launch Zathura (pdf)" })
-- Brave -- Brave
hl.bind("SHIFT + B", launcher("brave")) hl.bind("SHIFT + B", launcher("brave"), { description = "Launch Brave" })
-- bsmanager -- bsmanager
hl.bind("b", launcher("/opt/BSManager/bs-manager")) hl.bind("b", launcher("/opt/BSManager/bs-manager"), { description = "Launch BSManager" })
-- ALVR -- ALVR
hl.bind("p", launcher("alvr_dashboard")) hl.bind("p", launcher("alvr_dashboard"), { description = "Launch ALVR" })
-- Qalculate -- Qalculate
hl.bind("c", launcher("qalculate-qt")) hl.bind("c", launcher("qalculate-qt"), { description = "Launch Qalculate!" })
-- AirPlay -- AirPlay
hl.bind("a", function() hl.bind("a", function()
@@ -55,7 +55,7 @@ hl.define_submap("launch", function()
) )
) )
exit_submap() exit_submap()
end) end, { description = "Launch AirPlay server" })
-- Escape -- Escape
hl.bind("Escape", function() hl.bind("Escape", function()
+14 -13
View File
@@ -1,14 +1,15 @@
hl.bind("SUPER + X", hl.dsp.submap("launch")) hl.bind("SUPER + X", hl.dsp.submap("launch"), { description = "Launching programs" })
hl.bind("SUPER + D", hl.dsp.submap("device")) hl.bind("SUPER + D", hl.dsp.submap("device"), { description = "Device controls" })
hl.bind("SUPER + C", hl.dsp.submap("notifications")) hl.bind("SUPER + C", hl.dsp.submap("notifications"), { description = "Notifications management" })
hl.bind("SUPER + G", hl.dsp.submap("groups")) hl.bind("SUPER + G", hl.dsp.submap("groups"), { description = "Window group management" })
hl.bind("SUPER + S", hl.dsp.submap("screenshot")) hl.bind("SUPER + S", hl.dsp.submap("screenshot"), { description = "Screenshots" })
hl.bind("SUPER + W", hl.dsp.submap("window")) hl.bind("SUPER + W", hl.dsp.submap("window"), { description = "Window management" })
hl.bind("SUPER + A", hl.dsp.submap("workspace")) hl.bind("SUPER + A", hl.dsp.submap("workspace"), { description = "Workspace controls" })
hl.bind("SUPER + Q", hl.dsp.window.close()) hl.bind("SUPER + P", hl.dsp.submap("groupedlaunch"), { description = "Launch groups of programs" })
hl.bind("SUPER + P", hl.dsp.submap("groupedlaunch")) hl.bind("SUPER + Q", hl.dsp.window.close(), { description = "Close active window" })
hl.bind("SUPER + Space", hl.dsp.exec_cmd("dms ipc call spotlight toggle")) hl.bind("SUPER + Space", hl.dsp.exec_cmd("dms ipc call spotlight toggle"), { description = "Toggle app launcher" })
hl.bind("SUPER + Escape", hl.dsp.exec_cmd("wlogout")) hl.bind("SUPER + SHIFT + Space", hl.dsp.exec_cmd("dms ipc call spotlight-bar toggle"), { description = "Toggle app launcher as small bar" })
hl.bind("SUPER + I", hl.dsp.exec_cmd("dms ipc call control-center open")) hl.bind("SUPER + Escape", hl.dsp.exec_cmd("wlogout"), { description = "Toggle logout screen" })
hl.bind("SUPER + CTRL + H", hl.dsp.exec_cmd("dms ipc call keybinds toggle hyprland")) hl.bind("SUPER + I", hl.dsp.exec_cmd("dms ipc call control-center open"), { description = "Toggle control centre" })
hl.bind("SUPER + CTRL + H", hl.dsp.exec_cmd("dms ipc call keybinds toggle hyprland"), { description = "Toggle keybinds panel" })
+6 -6
View File
@@ -6,32 +6,32 @@ hl.define_submap("notifications", function()
hl.bind("c", function() hl.bind("c", function()
hl.dispatch(hl.dsp.exec_cmd("dms ipc call notifications dismissAllPopups")) hl.dispatch(hl.dsp.exec_cmd("dms ipc call notifications dismissAllPopups"))
exit_submap() exit_submap()
end) end, { description = "Hide notifications" })
hl.bind("d", function() hl.bind("d", function()
hl.dispatch(hl.dsp.exec_cmd("dms ipc call notifications clearAll")) hl.dispatch(hl.dsp.exec_cmd("dms ipc call notifications clearAll"))
exit_submap() exit_submap()
end) end, { description = "Delete all notifications" })
hl.bind("m", function() hl.bind("m", function()
hl.dispatch(hl.dsp.exec_cmd("dms ipc call notifications toggleDoNotDisturb")) hl.dispatch(hl.dsp.exec_cmd("dms ipc call notifications toggleDoNotDisturb"))
exit_submap() exit_submap()
end) end, { description = "Toggle Do Not Disturb" })
hl.bind("h", function() hl.bind("h", function()
hl.dispatch(hl.dsp.exec_cmd("dms ipc call notifications close")) hl.dispatch(hl.dsp.exec_cmd("dms ipc call notifications close"))
exit_submap() exit_submap()
end) end, { description = "Close notification panel" })
hl.bind("s", function() hl.bind("s", function()
hl.dispatch(hl.dsp.exec_cmd("dms ipc call notifications open")) hl.dispatch(hl.dsp.exec_cmd("dms ipc call notifications open"))
exit_submap() exit_submap()
end) end, { description = "Open notification panel" })
hl.bind("t", function() hl.bind("t", function()
hl.dispatch(hl.dsp.exec_cmd("dms ipc call notifications toggle")) hl.dispatch(hl.dsp.exec_cmd("dms ipc call notifications toggle"))
exit_submap() exit_submap()
end) end, { description = "Toggle notification panel" })
hl.bind("Escape", function() hl.bind("Escape", function()
exit_submap() exit_submap()
+6 -6
View File
@@ -6,32 +6,32 @@ hl.define_submap("screenshot", function()
hl.bind("y", function() hl.bind("y", function()
hl.dispatch(hl.dsp.exec_cmd("dms screenshot --no-file")) hl.dispatch(hl.dsp.exec_cmd("dms screenshot --no-file"))
exit_submap() exit_submap()
end) end, { description = "Take sceenshot of are and Yank" })
hl.bind("c", function() hl.bind("c", function()
hl.dispatch(hl.dsp.exec_cmd("dms screenshot")) hl.dispatch(hl.dsp.exec_cmd("dms screenshot"))
exit_submap() exit_submap()
end) end, { description = "Take screenshot of area, yank and save" })
hl.bind("s", function() hl.bind("s", function()
hl.dispatch(hl.dsp.exec_cmd("dms screenshot --no-clipboard")) hl.dispatch(hl.dsp.exec_cmd("dms screenshot --no-clipboard"))
exit_submap() exit_submap()
end) end, { description = "Take screenshot of area and Save" })
hl.bind("SHIFT + y", function() hl.bind("SHIFT + y", function()
hl.dispatch(hl.dsp.exec_cmd("dms screenshot full --no-file")) hl.dispatch(hl.dsp.exec_cmd("dms screenshot full --no-file"))
exit_submap() exit_submap()
end) end, { description = "Take screenshot and Yank" })
hl.bind("SHIFT + c", function() hl.bind("SHIFT + c", function()
hl.dispatch(hl.dsp.exec_cmd("dms screenshot full")) hl.dispatch(hl.dsp.exec_cmd("dms screenshot full"))
exit_submap() exit_submap()
end) end, { description = "Take sceenshot, yank and save" })
hl.bind("SHIFT + s", function() hl.bind("SHIFT + s", function()
hl.dispatch(hl.dsp.exec_cmd("dms screenshot full --no-clipboard")) hl.dispatch(hl.dsp.exec_cmd("dms screenshot full --no-clipboard"))
exit_submap() exit_submap()
end) end, { description = "Take screenshot and Save" })
hl.bind("Escape", function() hl.bind("Escape", function()
exit_submap() exit_submap()
+10 -10
View File
@@ -10,42 +10,42 @@ hl.define_submap("window", function()
hl.bind("x", function() hl.bind("x", function()
hl.dispatch(hl.dsp.window.close()) hl.dispatch(hl.dsp.window.close())
exit_submap() exit_submap()
end) end, { description = "Close active window" })
hl.bind("q", function() hl.bind("q", function()
hl.dispatch(hl.dsp.window.close()) hl.dispatch(hl.dsp.window.close())
exit_submap() exit_submap()
end) end, { description = "Close active window" })
-- Fullscreen -- Fullscreen
hl.bind("f", function() hl.bind("f", function()
hl.dispatch(hl.dsp.window.fullscreen({ mode = "fullscreen" })) hl.dispatch(hl.dsp.window.fullscreen({ mode = "fullscreen" }))
exit_submap() exit_submap()
end) end, { description = "Toggle fullscreen" })
-- Floating -- Floating
hl.bind("v", function() hl.bind("v", function()
hl.dispatch(hl.dsp.window.float()) hl.dispatch(hl.dsp.window.float())
exit_submap() exit_submap()
end) end, { description = "Toggle floating" })
-- Center -- Center
hl.bind("c", function() hl.bind("c", function()
hl.dispatch(hl.dsp.window.center()) hl.dispatch(hl.dsp.window.center())
exit_submap() exit_submap()
end) end, { description = "Centre window (when floating)" })
-- Kill -- Kill
hl.bind("SHIFT + K", function() hl.bind("SHIFT + K", function()
hl.dispatch(hl.dsp.exec_cmd("notify-send 'Insta-Kill activated' --app-name='Hyprtclt'")) hl.dispatch(hl.dsp.exec_cmd("notify-send 'Insta-Kill activated' --app-name='Hyprtclt'"))
hl.dispatch(hl.dsp.exec_cmd("hyprctl kill")) hl.dispatch(hl.dsp.exec_cmd("hyprctl kill"))
exit_submap() exit_submap()
end) end, { description = "Activate insta-kill" })
-- Resize -- Resize
hl.bind("l", hl.dsp.window.resize({ x = 10, y = 0 })) hl.bind("l", hl.dsp.window.resize({ x = 10, y = 0 }), { description = "Increase size horizontally" })
hl.bind("h", hl.dsp.window.resize({ x = -10, y = 0 })) hl.bind("h", hl.dsp.window.resize({ x = -10, y = 0 }), { description = "Decrease size horizontally" })
hl.bind("j", hl.dsp.window.resize({ x = 0, y = 10 })) hl.bind("j", hl.dsp.window.resize({ x = 0, y = 10 }), { description = "Increase size vertically" })
hl.bind("k", hl.dsp.window.resize({ x = 0, y = -10 })) hl.bind("k", hl.dsp.window.resize({ x = 0, y = -10 }), { description = "Decrease size vertically" })
hl.bind("Escape", function() hl.bind("Escape", function()
exit_submap() exit_submap()
+49 -19
View File
@@ -2,35 +2,65 @@ local function exit_submap()
hl.dispatch(hl.dsp.submap("reset")) hl.dispatch(hl.dsp.submap("reset"))
end end
for i = 1, 10, 1 do local function add_workspace_keymap(bind_goto, bind_move, num)
hl.bind("SUPER + " .. tostring(i % 10), hl.dsp.focus({ workspace = tostring(i) })) hl.bind(
hl.bind("SUPER + SHIFT + " .. tostring(i % 10), hl.dsp.window.move({ workspace = tostring(i), follow = 1 })) bind_goto,
hl.dsp.focus({ workspace = tostring(num) }),
{ description = "Go to workspace " .. tostring(num) }
)
hl.bind(
bind_move,
hl.dsp.window.move({ workspace = tostring(num), follow = 1 }),
{ description = "Move window to workspace " .. tostring(num) }
)
end end
hl.bind("SUPER + h", hl.dsp.focus({ direction = "l" })) for i = 1, 10, 1 do
hl.bind("SUPER + l", hl.dsp.focus({ direction = "r" })) add_workspace_keymap("SUPER + " .. tostring(i % 10), "SUPER + SHIFT + " .. tostring(i % 10), i)
hl.bind("SUPER + j", hl.dsp.focus({ direction = "d" })) end
hl.bind("SUPER + k", hl.dsp.focus({ direction = "u" })) -- Super + - for 11th workspace
add_workspace_keymap("SUPER + code:20", "SUPER + SHIFT + code:20", 11)
hl.bind("SUPER + M", hl.dsp.workspace.toggle_special("main")) hl.bind("SUPER + h", hl.dsp.focus({ direction = "l" }), { description = "Focus next window to left" })
hl.bind("SUPER + SHIFT + M", hl.dsp.window.move({ workspace = "special:main" })) hl.bind("SUPER + l", hl.dsp.focus({ direction = "r" }), { description = "Focus next window to right" })
hl.bind("SUPER + j", hl.dsp.focus({ direction = "d" }), { description = "Focus next window below" })
hl.bind("SUPER + k", hl.dsp.focus({ direction = "u" }), { description = "Focus next window above" })
hl.bind("SUPER + M", hl.dsp.workspace.toggle_special("main"), { description = "Toggle main special workspace" })
hl.bind(
"SUPER + SHIFT + M",
hl.dsp.window.move({ workspace = "special:main" }),
{ description = "Move window to main special workspace" }
)
hl.define_submap("workspace", function() hl.define_submap("workspace", function()
for i = 1, 10, 1 do for i = 1, 10, 1 do
hl.bind(tostring(i % 10), hl.dsp.focus({ workspace = tostring(i) })) add_workspace_keymap(tostring(i % 10), "SHIFT + " .. tostring(i % 10), i)
hl.bind("SHIFT + " .. tostring(i % 10), hl.dsp.window.move({ workspace = tostring(i), follow = 1 }))
end end
add_workspace_keymap("code:20", "SHIFT + code:20", 11)
hl.bind("h", hl.dsp.focus({ direction = "l" })) hl.bind("h", hl.dsp.focus({ direction = "l" }), { description = "Focus next window to left" })
hl.bind("l", hl.dsp.focus({ direction = "r" })) hl.bind("l", hl.dsp.focus({ direction = "r" }), { description = "Focus next window to right" })
hl.bind("j", hl.dsp.focus({ direction = "d" })) hl.bind("j", hl.dsp.focus({ direction = "d" }), { description = "Focus next window below" })
hl.bind("k", hl.dsp.focus({ direction = "u" })) hl.bind("k", hl.dsp.focus({ direction = "u" }), { description = "Focus next window above" })
hl.bind("SHIFT + l", hl.dsp.window.move({ workspace = "+1", follow = 1 })) hl.bind(
hl.bind("SHIFT + h", hl.dsp.window.move({ workspace = "-1", follow = 1 })) "SHIFT + l",
hl.dsp.window.move({ workspace = "+1", follow = 1 }),
{ description = "Move one workspace up" }
)
hl.bind(
"SHIFT + h",
hl.dsp.window.move({ workspace = "-1", follow = 1 }),
{ description = "Move one workspace down" }
)
hl.bind("M", hl.dsp.workspace.toggle_special("main")) hl.bind("M", hl.dsp.workspace.toggle_special("main"), { description = "Toggle main special workspace" })
hl.bind("SHIFT + M", hl.dsp.window.move({ workspace = "special:main" })) hl.bind(
"SHIFT + M",
hl.dsp.window.move({ workspace = "special:main" }),
{ description = "Move window to main special workspace" }
)
hl.bind("Escape", function() hl.bind("Escape", function()
exit_submap() exit_submap()
+1 -1
View File
@@ -13,7 +13,7 @@ hl.config({
preserve_split = true, preserve_split = true,
}, },
binds = { binds = {
workspace_back_and_forth = true, workspace_back_and_forth = false,
}, },
cursor = { cursor = {
no_warps = false, no_warps = false,
+8 -1
View File
@@ -42,7 +42,7 @@ hl.animation({
enabled = true, enabled = true,
bezier = "main-bezier", bezier = "main-bezier",
speed = 4, speed = 4,
style = "popin 80%" style = "popin 80%",
}) })
hl.animation({ hl.animation({
@@ -72,3 +72,10 @@ hl.animation({
bezier = "default", bezier = "default",
speed = 1, speed = 1,
}) })
hl.animation({
leaf = "fadeDpms",
enabled = true,
bezier = "default",
speed = 4,
})
@@ -13,7 +13,7 @@ hl.window_rule({
-- Workspace 2 -- Workspace 2
hl.window_rule({ hl.window_rule({
match = { class = "evince|okular|org\\.pwmt\\.zathura|librewolf|vesktop" }, match = { class = "evince|okular|org\\.pwmt\\.zathura" },
workspace = 2, workspace = 2,
}) })
hl.window_rule({ hl.window_rule({
@@ -27,7 +27,30 @@ hl.window_rule({
workspace = 3, workspace = 3,
}) })
-- Special
hl.window_rule({ hl.window_rule({
match = { title = "Qalculate.*|AG Controller" }, match = { title = "Qalculate.*|AG Controller" },
workspace = "special", workspace = "special:main",
})
-- Workspace 4
hl.window_rule({
match = { class = "brave-browser" },
workspace = 4,
})
hl.window_rule({
match = { title = ".*-summary.pdf|.*cheatsheet.pdf|.*cheat-sheet.pdf" },
workspace = 4,
})
-- Workspace 11
hl.window_rule({
match = { class = "librewolf" },
workspace = 11,
})
-- Workspace 10
hl.window_rule({
match = { class = "vesktop" },
workspace = 10,
}) })
@@ -20,6 +20,16 @@ return function(is_laptop, is_docked)
monitor = "DP-2", monitor = "DP-2",
default = false, default = false,
}) })
hl.workspace_rule({
workspace = "10",
monitor = "DP-2",
default = false,
})
hl.workspace_rule({
workspace = "11",
monitor = "DP-2",
default = false,
})
elseif is_docked then elseif is_docked then
hl.workspace_rule({ hl.workspace_rule({
workspace = "2", workspace = "2",
@@ -31,5 +41,15 @@ return function(is_laptop, is_docked)
monitor = "HDMI-A-1", monitor = "HDMI-A-1",
default = false, default = false,
}) })
hl.workspace_rule({
workspace = "10",
monitor = "HDMI-A-1",
default = false,
})
hl.workspace_rule({
workspace = "11",
monitor = "HDMI-A-1",
default = false,
})
end end
end end
+5
View File
@@ -63,6 +63,11 @@
"submap": "workspace", "submap": "workspace",
"icon": "monitor", "icon": "monitor",
"color": "#2800ee" "color": "#2800ee"
},
{
"submap": "groupedlaunch",
"icon": "open_in_new",
"color": "#005207"
} }
], ],
"fontSize": "none" "fontSize": "none"
+200 -8
View File
@@ -3,12 +3,15 @@
"currentThemeCategory": "dynamic", "currentThemeCategory": "dynamic",
"customThemeFile": "", "customThemeFile": "",
"registryThemeVariants": {}, "registryThemeVariants": {},
"matugenScheme": "scheme-content", "matugenScheme": "scheme-tonal-spot",
"matugenContrast": 0,
"runUserMatugenTemplates": true, "runUserMatugenTemplates": true,
"matugenTargetMonitor": "", "matugenTargetMonitor": "",
"popupTransparency": 1, "popupTransparency": 1,
"dockTransparency": 1, "dockTransparency": 1,
"widgetBackgroundColor": "sch", "widgetBackgroundColor": "sch",
"widgetBackgroundCustomColor": "#6750A4",
"widgetBackgroundCustomStrength": 0.5,
"widgetColorMode": "colorful", "widgetColorMode": "colorful",
"controlCenterTileColorMode": "primary", "controlCenterTileColorMode": "primary",
"buttonColorMode": "primary", "buttonColorMode": "primary",
@@ -17,12 +20,19 @@
"niriLayoutRadiusOverride": -1, "niriLayoutRadiusOverride": -1,
"niriLayoutBorderSize": -1, "niriLayoutBorderSize": -1,
"hyprlandLayoutGapsOverride": -1, "hyprlandLayoutGapsOverride": -1,
"hyprlandLayoutGapsOutOverride": -1,
"hyprlandLayoutRadiusOverride": -1, "hyprlandLayoutRadiusOverride": -1,
"hyprlandLayoutBorderSize": -1, "hyprlandLayoutBorderSize": -1,
"hyprlandResizeOnBorder": false,
"mangoLayoutGapsOverride": -1, "mangoLayoutGapsOverride": -1,
"mangoLayoutGapsOutOverride": -1,
"mangoLayoutRadiusOverride": -1, "mangoLayoutRadiusOverride": -1,
"mangoLayoutBorderSize": -1, "mangoLayoutBorderSize": -1,
"use24HourClock": true, "mangoTrackpadNaturalScrolling": true,
"firstDayOfWeek": -1,
"showWeekNumber": false,
"calendarBackend": "auto",
"clockFormat": "auto",
"showSeconds": true, "showSeconds": true,
"padHours12Hour": false, "padHours12Hour": false,
"useFahrenheit": false, "useFahrenheit": false,
@@ -36,15 +46,29 @@
"modalAnimationSpeed": 1, "modalAnimationSpeed": 1,
"modalCustomAnimationDuration": 150, "modalCustomAnimationDuration": 150,
"enableRippleEffects": true, "enableRippleEffects": true,
"animationVariant": 0,
"motionEffect": 0,
"m3ElevationEnabled": true,
"m3ElevationIntensity": 12,
"m3ElevationOpacity": 30,
"m3ElevationColorMode": "default",
"m3ElevationLightDirection": "top",
"m3ElevationCustomColor": "#000000",
"modalElevationEnabled": true,
"popoutElevationEnabled": true,
"barElevationEnabled": false,
"blurEnabled": false, "blurEnabled": false,
"blurForegroundLayers": true, "blurForegroundLayers": true,
"blurLayerOutlineOpacity": 0.12, "blurLayerOutlineOpacity": 0.12,
"blurBorderEnabled": true,
"blurBorderColor": "outline", "blurBorderColor": "outline",
"blurBorderCustomColor": "#ffffff", "blurBorderCustomColor": "#ffffff",
"blurBorderOpacity": 0.35, "blurBorderOpacity": 0.35,
"wallpaperFillMode": "Fill", "wallpaperFillMode": "Fill",
"blurredWallpaperLayer": false, "blurredWallpaperLayer": false,
"blurWallpaperOnOverview": false, "blurWallpaperOnOverview": false,
"wallpaperBackgroundColorMode": "black",
"wallpaperBackgroundCustomColor": "#000000",
"showLauncherButton": true, "showLauncherButton": true,
"showWorkspaceSwitcher": true, "showWorkspaceSwitcher": true,
"showFocusedWindow": true, "showFocusedWindow": true,
@@ -64,6 +88,12 @@
"showClock": true, "showClock": true,
"showNotificationButton": true, "showNotificationButton": true,
"showBattery": true, "showBattery": true,
"showBatteryPercent": true,
"showBatteryPercentOnlyOnBattery": false,
"showBatteryTime": false,
"showBatteryTimeOnlyOnBattery": false,
"batteryPillStyle": false,
"batteryPillPercentSign": false,
"showControlCenterButton": true, "showControlCenterButton": true,
"showCapsLockIndicator": true, "showCapsLockIndicator": true,
"controlCenterShowNetworkIcon": true, "controlCenterShowNetworkIcon": true,
@@ -78,6 +108,8 @@
"controlCenterShowBatteryIcon": false, "controlCenterShowBatteryIcon": false,
"controlCenterShowPrinterIcon": false, "controlCenterShowPrinterIcon": false,
"controlCenterShowScreenSharingIcon": true, "controlCenterShowScreenSharingIcon": true,
"controlCenterShowIdleInhibitorIcon": false,
"controlCenterShowDoNotDisturbIcon": false,
"showPrivacyButton": true, "showPrivacyButton": true,
"privacyShowMicIcon": false, "privacyShowMicIcon": false,
"privacyShowCameraIcon": false, "privacyShowCameraIcon": false,
@@ -140,29 +172,58 @@
"maxWorkspaceIcons": 2, "maxWorkspaceIcons": 2,
"workspaceAppIconSizeOffset": 0, "workspaceAppIconSizeOffset": 0,
"groupWorkspaceApps": true, "groupWorkspaceApps": true,
"groupActiveWorkspaceApps": false,
"workspaceFollowFocus": true, "workspaceFollowFocus": true,
"showOccupiedWorkspacesOnly": false, "showOccupiedWorkspacesOnly": false,
"reverseScrolling": false, "reverseScrolling": false,
"dwlShowAllTags": false, "dwlShowAllTags": false,
"workspaceActiveAppHighlightEnabled": false,
"workspaceColorMode": "default", "workspaceColorMode": "default",
"workspaceFocusedCustomColor": "#6750A4",
"workspaceOccupiedColorMode": "none", "workspaceOccupiedColorMode": "none",
"workspaceOccupiedCustomColor": "#625B71",
"workspaceUnfocusedColorMode": "default", "workspaceUnfocusedColorMode": "default",
"workspaceUnfocusedCustomColor": "#49454E",
"workspaceUrgentColorMode": "default", "workspaceUrgentColorMode": "default",
"workspaceUrgentCustomColor": "#B3261E",
"workspaceFocusedBorderEnabled": false, "workspaceFocusedBorderEnabled": false,
"workspaceFocusedBorderColor": "primary", "workspaceFocusedBorderColor": "primary",
"workspaceFocusedBorderCustomColor": "#6750A4",
"workspaceFocusedBorderThickness": 2, "workspaceFocusedBorderThickness": 2,
"workspaceUnfocusedMonitorSeparateAppearance": false,
"workspaceUnfocusedMonitorColorMode": "default",
"workspaceUnfocusedMonitorFocusedCustomColor": "#6750A4",
"workspaceUnfocusedMonitorOccupiedColorMode": "none",
"workspaceUnfocusedMonitorOccupiedCustomColor": "#625B71",
"workspaceUnfocusedMonitorUnfocusedColorMode": "default",
"workspaceUnfocusedMonitorUnfocusedCustomColor": "#49454E",
"workspaceUnfocusedMonitorUrgentColorMode": "default",
"workspaceUnfocusedMonitorUrgentCustomColor": "#B3261E",
"workspaceUnfocusedMonitorBorderEnabled": false,
"workspaceUnfocusedMonitorBorderColor": "primary",
"workspaceUnfocusedMonitorBorderCustomColor": "#6750A4",
"workspaceUnfocusedMonitorBorderThickness": 2,
"workspaceNameIcons": {}, "workspaceNameIcons": {},
"waveProgressEnabled": true, "waveProgressEnabled": true,
"scrollTitleEnabled": true, "scrollTitleEnabled": true,
"mediaAdaptiveWidthEnabled": true,
"audioVisualizerEnabled": true, "audioVisualizerEnabled": true,
"mediaUseAlbumArtAccent": false,
"audioScrollMode": "volume", "audioScrollMode": "volume",
"audioWheelScrollAmount": 5, "audioWheelScrollAmount": 5,
"audioDeviceScrollVolumeEnabled": false,
"mediaExcludePlayers": [],
"clockCompactMode": false, "clockCompactMode": false,
"focusedWindowCompactMode": false, "focusedWindowCompactMode": false,
"focusedWindowSize": 1,
"focusedWindowShowIcon": true,
"runningAppsCompactMode": true, "runningAppsCompactMode": true,
"barMaxVisibleApps": 0, "barMaxVisibleApps": 0,
"barMaxVisibleRunningApps": 0, "barMaxVisibleRunningApps": 0,
"barShowOverflowBadge": true, "barShowOverflowBadge": true,
"trayAutoOverflow": true,
"trayPopupSingleLine": true,
"trayMaxVisibleItems": 0,
"appsDockHideIndicators": false, "appsDockHideIndicators": false,
"appsDockColorizeActive": false, "appsDockColorizeActive": false,
"appsDockActiveColorMode": "primary", "appsDockActiveColorMode": "primary",
@@ -170,6 +231,7 @@
"appsDockEnlargePercentage": 125, "appsDockEnlargePercentage": 125,
"appsDockIconSizePercentage": 100, "appsDockIconSizePercentage": 100,
"keyboardLayoutNameCompactMode": false, "keyboardLayoutNameCompactMode": false,
"keyboardLayoutNameShowIcon": false,
"runningAppsCurrentWorkspace": true, "runningAppsCurrentWorkspace": true,
"runningAppsGroupByApp": false, "runningAppsGroupByApp": false,
"runningAppsCurrentMonitor": false, "runningAppsCurrentMonitor": false,
@@ -179,9 +241,16 @@
"lockDateFormat": "", "lockDateFormat": "",
"greeterRememberLastSession": true, "greeterRememberLastSession": true,
"greeterRememberLastUser": true, "greeterRememberLastUser": true,
"greeterAutoLogin": false,
"greeterEnableFprint": false, "greeterEnableFprint": false,
"greeterEnableU2f": false, "greeterEnableU2f": false,
"greeterWallpaperPath": "", "greeterWallpaperPath": "",
"greeterLockDateFormat": "",
"greeterFontFamily": "",
"greeterWallpaperFillMode": "",
"greeterPamExternallyManaged": false,
"greeterSyncPending": false,
"greeterSyncBaseline": {},
"mediaSize": 1, "mediaSize": 1,
"appLauncherViewMode": "list", "appLauncherViewMode": "list",
"spotlightModalViewMode": "list", "spotlightModalViewMode": "list",
@@ -192,19 +261,56 @@
"sortAppsAlphabetically": false, "sortAppsAlphabetically": false,
"appLauncherGridColumns": 4, "appLauncherGridColumns": 4,
"spotlightCloseNiriOverview": true, "spotlightCloseNiriOverview": true,
"spotlightSectionViewModes": {}, "rememberLastQuery": false,
"rememberLastMode": true,
"spotlightSectionViewModes": {
"apps": "list"
},
"appDrawerSectionViewModes": {}, "appDrawerSectionViewModes": {},
"niriOverviewOverlayEnabled": true, "niriOverviewOverlayEnabled": true,
"niriOverviewLauncherStyle": "full",
"dankLauncherV2Size": "compact", "dankLauncherV2Size": "compact",
"dankLauncherV2ShowSourceBadges": true,
"dankLauncherV2BorderEnabled": false, "dankLauncherV2BorderEnabled": false,
"dankLauncherV2BorderThickness": 2, "dankLauncherV2BorderThickness": 2,
"dankLauncherV2BorderColor": "primary", "dankLauncherV2BorderColor": "primary",
"dankLauncherV2ShowFooter": true, "dankLauncherV2ShowFooter": true,
"dankLauncherV2UnloadOnClose": false, "dankLauncherV2UnloadOnClose": false,
"dankLauncherV2IncludeFilesInAll": false,
"dankLauncherV2IncludeFoldersInAll": false,
"launcherUseOverlayLayer": false,
"launcherStyle": "full",
"spotlightBarShowModeChips": false,
"keybindsFloatingWindow": false,
"useAutoLocation": false, "useAutoLocation": false,
"weatherEnabled": true, "weatherEnabled": true,
"dashTabs": [
{
"id": "overview",
"enabled": true
},
{
"id": "media",
"enabled": true
},
{
"id": "wallpaper",
"enabled": true
},
{
"id": "weather",
"enabled": true
},
{
"id": "settings",
"enabled": true
}
],
"networkPreference": "wifi", "networkPreference": "wifi",
"iconTheme": "Papirus-Dark", "iconThemeDark": "Papirus-Dark",
"iconThemeLight": "System Default",
"iconThemePerMode": false,
"lastAppliedIconTheme": "",
"cursorSettings": { "cursorSettings": {
"theme": "oreo_spark_blue_cursors", "theme": "oreo_spark_blue_cursors",
"size": 24, "size": 24,
@@ -232,28 +338,50 @@
"monoFontFamily": "Source Code Pro", "monoFontFamily": "Source Code Pro",
"fontWeight": 400, "fontWeight": 400,
"fontScale": 1, "fontScale": 1,
"textRenderType": 0,
"textRenderQuality": 0,
"notepadUseMonospace": true, "notepadUseMonospace": true,
"notepadFontFamily": "", "notepadFontFamily": "",
"notepadFontSize": 14, "notepadFontSize": 14,
"notificationSummaryFontSize": 0,
"notificationBodyFontSize": 0,
"notepadShowLineNumbers": false, "notepadShowLineNumbers": false,
"notepadAutoSave": false,
"notepadSlideoutSide": "right",
"notepadDefaultMode": "slideout",
"notepadTransparencyOverride": -1, "notepadTransparencyOverride": -1,
"notepadLastCustomTransparency": 0.7, "notepadLastCustomTransparency": 0.7,
"notepadUseCompositorGap": false,
"notepadEdgeGap": 0,
"soundsEnabled": true, "soundsEnabled": true,
"useSystemSoundTheme": false, "useSystemSoundTheme": false,
"soundNewNotification": false, "soundLogin": false,
"soundNewNotification": true,
"soundVolumeChanged": false, "soundVolumeChanged": false,
"soundPluggedIn": false, "soundPluggedIn": false,
"muteSoundsWhenMediaPlaying": true,
"acMonitorTimeout": 0, "acMonitorTimeout": 0,
"acLockTimeout": 0, "acLockTimeout": 0,
"acSuspendTimeout": 0, "acSuspendTimeout": 0,
"acSuspendBehavior": 0, "acSuspendBehavior": 0,
"acProfileName": "", "acProfileName": "",
"acPostLockMonitorTimeout": 0,
"batteryMonitorTimeout": 0, "batteryMonitorTimeout": 0,
"batteryLockTimeout": 0, "batteryLockTimeout": 0,
"batterySuspendTimeout": 0, "batterySuspendTimeout": 0,
"batterySuspendBehavior": 0, "batterySuspendBehavior": 0,
"batteryProfileName": "", "batteryProfileName": "",
"batteryPostLockMonitorTimeout": 0,
"batteryChargeLimit": 100, "batteryChargeLimit": 100,
"batteryNotifyChargeLimit": false,
"batteryCriticalThreshold": 10,
"batteryNotifyCritical": true,
"batteryLowThreshold": 20,
"batteryNotifyLow": false,
"batteryChargeLimitNotificationType": 0,
"batteryLowNotificationType": 0,
"batteryCriticalNotificationType": 1,
"batteryAutoPowerSaver": false,
"lockBeforeSuspend": false, "lockBeforeSuspend": false,
"loginctlLockIntegration": true, "loginctlLockIntegration": true,
"fadeToLockEnabled": true, "fadeToLockEnabled": true,
@@ -293,6 +421,7 @@
"matugenTemplatePywalfox": false, "matugenTemplatePywalfox": false,
"matugenTemplateZenBrowser": false, "matugenTemplateZenBrowser": false,
"matugenTemplateVesktop": true, "matugenTemplateVesktop": true,
"matugenTemplateVencord": true,
"matugenTemplateEquibop": false, "matugenTemplateEquibop": false,
"matugenTemplateGhostty": false, "matugenTemplateGhostty": false,
"matugenTemplateKitty": true, "matugenTemplateKitty": true,
@@ -305,10 +434,23 @@
"matugenTemplateVscode": false, "matugenTemplateVscode": false,
"matugenTemplateEmacs": false, "matugenTemplateEmacs": false,
"matugenTemplateZed": false, "matugenTemplateZed": false,
"matugenTemplateNeovimSettings": {
"dark": {
"baseTheme": "github_dark",
"harmony": 0.5
},
"light": {
"baseTheme": "github_light",
"harmony": 0.5
}
},
"matugenTemplateNeovimSetBackground": true,
"showDock": false, "showDock": false,
"dockAutoHide": false, "dockAutoHide": false,
"dockSmartAutoHide": false, "dockSmartAutoHide": false,
"dockUseOverlayLayer": false,
"dockGroupByApp": false, "dockGroupByApp": false,
"dockRestoreSpecialWorkspaceOnClick": false,
"dockOpenOnOverview": false, "dockOpenOnOverview": false,
"dockPosition": 1, "dockPosition": 1,
"dockSpacing": 4, "dockSpacing": 4,
@@ -331,9 +473,13 @@
"dockMaxVisibleApps": 0, "dockMaxVisibleApps": 0,
"dockMaxVisibleRunningApps": 0, "dockMaxVisibleRunningApps": 0,
"dockShowOverflowBadge": true, "dockShowOverflowBadge": true,
"dockShowTrash": false,
"dockTrashFileManager": "default",
"dockTrashCustomCommand": "",
"notificationOverlayEnabled": false, "notificationOverlayEnabled": false,
"notificationPopupShadowEnabled": true, "notificationPopupShadowEnabled": true,
"notificationPopupPrivacyMode": false, "notificationPopupPrivacyMode": false,
"notificationForegroundLayers": true,
"modalDarkenBackground": true, "modalDarkenBackground": true,
"lockScreenShowPowerActions": true, "lockScreenShowPowerActions": true,
"lockScreenShowSystemIcons": true, "lockScreenShowSystemIcons": true,
@@ -348,14 +494,26 @@
"maxFprintTries": 15, "maxFprintTries": 15,
"enableU2f": false, "enableU2f": false,
"u2fMode": "or", "u2fMode": "or",
"lockScreenActiveMonitor": "all", "lockPamPath": "",
"lockPamInlineFprint": false,
"lockPamInlineU2f": false,
"lockPamExternallyManaged": false,
"lockU2fPamPath": "",
"lockScreenInactiveColor": "#000000", "lockScreenInactiveColor": "#000000",
"lockScreenNotificationMode": 0, "lockScreenNotificationMode": 0,
"lockScreenVideoEnabled": false,
"lockScreenVideoPath": "",
"lockScreenVideoCycling": false,
"lockScreenWallpaperPath": "",
"lockScreenWallpaperFillMode": "",
"lockScreenFontFamily": "",
"hideBrightnessSlider": false, "hideBrightnessSlider": false,
"notificationTimeoutLow": 5000, "notificationTimeoutLow": 5000,
"notificationTimeoutNormal": 5000, "notificationTimeoutNormal": 5000,
"notificationTimeoutCritical": 0, "notificationTimeoutCritical": 0,
"notificationCompactMode": false, "notificationCompactMode": false,
"notificationShowTimeoutBar": false,
"notificationDedupeEnabled": true,
"notificationPopupPosition": 0, "notificationPopupPosition": 0,
"notificationAnimationSpeed": 1, "notificationAnimationSpeed": 1,
"notificationCustomAnimationDuration": 400, "notificationCustomAnimationDuration": 400,
@@ -366,11 +524,12 @@
"notificationHistorySaveNormal": true, "notificationHistorySaveNormal": true,
"notificationHistorySaveCritical": true, "notificationHistorySaveCritical": true,
"notificationRules": [], "notificationRules": [],
"notificationFocusedMonitor": false,
"osdAlwaysShowValue": false, "osdAlwaysShowValue": false,
"osdPosition": 5, "osdPosition": 5,
"osdVolumeEnabled": true, "osdVolumeEnabled": true,
"osdMediaVolumeEnabled": true, "osdMediaVolumeEnabled": true,
"osdMediaPlaybackEnabled": false, "osdMediaPlaybackEnabled": true,
"osdBrightnessEnabled": true, "osdBrightnessEnabled": true,
"osdIdleInhibitorEnabled": true, "osdIdleInhibitorEnabled": true,
"osdMicMuteEnabled": true, "osdMicMuteEnabled": true,
@@ -396,9 +555,14 @@
"customPowerActionReboot": "", "customPowerActionReboot": "",
"customPowerActionPowerOff": "", "customPowerActionPowerOff": "",
"updaterHideWidget": false, "updaterHideWidget": false,
"updaterCheckOnStart": false,
"updaterUseCustomCommand": false, "updaterUseCustomCommand": false,
"updaterCustomCommand": "", "updaterCustomCommand": "",
"updaterTerminalAdditionalParams": "", "updaterTerminalAdditionalParams": "",
"updaterIntervalSeconds": 86400,
"updaterIncludeFlatpak": true,
"updaterAllowAUR": false,
"updaterIgnoredPackages": [],
"displayNameMode": "system", "displayNameMode": "system",
"screenPreferences": { "screenPreferences": {
"wallpaper": [ "wallpaper": [
@@ -417,6 +581,7 @@
"displayProfileAutoSelect": false, "displayProfileAutoSelect": false,
"displayShowDisconnected": false, "displayShowDisconnected": false,
"displaySnapToEdge": true, "displaySnapToEdge": true,
"connectedFrameBarStyleBackups": {},
"barConfigs": [ "barConfigs": [
{ {
"id": "default", "id": "default",
@@ -603,8 +768,35 @@
"enabled": false "enabled": false
} }
}, },
"clipboardClickToPaste": false,
"clipboardEnterToPaste": false, "clipboardEnterToPaste": false,
"clipboardRememberTypeFilter": false,
"clipboardTypeFilter": "all",
"clipboardVisibleEntryActions": [
"pin",
"edit",
"delete"
],
"launcherPluginVisibility": {}, "launcherPluginVisibility": {},
"launcherPluginOrder": [], "launcherPluginOrder": [],
"configVersion": 5 "frameEnabled": false,
"frameThickness": 16,
"frameRounding": 23,
"frameColor": "",
"frameOpacity": 1,
"frameScreenPreferences": [
"all"
],
"frameBarSize": 40,
"frameShowOnOverview": false,
"frameBlurEnabled": true,
"frameCloseGaps": true,
"frameLauncherEmergeSide": "bottom",
"frameLauncherArcExtender": false,
"frameLauncherEdgeHover": false,
"frameMode": "connected",
"barInsetPaddingShared": -1,
"barInsetPaddingSyncAll": false,
"frameBarInsetPadding": -1,
"configVersion": 12
} }
+74 -7
View File
@@ -5,18 +5,85 @@ mount_path=$(pwd)
if [[ -n "$2" ]]; then if [[ -n "$2" ]]; then
name=$2 name=$2
else else
name=$(pwd | rev | cut -d "/" -f 1 | rev) name=$(pwd | rev | cut -d "/" -f 1-2 | rev | sed -e 's/\//-/')
fi
if [[ $1 == "help" ]]; then
echo "
dev-containers [container|rm|help] [name]
Container can be one of:
- base
- node
- php
- python
- torch-rocm
- vue
- webserver
rm removes the container for the current directory if provided name is existing container, or unspecified.
"
exit 0
fi fi
echo " echo "
janishutz dev containers janishutz dev containers
"
if [[ $(systemctl is-active docker) != "active" ]]; then
echo "
-> Docker daemon not running, starting with systemctl <-
"
sudo systemctl start docker
fi
-> Creating container $name <- if [[ $1 == "rm" ]]; then
" echo "
-> Removing containers with $name in their name <-
"
if [[ $(read -p "Do you really want to delete ALL containers for this directory? (y/N) " response && echo $response) == 'y' ]]; then
for container in $(docker container ls -aq -f name=$name); do
docker stop $container
docker container rm $container
done
else
echo "Aborting."
exit 0
fi
elif [[ $1 == "shell" ]]; then
containers=$(docker ps -q -f name=$name)
count=$((${#containers[@]}))
if [[ ${containers[0]} == "" ]]; then
count=$(($count-1))
fi
if $1 == "rm"; then if [[ $count == 0 ]]; then
docker stop $name echo "
docker container rm $name -> No suitable running container found. Aborting.
"
elif [[ $count == 1 ]]; then
echo "
-> Connecting to running container ${containers[0]}
"
docker exec -it ${containers[0]} '/bin/bash'
else
echo "
-> Multiple possible containers found to attach to. Pick one (enter number)
"
docker ps -f name=$name
read -p "Enter number (1-$count) " sel
docker exec -it ${containers[$(($sel-1))]} '/bin/bash'
fi
else else
eval "${base_path}/$1-container $name $mount_path" name=$name-$1
if [[ $(docker container ls -aq -f name=$name) != "" ]]; then
echo "
-> Starting existing container $name <-
"
docker start -i $name
else
echo "
-> Creating container $name <-
"
eval "${base_path}$1-container $name $mount_path"
fi
fi fi
+20
View File
@@ -0,0 +1,20 @@
#!/bin/sh
if [[ -n $1 ]]; then
echo "File contains $(pdfinfo $1 | awk '/^Pages:/ {print $2}') pages"
else
total=0
count=0
for file in $(find . -name "*.pdf" -type f | sort -n | grep pdf); do
count_file=$(pdfinfo $file | awk '/^Pages:/ {print $2}')
echo "$count_file pages in $file"
total=$(($total + count_file))
count=$((count + 1))
done
echo "
-> Total page count: $total
-> Total files: $count
-> Median: $(($total / $count))
"
fi
-10
View File
@@ -1,10 +0,0 @@
#!/bin/sh
enabled=$(hyprctl getoption input:kb_options | grep "caps:swapescape")
if [[ $enabled == "" ]]; then
hyprctl keyword input:kb_options "caps:swapescape"
notify-send "Swapescape enabled"
else
hyprctl keyword input:kb_options ""
notify-send "Swapescape disabled"
fi
+1 -1
View File
@@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
cd ~/projects/nvim/ cd ~/projects/system/nvim/
git pull git pull
./nvim-install.sh ./nvim-install.sh
+2
View File
@@ -37,6 +37,8 @@ rm -rf ~/.config/ags
rm -rf ~/.config/astal rm -rf ~/.config/astal
cp -r ./config/* ~/.config cp -r ./config/* ~/.config
# Makes kitty use the DMS theme config
rm ~/.config/kitty/current-theme.conf
cp ./linters/indentconfig_import.yaml ~/.indentconfig.yaml cp ./linters/indentconfig_import.yaml ~/.indentconfig.yaml
confirmation="" confirmation=""
+3 -1
View File
@@ -1,2 +1,4 @@
complete -a "base node php python torch-rocm vue webserver" -c dev-containers -f complete -a "base jupyter node php python torch-rocm vue webserver" -c dev-containers -f
complete -a "rm" -d "Delete the container for this folder" -c dev-containers -f complete -a "rm" -d "Delete the container for this folder" -c dev-containers -f
complete -a "help" -d "Show help" -c dev-containers -f
complete -a "shell" -d "Create an extra shell for the currently running container" -c dev-containers -f
+1 -1
View File
@@ -5,13 +5,13 @@
# #
QT_QPA_PLATFORM=wayland QT_QPA_PLATFORM=wayland
QT_QPA_PLATFORMTHEME=qt6ct
GCM_CREDENTIAL_STORE=secretservice GCM_CREDENTIAL_STORE=secretservice
RADV_PERFTEST_RT=1 RADV_PERFTEST_RT=1
ANDROID_HOME=/home/janis/Android/Sdk ANDROID_HOME=/home/janis/Android/Sdk
EDITOR=nvim EDITOR=nvim
PAGER=nvimpager PAGER=nvimpager
MANPAGER=nvimpager MANPAGER=nvimpager
# QT_QPA_PLATFORMTHEME=gtk3
# GTK_THEME=Adaptive-Theme # GTK_THEME=Adaptive-Theme
# GTK_THEME=Material-Black-Blueberry # GTK_THEME=Material-Black-Blueberry
# QT_STYLE_OVERRIDE=kvantum # QT_STYLE_OVERRIDE=kvantum