From 25a32495bd953ffcbfe6c71c24c0f9f6e4eeb103 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Fri, 17 Apr 2026 10:53:57 +0100 Subject: feat: add waybar status bar config - Gruvbox dark themed bar replacing polybar - Modules: workspaces, cpu, memory, temperature, network, battery, pulseaudio, clock, tray --- home/.config/waybar/config.jsonc | 67 +++++++++++++++++++++++++++++++++++++ home/.config/waybar/style.css | 71 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 138 insertions(+) create mode 100644 home/.config/waybar/config.jsonc create mode 100644 home/.config/waybar/style.css diff --git a/home/.config/waybar/config.jsonc b/home/.config/waybar/config.jsonc new file mode 100644 index 0000000..f3b0813 --- /dev/null +++ b/home/.config/waybar/config.jsonc @@ -0,0 +1,67 @@ +{ + "layer": "top", + "height": 24, + "spacing": 0, + + "modules-left": ["sway/workspaces", "sway/mode"], + "modules-center": ["sway/window"], + "modules-right": ["pulseaudio", "cpu", "memory", "temperature", "network", "battery", "clock", "tray"], + + "sway/workspaces": { + "disable-scroll": true + }, + + "sway/window": { + "max-length": 60 + }, + + "cpu": { + "format": "CPU {usage}%", + "interval": 5, + "tooltip": false + }, + + "memory": { + "format": "MEM {}%", + "interval": 10, + "tooltip-format": "{used:0.1f}G / {total:0.1f}G" + }, + + "temperature": { + "format": "{temperatureC}°C", + "critical-threshold": 80 + }, + + "network": { + "format-wifi": "{essid} ({signalStrength}%)", + "format-ethernet": "{ifname}", + "format-disconnected": "disconnected", + "tooltip-format": "{ifname}: {ipaddr}/{cidr}" + }, + + "battery": { + "format": "BAT {capacity}%", + "format-charging": "CHR {capacity}%", + "format-plugged": "PLG {capacity}%", + "states": { + "warning": 30, + "critical": 15 + } + }, + + "pulseaudio": { + "format": "VOL {volume}%", + "format-muted": "MUTE", + "scroll-step": 5, + "on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle" + }, + + "clock": { + "format": "{:%a %d %b %H:%M}", + "tooltip-format": "{:%Y-%m-%d %H:%M:%S}" + }, + + "tray": { + "spacing": 8 + } +} diff --git a/home/.config/waybar/style.css b/home/.config/waybar/style.css new file mode 100644 index 0000000..44df159 --- /dev/null +++ b/home/.config/waybar/style.css @@ -0,0 +1,71 @@ +* { + font-family: mono; + font-size: 8pt; +} + +window#waybar { + background-color: #282828; + color: #ebdbb2; + border-bottom: 1px solid #3c3836; +} + +#workspaces button { + padding: 0 5px; + color: #928374; + background-color: transparent; + border: none; + border-radius: 0; +} + +#workspaces button.focused { + color: #ebdbb2; + background-color: #3c3836; + border-bottom: 2px solid #fabd2f; +} + +#workspaces button.urgent { + color: #ebdbb2; + background-color: #fb4934; +} + +#mode { + color: #fabd2f; + font-weight: bold; +} + +#clock, +#battery, +#cpu, +#memory, +#temperature, +#network, +#pulseaudio, +#tray { + padding: 0 6px; +} + +#battery.warning { + color: #fabd2f; +} + +#battery.critical { + color: #fb4934; +} + +#temperature.critical { + color: #fb4934; +} + +#pulseaudio.muted { + color: #928374; +} + +tooltip { + background-color: #3c3836; + border: 1px solid #504945; + border-radius: 0; +} + +tooltip label { + color: #ebdbb2; +} -- cgit v1.2.3-70-g09d2