feat(hypr): (almost) complete lua rewrite of configs
This commit is contained in:
@@ -1 +1,53 @@
|
||||
-- Floating windows & their positioning
|
||||
-- Floating windows
|
||||
-- Float
|
||||
hl.window_rule({
|
||||
match = {
|
||||
tag = "dialog",
|
||||
},
|
||||
float = true,
|
||||
center = true,
|
||||
})
|
||||
|
||||
-- No float
|
||||
hl.window_rule({
|
||||
match = {
|
||||
title = "launchers",
|
||||
},
|
||||
float = false,
|
||||
})
|
||||
|
||||
-- fullscreen
|
||||
hl.window_rule({
|
||||
match = {
|
||||
tag = "game",
|
||||
},
|
||||
fullscreen = true,
|
||||
})
|
||||
hl.window_rule({
|
||||
match = {
|
||||
class = "wlogout",
|
||||
},
|
||||
fullscreen = true,
|
||||
})
|
||||
|
||||
-- Termfilechooser
|
||||
hl.window_rule({
|
||||
match = {
|
||||
title = "termfilechooser",
|
||||
},
|
||||
float = true,
|
||||
center = true,
|
||||
dim_around = true,
|
||||
size = { 1400, 800 },
|
||||
})
|
||||
|
||||
-- hidden terminator
|
||||
hl.window_rule({
|
||||
match = {
|
||||
title = "^hidden-terminator$",
|
||||
},
|
||||
float = true,
|
||||
center = true,
|
||||
size = { 0, 0 },
|
||||
move = { 0, 0 }
|
||||
})
|
||||
|
||||
@@ -1 +1,21 @@
|
||||
-- Idleinhibits
|
||||
hl.window_rule({
|
||||
match = {
|
||||
tag = "game|launchers",
|
||||
},
|
||||
idle_inhibit = "focus"
|
||||
})
|
||||
|
||||
hl.window_rule({
|
||||
match = {
|
||||
title = "Bitwarden|secret|[aA]uthentication"
|
||||
},
|
||||
no_screen_share = true
|
||||
})
|
||||
|
||||
hl.window_rule({
|
||||
match = {
|
||||
class = "nm-connection-editor"
|
||||
},
|
||||
no_screen_share = true
|
||||
})
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
-- set the layer
|
||||
@@ -1,3 +0,0 @@
|
||||
hl.window_rule({
|
||||
name = ""
|
||||
})
|
||||
@@ -0,0 +1,38 @@
|
||||
-- ┌ ┐
|
||||
-- │ Use tags to group windows into groups │
|
||||
-- └ ┘
|
||||
-- Games
|
||||
hl.window_rule({
|
||||
match = {
|
||||
class = "steam_app",
|
||||
},
|
||||
tag = "+game",
|
||||
})
|
||||
hl.window_rule({
|
||||
match = {
|
||||
title = "Minecraft|Beat Saber",
|
||||
},
|
||||
tag = "+game",
|
||||
})
|
||||
|
||||
-- Launchers
|
||||
hl.window_rule({
|
||||
match = {
|
||||
class = "steam|minecraft-launcher|org\\.prismlauncher\\.PrismLauncher",
|
||||
},
|
||||
tag = "+launchers",
|
||||
})
|
||||
|
||||
-- Dialogs
|
||||
hl.window_rule({
|
||||
match = {
|
||||
class = "file_progress|confirm|dialog|download|notification|error|splash|confirmreset|lxappearance|pavucontrol|file-roller",
|
||||
},
|
||||
tag = "+dialog",
|
||||
})
|
||||
hl.window_rule({
|
||||
match = {
|
||||
class = "SteamVR Status|Open File|Media viewer|Volume Control|Picture-in-Picture|File Operation Progress|Loading|AG Controller|AG Controller|Qalculate",
|
||||
},
|
||||
tag = "+dialog",
|
||||
})
|
||||
|
||||
@@ -1,15 +1,37 @@
|
||||
-- Set the workspace for certain apps
|
||||
-- ┌ ┐
|
||||
-- │ Set the workspace for certain apps │
|
||||
-- └ ┘
|
||||
-- Workspace 1
|
||||
hl.window_rule({
|
||||
match = { class = ".*steam_app.*", title = "ALVR.*|^hidden-terminator" },
|
||||
match = { tag = "game" },
|
||||
workspace = 1,
|
||||
})
|
||||
hl.window_rule({
|
||||
match = { title = "ALVR|^hidden-terminator$" },
|
||||
workspace = 1,
|
||||
})
|
||||
|
||||
-- Workspace 2
|
||||
hl.window_rule({
|
||||
match = { class = "evince|okular|org\\.pwmt\\.zathura|librewolf", title = "BSManager|Beat Saber.*" },
|
||||
match = { class = "evince|okular|org\\.pwmt\\.zathura|librewolf" },
|
||||
workspace = 2,
|
||||
})
|
||||
hl.window_rule({
|
||||
match = { title = "BSManager" },
|
||||
workspace = 2,
|
||||
})
|
||||
|
||||
-- Workspace 3
|
||||
hl.window_rule({
|
||||
match = { class = "minecraft-launcher", title = ".*Minecraft.*|.*[Ss]team.*" },
|
||||
match = { class = "minecraft-launcher" },
|
||||
workspace = 3,
|
||||
})
|
||||
hl.window_rule({
|
||||
match = { title = "[Ss]team" },
|
||||
workspace = 3,
|
||||
})
|
||||
|
||||
hl.window_rule({
|
||||
match = { title = "Qalculate|AG Controller" },
|
||||
workspace = "special",
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user