Update some more window rules
This commit is contained in:
parent
63d3ca5ea9
commit
fa3c5c2643
|
@ -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,27 +84,39 @@
|
||||||
window = {
|
window = {
|
||||||
border = 1;
|
border = 1;
|
||||||
titlebar = false;
|
titlebar = false;
|
||||||
commands =
|
commands = [
|
||||||
(map (criteria: {
|
{
|
||||||
inherit criteria;
|
criteria.window_role = "(?:pop-up|bubble|dialog)";
|
||||||
command = "floating enable";
|
command = "floating enable";
|
||||||
}) [
|
}
|
||||||
{app_id = "org.kde.polkit-kde-authentication-agent-1";}
|
{
|
||||||
{app_id = "Pinentry";}
|
criteria.app_id = "(?:org\.kde\.polkit-kde-authentication-agent-1|Pinentry|pavucontrol|\.blueman-manager-wrapped|nm-connection-editor)";
|
||||||
{app_id = "pavucontrol";}
|
command = "floating enable";
|
||||||
{app_id = "\.blueman-manager-wrapped";}
|
}
|
||||||
{app_id = "nm-connection-editor";}
|
{
|
||||||
{app_id = "thunar";}
|
criteria.class = "(?:[Mm]atplotlib|.*\.py|Idl)";
|
||||||
{class = "[Mm]atplotlib";}
|
command = "floating enable";
|
||||||
{class = ".*\.py";}
|
}
|
||||||
{class = "Idl";}
|
{
|
||||||
])
|
# Catch-all for file dialog windows
|
||||||
++ [
|
criteria.title = "(?:Open|Save) (?:File|Folder|As)";
|
||||||
{
|
command = "floating enable, resize set width 1030 height 710";
|
||||||
criteria.class = "steam_app*";
|
}
|
||||||
command = "inhibit_idle focus";
|
{
|
||||||
}
|
# 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;
|
floating.border = 1;
|
||||||
keybindings = with config; let
|
keybindings = with config; let
|
||||||
|
|
Reference in a new issue