Skip to content

Commit

Permalink
waybar: urgent/critical animations
Browse files Browse the repository at this point in the history
  • Loading branch information
chadsr committed Apr 15, 2024
1 parent 874a6b3 commit 98ae235
Showing 1 changed file with 28 additions and 20 deletions.
48 changes: 28 additions & 20 deletions waybar/.config/waybar/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@
@define-color urgent @pink;
@define-color critical @red;

@keyframes urgent-animation {
50% {
background: @urgent;
}
}

@keyframes critical-animation {
50% {
background: @critical;
}
}

* {
border: none;
border-radius: 0;
Expand Down Expand Up @@ -58,7 +70,7 @@ tooltip label {
}

#workspaces button.urgent {
background: @urgent;
animation: urgent-animation 1s steps(3) infinite;
}

/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
Expand Down Expand Up @@ -127,6 +139,12 @@ tooltip label {
background: @light-blue;
}

#custom-right-spacer-information {
color: @blue;
padding: 0;
font-size: 20px;
}

#tray {
padding: 0 4px;
}
Expand All @@ -141,7 +159,7 @@ tooltip label {

#tray>.needs-attention {
-gtk-icon-effect: highlight;
background-color: @urgent;
animation: urgent-animation 0.5s steps(10) infinite;
}

#privacy {
Expand All @@ -160,6 +178,12 @@ tooltip label {
background: @purple-alt;
}

#custom-yubikey {
color: @yellow;
font-size: 20px;
animation: urgent-animation 0.5s steps(10) infinite;
}

#custom-weather,
#custom-crypto {
background: @blue;
Expand All @@ -169,12 +193,6 @@ tooltip label {
font-family: cryptocoins, monospace;
}

#custom-right-spacer-information {
color: @blue;
padding: 0;
font-size: 20px;
}

#pulseaudio,
#memory,
#cpu,
Expand Down Expand Up @@ -202,13 +220,8 @@ tooltip label {

#temperature.critical,
#temperature.gpu.critical {
background: @critical;
color: @blue;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
animation: critical-animation 0.5s steps(10) infinite;
}

#disk {
Expand Down Expand Up @@ -254,11 +267,6 @@ tooltip label {
}

#battery.critical:not(.charging) {
background: @critical;
color: @blue;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
animation: critical-animation 0.5s steps(10) infinite;
}

0 comments on commit 98ae235

Please sign in to comment.