diff options
author | Marc Coquand <marc@mccd.space> | 2024-05-20 09:57:24 -0500 |
---|---|---|
committer | Marc Coquand <marc@mccd.space> | 2024-05-20 09:57:24 -0500 |
commit | 2e90f135df9a6e464e8eaed89eb0df2f896190cf (patch) | |
tree | af4036c4dd7899e0851c47dca54749777e804709 /config/waybar/config.jsonc | |
parent | 8ce3623810d7fe1dcc60f00df07353b45b3a713d (diff) | |
download | rcm-2e90f135df9a6e464e8eaed89eb0df2f896190cf.tar.gz rcm-2e90f135df9a6e464e8eaed89eb0df2f896190cf.tar.bz2 rcm-2e90f135df9a6e464e8eaed89eb0df2f896190cf.zip |
Add waybar
Diffstat (limited to '')
-rw-r--r-- | config/waybar/config.jsonc | 71 |
1 files changed, 71 insertions, 0 deletions
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 + } +} |