Files
Hyprland-config/basic/windows.lua

94 lines
1.9 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"},
["col.active_border"] = "0xccaaffee",
border_size = 2,
float = false,
})
hl.window_rule({
name = "gaming",
match = {
class = "steam",
initialClass = "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,
})
-- xwayland {
-- force_zero_scaling = true
-- })
-- 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.window_rule({
name = "btop",
match = {class = "btop"},
float = false,
dim_around = true,
size = {"(monitor_w*.9)" ,"(monitor_h*.8)"},
})
hl.window_rule({
name = "popup-term",
match = {class = "popup-term"},
float = true
size = {"(monitor_w*.9)" ,"(monitor_h*.8)"},
dim_around = true
})