Update some more window rules

This commit is contained in:
Evie Litherland-Smith 2024-06-09 06:51:10 +01:00
parent 63d3ca5ea9
commit fa3c5c2643

View file

@ -48,26 +48,31 @@
colors = with config.scheme.withHashtag; let colors = with config.scheme.withHashtag; let
text = toString base05; text = toString base05;
indicator = toString cyan; indicator = toString cyan;
in rec {
background = toString base00; background = toString base00;
focused = rec { in {
inherit background text indicator; inherit background;
focused = let
border = toString config.scheme.withHashtag.${accentColour}; border = toString config.scheme.withHashtag.${accentColour};
in {
inherit background text indicator border;
childBorder = border; childBorder = border;
}; };
focusedInactive = rec { focusedInactive = let
inherit background text indicator;
border = toString base04; border = toString base04;
in {
inherit background text indicator border;
childBorder = border; childBorder = border;
}; };
unfocused = rec { unfocused = let
inherit background text indicator;
border = toString base03; border = toString base03;
in {
inherit background text indicator border;
childBorder = border; childBorder = border;
}; };
urgent = rec { urgent = let
inherit background text indicator;
border = toString red; border = toString red;
in {
inherit background text indicator border;
childBorder = border; childBorder = border;
}; };
}; };
@ -79,26 +84,38 @@
window = { window = {
border = 1; border = 1;
titlebar = false; titlebar = false;
commands = commands = [
(map (criteria: {
inherit criteria;
command = "floating enable";
}) [
{app_id = "org.kde.polkit-kde-authentication-agent-1";}
{app_id = "Pinentry";}
{app_id = "pavucontrol";}
{app_id = "\.blueman-manager-wrapped";}
{app_id = "nm-connection-editor";}
{app_id = "thunar";}
{class = "[Mm]atplotlib";}
{class = ".*\.py";}
{class = "Idl";}
])
++ [
{ {
criteria.class = "steam_app*"; criteria.window_role = "(?:pop-up|bubble|dialog)";
command = "floating enable";
}
{
criteria.app_id = "(?:org\.kde\.polkit-kde-authentication-agent-1|Pinentry|pavucontrol|\.blueman-manager-wrapped|nm-connection-editor)";
command = "floating enable";
}
{
criteria.class = "(?:[Mm]atplotlib|.*\.py|Idl)";
command = "floating enable";
}
{
# Catch-all for file dialog windows
criteria.title = "(?:Open|Save) (?:File|Folder|As)";
command = "floating enable, resize set width 1030 height 710";
}
{
# Inhibit idle when watching vidoes
criteria.app_id = "(?:firefox|mpv)";
command = "inhibit_idle fullscreen";
}
{
# Controllers don't reset idle timer
criteria.class = "(?:steam_app|Minecraft).*";
command = "inhibit_idle focus"; command = "inhibit_idle focus";
} }
{
criteria.criteria = "Minecraft.*";
command = "fullscreen enable";
}
]; ];
}; };
floating.border = 1; floating.border = 1;