Compare commits

..

2 Commits

Author SHA1 Message Date
a143b1a1f1 enabled quickshell on desktop 2026-06-26 21:10:49 +01:00
b2d5ecdd0e reorder 2026-06-25 14:39:46 +01:00
2 changed files with 21 additions and 17 deletions

View File

@@ -1,3 +1,4 @@
-- Get window position relative to monitor
local function normalise_current_window_pos()
local active = hl.get_active_window()
if active then
@@ -16,6 +17,7 @@ local function normalise_current_window_pos()
end
end
-- Notification helper function
local function notif(text, timeout, icon)
hl.notification.create({
text = text or "notification",
@@ -40,21 +42,13 @@ if Hostname == "mobile02" then
end
local globalAppBinds = {
{ mod = subMod, key = { "mouse:272" }, dispatch = hl.dsp.window.drag(), opts = { mouse = true } },
{ mod = subMod, key = { "mouse:272" }, dispatch = hl.dsp.window.float(), opts = { mouse = true, click = true } },
{
mod = subMod,
key = { "mouse:272" },
dispatch = hl.dsp.layout("promote"),
opts = { mouse = true, release = true },
},
{ mod = subMod, key = { "SHIFT + mouse:272" }, dispatch = hl.dsp.window.resize(), opts = { mouse = true } },
---- Window functions
{ key = { "BACKSPACE" }, dispatch = hl.dsp.window.close() },
{ key = { "b", "f" }, dispatch = hl.dsp.window.fullscreen({ action = "toggle" }) },
{ mod = subMod, key = { "space" }, dispatch = hl.dsp.window.float() },
{ key = { "minus" }, dispatch = hl.dsp.workspace.toggle_special("scratch") },
{ key = { "SHIFT + minus" }, dispatch = hl.dsp.window.move({ workspace = "special:scratch", follow = false }) },
---- Apps
-- Launcher
{
key = { "d" },
@@ -67,10 +61,6 @@ local globalAppBinds = {
end,
},
-- Close windows
{ key = { "BACKSPACE" }, dispatch = hl.dsp.window.close() },
---- Apps
-- Terminal
{
key = { "RETURN" },
@@ -124,6 +114,8 @@ local globalAppBinds = {
---- Special Workspaces
{ key = { "m" }, dispatch = hl.dsp.workspace.toggle_special("music") },
{ key = { "minus" }, dispatch = hl.dsp.workspace.toggle_special("scratch") },
{ key = { "SHIFT + minus" }, dispatch = hl.dsp.window.move({ workspace = "special:scratch", follow = false }) },
-- Youtuber mode lol
{
@@ -148,6 +140,17 @@ local globalAppBinds = {
-- Screenshot
{ mod = subMod, key = { "SHIFT + s" }, dispatch = "grimblast copy area" },
-- Mouse for moving windows
{ mod = subMod, key = { "mouse:272" }, dispatch = hl.dsp.window.drag(), opts = { mouse = true } },
{ mod = subMod, key = { "mouse:272" }, dispatch = hl.dsp.window.float(), opts = { mouse = true, click = true } },
{
mod = subMod,
key = { "mouse:272" },
dispatch = hl.dsp.layout("promote"),
opts = { mouse = true, release = true },
},
{ mod = subMod, key = { "SHIFT + mouse:272" }, dispatch = hl.dsp.window.resize(), opts = { mouse = true } },
}
-- Workspace switch keys

View File

@@ -1,6 +1,4 @@
local appList = {
"waybar",
"dunst",
"wpaperd -d",
"syncthing -home=/home/user01/.config/syncthing -no-browser",
"gotify-desktop",
@@ -12,11 +10,14 @@ if Hostname == "HACKSTATION" then
-- If on desktop do desktop things
localAppList = {
"wayvnc 0.0.0.0 --output=DP-1",
"quickshell",
}
elseif Hostname == "mobile02" then
-- If on laptop, do laptop things
localAppList = {
"way-edges",
"waybar",
"dunst",
}
end