Files
Hyprland-config/basic/windows.lua
2026-06-24 18:40:53 -05:00

88 lines
1.7 KiB
Lua

--#############################
--## WINDOWS AND WORKSPACES ###
--#############################
-- See https://wiki.hypr.land/Configuring/Window-Rules/ for more
-- See https://wiki.hypr.land/Configuring/Workspace-Rules/ for workspace rules
hl.window_rule({
name = "scrcpy",
match = {class = "scrcpy"},
border_size = 5,
float = true,
dim_around = true,
move = {5, 40},
})
hl.window_rule({
name = "compiler-window",
match = { tag = "compiler"},
border_color = "0xccaaffee",
border_size = 2,
float = false,
})
hl.window_rule({
name = "gaming",
match = {
class = "steam",
initial_class = "steam"
},
workspace = "special:gaming"
})
hl.window_rule( {
-- Ignore maximize requests from all apps. You'll probably like this.
name = "suppress-maximize-events",
match = {class = ".*"},
suppress_event = "maximize",
})
hl.window_rule( {
-- Fix some dragging issues with XWayland
name = "fix-xwayland-drags",
match = {
class = "^$",
title = "^$",
xwayland = true,
float = true,
fullscreen = false,
pin = false
},
no_focus = true,
})
hl.workspace_rule({
workspace = "s[true]",
gaps_out = 10
})
-- Hyprland-run hl.window_rule(
hl.window_rule( {
name = "move-hyprland-run",
match = {class = "hyprland-run"},
move = {20,"monitor_h-120"},
float = true
})
hl.window_rule( {
name = "calc-term",
match = {class = "calc-term"},
pseudo = true,
float = true,
center = true,
opacity = 1,
-- move = {"cursor_x-10", "cursor_y-10"},
size = {"monitor_w*.4", "monitor_h*.4"},
})
hl.workspace_rule( {
workspace = "w[tv1]",
gaps_out = 1,
gaps_in = 1,
border_size = 1,
no_rounding = false,
})