From 0438660003a5f3cbdb2dd8a42961e0c8629f80b9 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 13 Aug 2023 01:09:49 +0200 Subject: waybar: Add waybar configuration --- .config/waybar/config | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 .config/waybar/config (limited to '.config/waybar/config') 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": "{icon} {volume}%", + "format-muted": "{icon} Muted", + "format-icons": { + "headphone": "", + "default": ["", "", ""] + } + }, + "battery": { + "bat": "BAT1", + "states": { + "critical": 20 + }, + "format": "{icon} {capacity}%", + "format-charging": " {capacity}%", + "format-icons": ["", "", "", "", ""] + } +} -- cgit v1.2.3