sway: add focusedInactive colour, cleanup layout and layer_rules

This commit is contained in:
Evie Litherland-Smith 2024-04-15 14:49:03 +01:00
parent 510476d9ad
commit 91a5f4665b
2 changed files with 11 additions and 12 deletions

View file

@ -55,11 +55,15 @@
childBorder = border;
};
focusedInactive = rec {
inherit background text indicator;
border = toString base04;
childBorder = border;
};
unfocused = rec {
inherit background text indicator;
border = toString base03;
childBorder = border;
};
unfocused = focusedInactive;
urgent = rec {
inherit background text indicator;
border = toString red;
@ -113,12 +117,6 @@
floating.border = 1;
keybindings = with config; let
modifier = wayland.windowManager.sway.config.modifier;
withTerm = {
term ? "alacritty",
package ? config.programs.${term}.package,
progname,
args ? "",
}: "${package}/bin/${term} -T ${progname} -e ${progname} ${args}";
in
lib.mkOptionDefault {
# Movement
@ -165,10 +163,11 @@
corner_radius 10
shadows enable
shadow_blur_radius 4
layer_effects "waybar" blur enable; blur_ignore_transparent enable
layer_effects "swaync-notification-window" blur enable; blur_ignore_transparent enable
layer_effects "swaync-control-center" blur enable; blur_ignore_transparent enable
layer_effects "rofi" blur enable; blur_ignore_transparent enable
layer_effects "notifications" blur enable; blur_ignore_transparent enable; shadows disable
layer_effects "swaync-notification-window" blur enable; blur_ignore_transparent enable; shadows disable
layer_effects "swaync-control-center" blur enable; blur_ignore_transparent enable; shadows disable
layer_effects "waybar" blur enable; blur_ignore_transparent enable; shadows disable
layer_effects "rofi" blur enable; blur_ignore_transparent enable; shadows disable
titlebar_separator enable
scratchpad_minimize enable
'';

View file

@ -260,7 +260,7 @@
window > box {
color: ${base05};
background: alpha(${base00}, 0.8);
margin: 0px 10px 5px;
margin: 0px 10px 10px;
padding: 0px;
border: 1px solid ${accent};
border-radius: 10px;