changed blinking animation and colors

This commit is contained in:
Maximilian Wagner 2024-02-01 11:09:51 +01:00
parent c5eb46db2e
commit eb1801c9d3
2 changed files with 46 additions and 33 deletions

5
config
View File

@ -44,16 +44,13 @@
"battery": { "battery": {
"states": { "states": {
// "good": 85,
"warning": 30, "warning": 30,
"critical": 10 "critical": 10
}, },
"format": "{capacity}% {icon}", "format": "{capacity}% {icon}",
"format-charging": "{capacity}% 󱐋", "format-charging": "{capacity}% 󱐋",
"format-plugged": "{capacity}% ", "format-plugged": "{capacity}% ",
// "format-good": "", // An empty format will hide the module "format-icons": [" ", " ", " ", " ", " "]
// "format-full": "",
"format-icons": ["", "", "", "", ""]
}, },
"custom/PBPbattery": { "custom/PBPbattery": {

View File

@ -11,37 +11,53 @@
* -------------------------------------------------------------------------- */ * -------------------------------------------------------------------------- */
/* /*
Arc-Dark Color Scheme Catppuccin Color Scheme
*/ */
/* @define-color highlight #5294e2 ; */
/* @define-color base1 #404552 ; */
@define-color highlight #CBA6F7 ; @define-color highlight #CBA6F7 ;
@define-color base1 #1E1E2E ; @define-color base1 #1E1E2E ;
@define-color border #B4BEFE ; @define-color border #B4BEFE ;
@keyframes blink-warning { @define-color black #45475A ;
70% { @define-color white #BAC2DE ;
color: white;
@define-color red #F38BA8 ;
@define-color orange #F9E2AF ;
@keyframes blink {
60%{
color: @black;
} }
to { to {
color: white; color: @black;
background-color: orange; background-color: @white;
}
}
@keyframes blink-warning {
60%{
color: @black;
}
to {
color: @black;
background-color: @orange;
} }
} }
@keyframes blink-critical { @keyframes blink-critical {
70% { 60%{
color: white; color: @black;
} }
to { to {
color: white; color: @black;
background-color: red; background-color: @red;
} }
} }
/* ----------------------------------------------------------------------------- /* -----------------------------------------------------------------------------
* Base styles * Base styles
* -------------------------------------------------------------------------- */ * -------------------------------------------------------------------------- */
@ -59,7 +75,7 @@ Arc-Dark Color Scheme
#waybar { #waybar {
background: transparent; background: transparent;
border: 1px solid @border; border: 1px solid @border;
color: #bebebe; color: @white;
background-color: @base1; background-color: @base1;
font-family: UbuntuMono; font-family: UbuntuMono;
font-size: 14px; font-size: 14px;
@ -89,35 +105,35 @@ Arc-Dark Color Scheme
* -------------------------------------------------------------------------- */ * -------------------------------------------------------------------------- */
#battery { #battery {
animation-timing-function: linear; animation-timing-function: ease-in-out;
animation-iteration-count: infinite; animation-iteration-count: infinite;
animation-direction: alternate; animation-direction: alternate;
} }
#battery.warning { #battery.warning {
color: orange; color: @white;
} }
#battery.critical { #battery.critical {
color: red; color: @white;
} }
#battery.warning.discharging { #battery.warning.discharging {
animation-name: blink-warning; animation-name: blink;
animation-duration: 3s; animation-duration: 400ms;
} }
#battery.critical.discharging { #battery.critical.discharging {
animation-name: blink-critical; animation-name: blink;
animation-duration: 2s; animation-duration: 150ms;
} }
#cpu.warning { #cpu.warning {
color: orange; color: @orange;
} }
#cpu.critical { #cpu.critical {
color: red; color: @red;
} }
#memory { #memory {
@ -127,11 +143,11 @@ Arc-Dark Color Scheme
} }
#memory.warning { #memory.warning {
color: orange; color: @orange;
} }
#memory.critical { #memory.critical {
color: red; color: @red;
animation-name: blink-critical; animation-name: blink-critical;
animation-duration: 2s; animation-duration: 2s;
padding-left:5px; padding-left:5px;
@ -141,13 +157,13 @@ Arc-Dark Color Scheme
#mode { #mode {
background: @highlight; background: @highlight;
border-bottom: 3px transparent; border-bottom: 3px transparent;
color:white; color: @white;
margin-left: 5px; margin-left: 5px;
padding: 7px; padding: 7px;
} }
#network.disconnected { #network.disconnected {
color: orange; color: @orange;
} }
#pulseaudio { #pulseaudio {
@ -159,7 +175,7 @@ Arc-Dark Color Scheme
} }
#temperature.critical { #temperature.critical {
color: red; color: @red;
} }
#window { #window {
@ -183,8 +199,8 @@ Arc-Dark Color Scheme
} }
#workspaces button.urgent { #workspaces button.urgent {
border-color: #c9545d; border-color: @red;
color: #c9545d; color: @red;
} }
#custom-power { #custom-power {