Update some more window rules
This commit is contained in:
parent
63d3ca5ea9
commit
fa3c5c2643
|
@ -48,26 +48,31 @@
|
|||
colors = with config.scheme.withHashtag; let
|
||||
text = toString base05;
|
||||
indicator = toString cyan;
|
||||
in rec {
|
||||
background = toString base00;
|
||||
focused = rec {
|
||||
inherit background text indicator;
|
||||
in {
|
||||
inherit background;
|
||||
focused = let
|
||||
border = toString config.scheme.withHashtag.${accentColour};
|
||||
in {
|
||||
inherit background text indicator border;
|
||||
childBorder = border;
|
||||
};
|
||||
focusedInactive = rec {
|
||||
inherit background text indicator;
|
||||
focusedInactive = let
|
||||
border = toString base04;
|
||||
in {
|
||||
inherit background text indicator border;
|
||||
childBorder = border;
|
||||
};
|
||||
unfocused = rec {
|
||||
inherit background text indicator;
|
||||
unfocused = let
|
||||
border = toString base03;
|
||||
in {
|
||||
inherit background text indicator border;
|
||||
childBorder = border;
|
||||
};
|
||||
urgent = rec {
|
||||
inherit background text indicator;
|
||||
urgent = let
|
||||
border = toString red;
|
||||
in {
|
||||
inherit background text indicator border;
|
||||
childBorder = border;
|
||||
};
|
||||
};
|
||||
|
@ -79,26 +84,38 @@
|
|||
window = {
|
||||
border = 1;
|
||||
titlebar = false;
|
||||
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";}
|
||||
])
|
||||
++ [
|
||||
commands = [
|
||||
{
|
||||
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";
|
||||
}
|
||||
{
|
||||
criteria.criteria = "Minecraft.*";
|
||||
command = "fullscreen enable";
|
||||
}
|
||||
];
|
||||
};
|
||||
floating.border = 1;
|
||||
|
|
Reference in a new issue