summaryrefslogtreecommitdiff
path: root/config/waybar/config.jsonc
diff options
context:
space:
mode:
Diffstat (limited to 'config/waybar/config.jsonc')
-rw-r--r--config/waybar/config.jsonc71
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
+ }
+}