Files
dotfiles/.config/hypr/config/windowrules.conf

292 lines
5.6 KiB
Plaintext

# ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
# ┃ Windowrules Configuration ┃
# ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
# Windows Rules https://wiki.hyprland.org/0.45.0/Configuring/Window-Rules/ #
# Float Necessary Windows
windowrule {
name = windowrule-1
float = on
match:title = Rofi
}
windowrule {
name = windowrule-2
float = on
match:class = ^(org.pulseaudio.pavucontrol)
}
windowrule {
name = windowrule-3
float = on
match:class = ^()$
match:title = ^(Picture in picture)$
}
windowrule {
name = windowrule-4
float = on
match:class = ^()$
match:title = ^(Save File)$
}
windowrule {
name = windowrule-5
float = on
match:class = ^()$
match:title = ^(Open File)$
}
windowrule {
name = windowrule-6
float = on
match:class = ^(LibreWolf)$
match:title = ^(Picture-in-Picture)$
}
windowrule {
name = windowrule-7
float = on
match:class = ^(blueman-manager)$
}
windowrule {
name = windowrule-8
float = on
match:class = ^(xdg-desktop-portal-gtk|xdg-desktop-portal-kde|xdg-desktop-portal-hyprland)(.*)$
}
windowrule {
name = windowrule-9
float = on
size = 260 340
match:class = ^(pomodorolm)$
}
windowrule {
name = windowrule-10
float = on
match:title = ^(Extension:.*)$
}
windowrule {
name = windowrule-11
float = on
match:class = ^(polkit-gnome-authentication-agent-1|hyprpolkitagent|org.org.kde.polkit-kde-authentication-agent-1)(.*)$
}
windowrule {
name = windowrule-12
float = on
match:class = ^(CachyOSHello)$
}
windowrule {
name = windowrule-13
float = on
match:class = ^(zenity)$
}
windowrule {
name = windowrule-14
float = on
match:class = ^()$
match:title = ^(Steam - Self Updater)$
}
windowrule {
name = windowrule-15
float = on
match:class = ^(Zotero)$
match:title = ^(Progress)$
}
# Increase the opacity
windowrule {
name = windowrule-16
opacity = 0.92
match:class = ^(thunar|nemo|dolphin)$
}
windowrule {
name = windowrule-17
opacity = 0.96
match:class = ^(discord|armcord|webcord)$
}
windowrule {
name = windowrule-18
opacity = 0.95
match:title = ^(QQ|Telegram)$
}
windowrule {
name = windowrule-19
opacity = 0.95
match:title = ^(NetEase Cloud Music Gtk4)$
}
windowrule {
name = windowrule-20
opacity = 1
match:class = ^(kitty)$
}
# General window rules
windowrule {
name = windowrule-21
float = on
size = 960 540
move = ((monitor_w*0.25)-)
match:title = ^(Picture-in-Picture)$
}
windowrule {
name = windowrule-22
float = on
match:title = ^(imv|mpv|danmufloat|termfloat|nemo|ncmpcpp|nwg-look|nwg-displays)$
}
windowrule {
name = windowrule-23
move = ((monitor_w*0.25)-)
size = 960 540
match:title = ^(imv|mpv|danmufloat|termfloat|nemo|ncmpcpp)$
}
windowrule {
name = windowrule-24
pin = on
match:title = ^(danmufloat)$
}
windowrule {
name = windowrule-25
rounding = 5
match:title = ^(danmufloat|termfloat)$
}
windowrule {
name = windowrule-26
animation = slide right
match:class = ^(kitty|Alacritty)$
}
windowrule {
name = windowrule-27
no_blur = on
match:class = ^(org.mozilla.firefox)$
}
windowrule {
name = windowrule-28
no_dim = on
match:class = ^(zen)$
}
windowrule {
name = windowrule-29
float = on
match:title = ^(Zotero Settings)$
}
# Decorations related to floating windows on workspaces 1 to 10
windowrule {
name = windowrule-30
border_size = 2
border_color = $color4
rounding = 8
match:float = 1
match:workspace = w[fv1-10]
}
# Decorations related to tiling windows on workspaces 1 to 10
windowrule {
name = windowrule-31
border_size = 3
rounding = 4
match:float = 0
match:workspace = f[1-10]
}
windowrule {
name = windowrule-32
opacity = 0.9
match:title = ^(.+nvim$)
}
# Windows Rules End #
# Workspaces Rules https://wiki.hyprland.org/0.45.0/Configuring/Workspace-Rules/ #
# workspace = 1, default:true, monitor:$priMon
# workspace = 6, default:true, monitor:$secMon
# Workspace selectors https://wiki.hyprland.org/0.45.0/Configuring/Workspace-Rules/#workspace-selectors
# workspace = r[1-5], monitor:$priMon
# workspace = r[6-10], monitor:$secMon
# workspace = special:scratchpad, on-created-empty:$applauncher
# no_gaps_when_only deprecated instead workspaces rules with selectors can do the same
# Smart gaps from 0.45.0 https://wiki.hyprland.org/0.45.0/Configuring/Workspace-Rules/#smart-gaps
#workspace = w[tv1-10], gapsout:5, gapsin:3
#workspace = f[1], gapsout:5, gapsin:3
# Workspaces Rules End #
# Layers Rules #
layerrule {
name = layerrule-1
animation = slide top
match:namespace = logout_dialog
}
# layerrule = animation popin 50%, waybar
layerrule {
name = layerrule-2
animation = slide down
match:namespace = waybar
}
layerrule {
name = layerrule-3
animation = fade 50%
match:namespace = wallpaper
}
# vicinae
layerrule {
name = vicinae-blur
blur = on
animation = popin
dim_around = on
ignore_alpha = 1
match:namespace = vicinae
}
# Layers Rules End #
# Zotero Libreoffice
windowrule {
name = windowrule-33
float = on
center = on
no_anim = on
match:class = ^(Zotero)$
match:title = ^(Citation Dialog)$
}
# gnome calendar
windowrule {
name = windowrule-cal
float = on
center = on
match:class = ^(org.gnome.Calendar)$
match:title = ^(Calendar)$
animation = popin
opacity = 0.8
}
windowrule {
name = waypaper-fix
match:class = ^(waypaper)$
float = on
center = on
}