sway: add focusedInactive colour, cleanup layout and layer_rules
This commit is contained in:
parent
510476d9ad
commit
91a5f4665b
|
@ -55,11 +55,15 @@
|
||||||
childBorder = border;
|
childBorder = border;
|
||||||
};
|
};
|
||||||
focusedInactive = rec {
|
focusedInactive = rec {
|
||||||
|
inherit background text indicator;
|
||||||
|
border = toString base04;
|
||||||
|
childBorder = border;
|
||||||
|
};
|
||||||
|
unfocused = rec {
|
||||||
inherit background text indicator;
|
inherit background text indicator;
|
||||||
border = toString base03;
|
border = toString base03;
|
||||||
childBorder = border;
|
childBorder = border;
|
||||||
};
|
};
|
||||||
unfocused = focusedInactive;
|
|
||||||
urgent = rec {
|
urgent = rec {
|
||||||
inherit background text indicator;
|
inherit background text indicator;
|
||||||
border = toString red;
|
border = toString red;
|
||||||
|
@ -113,12 +117,6 @@
|
||||||
floating.border = 1;
|
floating.border = 1;
|
||||||
keybindings = with config; let
|
keybindings = with config; let
|
||||||
modifier = wayland.windowManager.sway.config.modifier;
|
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
|
in
|
||||||
lib.mkOptionDefault {
|
lib.mkOptionDefault {
|
||||||
# Movement
|
# Movement
|
||||||
|
@ -165,10 +163,11 @@
|
||||||
corner_radius 10
|
corner_radius 10
|
||||||
shadows enable
|
shadows enable
|
||||||
shadow_blur_radius 4
|
shadow_blur_radius 4
|
||||||
layer_effects "waybar" 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
|
layer_effects "swaync-notification-window" blur enable; blur_ignore_transparent enable; shadows disable
|
||||||
layer_effects "swaync-control-center" blur enable; blur_ignore_transparent enable
|
layer_effects "swaync-control-center" blur enable; blur_ignore_transparent enable; shadows disable
|
||||||
layer_effects "rofi" blur enable; blur_ignore_transparent enable
|
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
|
titlebar_separator enable
|
||||||
scratchpad_minimize enable
|
scratchpad_minimize enable
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -260,7 +260,7 @@
|
||||||
window > box {
|
window > box {
|
||||||
color: ${base05};
|
color: ${base05};
|
||||||
background: alpha(${base00}, 0.8);
|
background: alpha(${base00}, 0.8);
|
||||||
margin: 0px 10px 5px;
|
margin: 0px 10px 10px;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
border: 1px solid ${accent};
|
border: 1px solid ${accent};
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
|
|
Loading…
Reference in a new issue