Compare commits
6 Commits
aa96d67e71
...
ddf2db90e9
| Author | SHA1 | Date | |
|---|---|---|---|
| ddf2db90e9 | |||
| 8b2ec0c7d7 | |||
| 968ab1ec10 | |||
| b0177ed346 | |||
| a143b1a1f1 | |||
| b2d5ecdd0e |
@@ -1,3 +1,4 @@
|
|||||||
|
-- Get window position relative to monitor
|
||||||
local function normalise_current_window_pos()
|
local function normalise_current_window_pos()
|
||||||
local active = hl.get_active_window()
|
local active = hl.get_active_window()
|
||||||
if active then
|
if active then
|
||||||
@@ -16,6 +17,7 @@ local function normalise_current_window_pos()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Notification helper function
|
||||||
local function notif(text, timeout, icon)
|
local function notif(text, timeout, icon)
|
||||||
hl.notification.create({
|
hl.notification.create({
|
||||||
text = text or "notification",
|
text = text or "notification",
|
||||||
@@ -40,21 +42,13 @@ if Hostname == "mobile02" then
|
|||||||
end
|
end
|
||||||
|
|
||||||
local globalAppBinds = {
|
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" }) },
|
{ key = { "b", "f" }, dispatch = hl.dsp.window.fullscreen({ action = "toggle" }) },
|
||||||
{ mod = subMod, key = { "space" }, dispatch = hl.dsp.window.float() },
|
{ 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
|
-- Launcher
|
||||||
{
|
{
|
||||||
key = { "d" },
|
key = { "d" },
|
||||||
@@ -67,10 +61,6 @@ local globalAppBinds = {
|
|||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Close windows
|
|
||||||
{ key = { "BACKSPACE" }, dispatch = hl.dsp.window.close() },
|
|
||||||
|
|
||||||
---- Apps
|
|
||||||
-- Terminal
|
-- Terminal
|
||||||
{
|
{
|
||||||
key = { "RETURN" },
|
key = { "RETURN" },
|
||||||
@@ -124,6 +114,8 @@ local globalAppBinds = {
|
|||||||
|
|
||||||
---- Special Workspaces
|
---- Special Workspaces
|
||||||
{ key = { "m" }, dispatch = hl.dsp.workspace.toggle_special("music") },
|
{ 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
|
-- Youtuber mode lol
|
||||||
{
|
{
|
||||||
@@ -143,11 +135,31 @@ local globalAppBinds = {
|
|||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
key = { "x" },
|
||||||
|
dispatch = function()
|
||||||
|
if recordingMode == 1 then
|
||||||
|
hl.exec_cmd("woomer --output DP-1 --radius 2 --monitor DP-1 -S")
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
|
||||||
-- Logout menu
|
-- Logout menu
|
||||||
{ key = { "a", "e" }, dispatch = "wlogout -b 5" },
|
{ key = { "a", "e" }, dispatch = "wlogout -b 5" },
|
||||||
|
|
||||||
-- Screenshot
|
-- Screenshot
|
||||||
{ mod = subMod, key = { "SHIFT + s" }, dispatch = "grimblast copy area" },
|
{ 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
|
-- Workspace switch keys
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
local appList = {
|
local appList = {
|
||||||
"waybar",
|
|
||||||
"dunst",
|
|
||||||
"wpaperd -d",
|
"wpaperd -d",
|
||||||
"syncthing -home=/home/user01/.config/syncthing -no-browser",
|
"syncthing -home=/home/user01/.config/syncthing -no-browser",
|
||||||
"gotify-desktop",
|
"gotify-desktop",
|
||||||
'sleep 5 && curl -X POST -H "Content-Type: application/json" -d "{\\"ref\\":\\"$(git -C ~/.dotfiles rev-parse HEAD)\\", \\"status\\":\\"$(git -C ~/.dotfiles diff --quiet && echo "clean" || echo "dirty")\\"}" https://n8n.voidarc.co.uk/webhook/config-checker',
|
'sleep 5 && curl -X POST -H "Content-Type: application/json" -d "{\\"ref\\":\\"$(git -C ~/.dotfiles rev-parse HEAD)\\", \\"status\\":\\"$(git -C ~/.dotfiles diff --quiet && echo "clean" || echo "dirty")\\"}" http://192.168.1.180:5678/webhook/config-checker',
|
||||||
}
|
}
|
||||||
|
|
||||||
local localAppList
|
local localAppList
|
||||||
@@ -12,11 +10,14 @@ if Hostname == "HACKSTATION" then
|
|||||||
-- If on desktop do desktop things
|
-- If on desktop do desktop things
|
||||||
localAppList = {
|
localAppList = {
|
||||||
"wayvnc 0.0.0.0 --output=DP-1",
|
"wayvnc 0.0.0.0 --output=DP-1",
|
||||||
|
"quickshell",
|
||||||
}
|
}
|
||||||
elseif Hostname == "mobile02" then
|
elseif Hostname == "mobile02" then
|
||||||
-- If on laptop, do laptop things
|
-- If on laptop, do laptop things
|
||||||
localAppList = {
|
localAppList = {
|
||||||
"way-edges",
|
"way-edges",
|
||||||
|
"waybar",
|
||||||
|
"dunst",
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -65,6 +65,14 @@ hl.window_rule({
|
|||||||
animation = "slide top",
|
animation = "slide top",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
hl.window_rule({
|
||||||
|
name = "woomer no anim",
|
||||||
|
match = {
|
||||||
|
title = "woomer",
|
||||||
|
},
|
||||||
|
no_anim = true,
|
||||||
|
})
|
||||||
|
|
||||||
-- Define gaps for music workspace
|
-- Define gaps for music workspace
|
||||||
hl.workspace_rule({
|
hl.workspace_rule({
|
||||||
workspace = "special:music",
|
workspace = "special:music",
|
||||||
|
|||||||
Reference in New Issue
Block a user