added window rules consolidated variables and gt vicinae launcher
This commit is contained in:
93
basic/windows.lua
Normal file
93
basic/windows.lua
Normal file
@@ -0,0 +1,93 @@
|
||||
--#############################
|
||||
--## 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
|
||||
})
|
||||
Reference in New Issue
Block a user