Add transparency and blur to waybar

Remove make switch directive
This commit is contained in:
Evie Litherland-Smith 2023-09-24 11:49:05 +01:00
parent 05f371d459
commit 399514926f
3 changed files with 8 additions and 9 deletions

View file

@ -5,6 +5,3 @@ test:
build: build:
sudo nixos-rebuild build --flake . sudo nixos-rebuild build --flake .
switch:
sudo nixos-rebuild switch --flake .

View file

@ -73,10 +73,10 @@ in ''
} }
} }
$layers = ^(eww-.+|bar|system-menu|anyrun|gtk-layer-shell|swaync-.+)$ $layers = ^(eww-.+|waybar|bar|system-menu|anyrun|gtk-layer-shell|swaync-.+)$
layerrule = blur, $layers layerrule = blur, $layers
layerrule = ignorealpha 0, $layers layerrule = ignorealpha 0, $layers
layerrule = ignorealpha 0.5, ^(eww-(music|calendar)|system-menu|anyrun|swaync-.+)$ layerrule = ignorealpha 0.5, ^(eww-(music|calendar)|waybar|system-menu|anyrun|swaync-.+)$
layerrule = xray 1, ^(bar|gtk-layer-shell)$ layerrule = xray 1, ^(bar|gtk-layer-shell)$
animations { animations {

View file

@ -49,11 +49,12 @@ window > box {
border-top-right-radius: 0px; border-top-right-radius: 0px;
border-bottom-left-radius: 10px; border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px; border-bottom-right-radius: 10px;
background: @base; background: rgba(36, 39, 58, 0.5);
} }
tooltip { tooltip {
background: @base; background: rgba(36, 39, 58, 0.5);
box-shadow: inset 0 0 0 1px rgba(183, 189, 248, 0.1), 0 0 0 1px rgba(36, 39, 58, 0.5);
border: 1px solid @lavender; border: 1px solid @lavender;
border-radius: 10px; border-radius: 10px;
} }
@ -78,8 +79,9 @@ tooltip {
#workspaces button { #workspaces button {
border-top: 1px solid transparent; border-top: 1px solid transparent;
border-radius: 0px; border-radius: 0px;
color: @overlay0;
} }
#workspaces button.active { border-top: 1px solid @lavender; } #workspaces button.active { color: @text; }
#workspaces button.urgent { border-top: 1px solid @red; } #workspaces button.urgent { color: @red; }