diff options
Diffstat (limited to 'modules/user')
| -rw-r--r-- | modules/user/desktop/swayfx.nix | 4 | ||||
| -rw-r--r-- | modules/user/desktop/waybar.css | 19 |
2 files changed, 21 insertions, 2 deletions
diff --git a/modules/user/desktop/swayfx.nix b/modules/user/desktop/swayfx.nix index 54ed913..d3a975e 100644 --- a/modules/user/desktop/swayfx.nix +++ b/modules/user/desktop/swayfx.nix @@ -34,7 +34,7 @@ battery = { format = "{icon}"; - format-critical = "!! {capacity}% {icon} !!"; + format-critical = "{icon} ({capacity}%)"; format-icons = [ "" "" "" "" ]; format-time = "{H}h{m}m"; format-warning = "{icon} ({capacity}%)"; @@ -83,7 +83,7 @@ format-ethernet = " {ipaddr}/{cidr}"; format-icons = [ "" "" "" "" ]; format-wifi = "{essid} {icon}"; - interval = 15; + interval = 1; tooltip-format = "{ifname} tx: {bandwidthUpBytes} rx: {bandwidthDownBytes}"; tooltip-format-wifi = "{ifname} ({ipaddr}/{cidr}) {signalStrength}% tx: {bandwidthUpBytes} rx: {bandwidthDownBytes}"; }; diff --git a/modules/user/desktop/waybar.css b/modules/user/desktop/waybar.css index 0f71c17..decf542 100644 --- a/modules/user/desktop/waybar.css +++ b/modules/user/desktop/waybar.css @@ -63,6 +63,25 @@ tooltip label { margin-right: 8px; } +@keyframes blink { + to { + color: #e0def4; + } +} + +#battery.charging { + color: #9ccfd8; +} + +#battery.critical:not(.charging) { + animation-direction: alternate; + animation-duration: 0.5s; + animation-iteration-count: infinite; + animation-name: blink; + animation-timing-function: steps(2); + color: #eb6f92; +} + #cpu { box-shadow: inset 0 -2px #ebbcba; } |
