From 2e90f135df9a6e464e8eaed89eb0df2f896190cf Mon Sep 17 00:00:00 2001 From: Marc Coquand Date: Mon, 20 May 2024 09:57:24 -0500 Subject: Add waybar --- config/waybar/config.jsonc | 71 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 config/waybar/config.jsonc (limited to 'config/waybar/config.jsonc') diff --git a/config/waybar/config.jsonc b/config/waybar/config.jsonc new file mode 100644 index 0000000..8ccdf75 --- /dev/null +++ b/config/waybar/config.jsonc @@ -0,0 +1,71 @@ +// -*- mode: jsonc -*- +{ + "layer": "bottom", // Waybar at top layer + "position": "right", // Waybar position (top|bottom|left|right) + // "width": 1280, // Waybar width + "spacing": 20, // Gaps between modules (4px) + // Choose the order of the modules + "modules-right": [ + "pulseaudio", + "network", + "battery", + "battery#bat2", + "clock" + ], + "clock": { + "format-alt": "{:%Y-%m-%d}" + }, + "battery": { + "states": { + // "good": 95, + "warning": 30, + "critical": 15 + }, + "format": "{icon}", + "format-full": "{icon}", + "format-charging": "", + "format-plugged": "", + "format-alt": "{icon}", + "format-icons": ["", "", "", "", ""] + }, + "battery#bat2": { + "bat": "BAT2" + }, + "network": { + // "interface": "wlp2*", // (Optional) To force the use of this interface + "format-wifi": "", + "format-ethernet": "{ipaddr}/{cidr} ", + "tooltip-format": "{ifname} via {gwaddr} ", + "format-linked": "{ifname} (No IP) ", + "format-disconnected": "DISC", + "format-alt": "{ifname}: {ipaddr}/{cidr}" + }, + "pulseaudio": { + "format": "{icon}", + "format-bluetooth": "{icon}", + "format-bluetooth-muted": "{icon}", + "format-muted": "", + "format-icons": { + "headphone": "", + "hands-free": "", + "headset": "", + "phone": "", + "portable": "", + "car": "", + "default": ["", "", ""] + }, + "on-click": "pavucontrol" + }, + "custom/media": { + "format": "{icon} {}", + "return-type": "json", + "max-length": 40, + "format-icons": { + "spotify": "", + "default": "🎜" + }, + "escape": true, + "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder + // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name + } +} -- cgit v1.2.3