diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-08-13 01:09:49 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-08-13 01:09:49 +0200 |
commit | 0438660003a5f3cbdb2dd8a42961e0c8629f80b9 (patch) | |
tree | e2829960bbb7f2cc5ef55d0c48ea3c781f1c4b79 /.config/waybar/config | |
parent | dd397e6a4a9368117e2689904bb6bb8586d598e9 (diff) |
waybar: Add waybar configuration
Diffstat (limited to '.config/waybar/config')
-rw-r--r-- | .config/waybar/config | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/.config/waybar/config b/.config/waybar/config new file mode 100644 index 0000000..aecec60 --- /dev/null +++ b/.config/waybar/config @@ -0,0 +1,70 @@ +// vi: ft=jsonc +{ + "layer": "top", + "position": "top", + "height": 40, + "spacing": 8, + "modules-left": ["wlr/workspaces"], + "modules-center": ["clock"], + "modules-right": [ + "custom/keyboard", + "network", + "custom/disk", + "backlight", + "wireplumber", + "battery" + ], + "wlr/workspaces": { + "sort-by-number": true, + "on-click": "activate", + "format": " {name} ", + "all-outputs": true + }, + "clock": { + "interval": 1, + // https://www.typeerror.org/docs/cpp/chrono/format + "format": "{:%d %B %Y (%a) — %T %Z}" + }, + "custom/keyboard": { + "interval": 1, + "format": " {}", + "exec": "~/.config/waybar/custom/keyboard" + }, + "network": { + "interface": "wlp170s0", + "format": "{ifname}", + "iterval": 1, + "format-wifi": " {essid}", + "format-ethernet": " {ipaddr}/{cidr}", + "format-disconnected": " No connection" + }, + "custom/disk": { + "interval": 30, + "format": " {}", + "exec": "~/.config/waybar/custom/disk" + }, + "backlight": { + "interval": 1, + "format": "{icon} {percent}%", + "format-icons": [""] + }, + "wireplumber": { + //"interval": 1, + //"exec": "amixer get Master | grep -o '[0-9]*%' -m1 | tr -d %", + "format": "<span font='Font Awesome 6 Free'>{icon}</span> {volume}%", + "format-muted": "<span font='Font Awesome 6 Free'>{icon}</span> Muted", + "format-icons": { + "headphone": "", + "default": ["", "", ""] + } + }, + "battery": { + "bat": "BAT1", + "states": { + "critical": 20 + }, + "format": "{icon} {capacity}%", + "format-charging": " {capacity}%", + "format-icons": ["", "", "", "", ""] + } +} |