112 lines
3.4 KiB
Nix
112 lines
3.4 KiB
Nix
{ lib, settings }:
|
|
let
|
|
inherit (lib) optionalString;
|
|
in
|
|
{
|
|
windowrule = [
|
|
"pseudo, class:fcitx"
|
|
"float, class:file_progress"
|
|
"float, class:confirm"
|
|
"float, class:dialog"
|
|
"float, class:download"
|
|
"float, class:notification"
|
|
"float, class:error"
|
|
"float, class:splash"
|
|
"float, class:confirmreset"
|
|
"float, title:Open File"
|
|
"float, title:branchdialog"
|
|
"float, class:pavucontrol-qt"
|
|
"float, class:pavucontrol"
|
|
"float, class:file-roller"
|
|
"fullscreen, title:wlogout"
|
|
"float, title:wlogout"
|
|
"fullscreen, title:wlogout"
|
|
"idleinhibit stayfocused, class:mpv"
|
|
];
|
|
|
|
windowrulev2 = [
|
|
"float, title:^(Media viewer)$"
|
|
"float, title:^(File Operation Progress)$"
|
|
"float, class:^(it.mijorus.smile)"
|
|
"float, class:^(xdg-desktop-portal-gtk)$"
|
|
"float, title:^(Steam Settings)$"
|
|
|
|
# Picture in picture windows
|
|
"float, title:^(Picture-in-Picture)$"
|
|
"pin, title:^(Picture-in-Picture)$"
|
|
"float, class:^(vesktop)$,title:^(Discord Popout)$"
|
|
"pin, class:^(vesktop)$,title:^(Discord Popout)$"
|
|
"float, class:^(steam)$,title:^(Friends List)$"
|
|
|
|
# Media Control
|
|
"float, class: ^(org.pulseaudio.pavucontrol)$"
|
|
"pin, class: ^(org.pulseaudio.pavucontrol)$"
|
|
"animation slide top 20%, class: ^(org.pulseaudio.pavucontrol)$"
|
|
(optionalString (
|
|
settings.personal.hostname == "dn-pre7780"
|
|
) "move 1680 59, class: ^(org.pulseaudio.pavucontrol)$")
|
|
(optionalString (
|
|
settings.personal.hostname == "dn-pre7780"
|
|
) "size 868 561, class: ^(org.pulseaudio.pavucontrol)$")
|
|
|
|
# Local Send (File Sharing)
|
|
"float, class: ^(localsend_app)$"
|
|
"pin, class: ^(localsend_app)$"
|
|
"animation slide right 20%, class: ^(localsend_app)$"
|
|
(optionalString (
|
|
settings.personal.hostname == "dn-pre7780"
|
|
) "size 523 1372, class: ^(localsend_app)$")
|
|
(optionalString (
|
|
settings.personal.hostname == "dn-pre7780"
|
|
) "move 2024 56, class: ^(localsend_app)$")
|
|
|
|
# Airplay
|
|
"pseudo, class: ^(GStreamer)$"
|
|
"opacity 1.0, class: ^(GStreamer)$"
|
|
(optionalString (settings.personal.hostname == "dn-pre7780") "size 487 1055, class: ^(GStreamer)$")
|
|
|
|
# Bluetooth
|
|
"float, class: ^(blueberry.py)$"
|
|
"pin, class: ^(blueberry.py)$"
|
|
(optionalString (
|
|
settings.personal.hostname == "dn-pre7780"
|
|
) "move 1943 59, class: ^(blueberry.py)$")
|
|
(optionalString (
|
|
settings.personal.hostname == "dn-pre7780"
|
|
) "size 605 763, class: ^(blueberry.py)$")
|
|
"animation slide top 20%, class: ^(blueberry.py)$"
|
|
|
|
# Steam
|
|
"workspace: 7 silent, class: ^(steam)$"
|
|
"workspace: unset, class: ^(steam)$, floating: 1"
|
|
|
|
# steam game
|
|
"workspace: 7 silent, class: ^(steam_app_)(.*)"
|
|
|
|
# Line
|
|
"workspace: 2, initialTitle: ^(LINE)$"
|
|
"float, initialTitle: ^(LINE)$"
|
|
|
|
# VLC
|
|
"workspace: 3, initialClass: ^(vlc), floating: 0"
|
|
|
|
# vesktop
|
|
"workspace: 4 silent, initialClass: ^(vesktop), floating: 0"
|
|
];
|
|
|
|
layerrule = [
|
|
"blur, waybar"
|
|
"blur, logout_dialog"
|
|
"unset, rofi"
|
|
"blur, rofi"
|
|
"ignorezero, rofi"
|
|
"unset, swaync-control-center"
|
|
"unset, swaync-notification-window"
|
|
"blur, swaync-control-center"
|
|
"blur, swaync-notification-window"
|
|
"ignorezero, swaync-control-center"
|
|
"ignorezero, swaync-notification-window"
|
|
"ignorealpha 0.1, swaync-control-center"
|
|
"ignorealpha 0.1, swaync-notification-window"
|
|
];
|
|
}
|