Files
dotflies/.config/hypr/conf/windows.lua
T

86 lines
1.6 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
-- Example windowrules that are useful
-- Apps
-- Generated by hyprlang2lua. Review TODOs before reloading Hyprland.
hl.window_rule({
name = "intellij",
match = {
class = "jetbrains-idea",
},
opacity = 0.8,
})
hl.window_rule({
name = "thunar",
match = {
class = "thunar",
},
opacity = 0.8,
})
hl.window_rule({
name = "steam",
match = {
class = "steam",
},
opacity = 0.8,
})
hl.window_rule({
name = "discord",
match = {
class = "discord",
},
monitor = RIGHT_MONITOR,
})
hl.window_rule({
name = "mpv",
match = {
class = "mpv",
},
fullscreen = true
})
hl.window_rule({
name = "suppress-maximize-events",
match = {
class = ".*",
},
-- Ignore maximize requests from all apps. You'll probably like this.
suppress_event = "maximize",
})
hl.window_rule({
name = "fix-xwayland-drags",
match = {
class = "^$",
title = "^$",
xwayland = true,
float = true,
fullscreen = false,
pin = false,
},
-- Fix some dragging issues with XWayland
-- TODO: manual review — unmapped window rule action: "no_focus true"
})
-- Hyprland-run windowrule
hl.window_rule({
name = "move-hyprland-run",
match = {
class = "hyprland-run",
},
move = "20 monitor_h-120",
float = true,
})