diff options
Diffstat (limited to 'waybar/config')
-rw-r--r-- | waybar/config | 118 |
1 files changed, 118 insertions, 0 deletions
diff --git a/waybar/config b/waybar/config new file mode 100644 index 0000000..c9420ad --- /dev/null +++ b/waybar/config @@ -0,0 +1,118 @@ +{ + "height": 30, // Waybar height (to be removed for auto height) + "spacing": 4, // Gaps between modules (4px) + "modules-left": ["sway/workspaces", "sway/mode", "custom/media"], + "modules-center": ["sway/window"], + "modules-right": [ + "pulseaudio", + "network", + "cpu", + "memory", + "temperature", + "backlight", + "sway/language", + "battery", + "battery#bat2", + "clock", + "tray" + ], + "tray": { + "spacing": 10 + }, + "clock": { + "format": "{:KW %U %Y-%m-%d %H:%M}", + "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>", + "on-click": "foot ikhal" + }, + "cpu": { + "format": "{usage}% CPU", + "tooltip": false, + "on-click": "foot htop" + }, + "memory": { + "format": "{}% RAM", + "on-click": "foot htop" + }, + "temperature": { + "critical-threshold": 80, + "format-critical": "{temperatureC} °C !!!", + "format": "{temperatureC} °C", + }, + "backlight": { + "format": "{percent}% light", + }, + "battery": { + "bat": "BAT0", + "states": { + // "good": 95, + "warning": 30, + "critical": 15 + }, + "format": "{capacity}% {icon}", + "format-charging": "{capacity}% ", + "format-plugged": "{capacity}% ", + "format-alt": "{time} {icon}", + // "format-good": "", // An empty format will hide the module + // "format-full": "", + "format-icons": ["", "", "", "", ""] + }, + "battery#bat2": { + "bat": "BAT1", + "states": { + // "good": 95, + "warning": 30, + "critical": 15 + }, + "format": "{capacity}% {icon}", + "format-charging": "{capacity}% ", + "format-plugged": "{capacity}% ", + "format-alt": "{time} {icon}", + // "format-good": "", // An empty format will hide the module + // "format-full": "", + "format-icons": ["", "", "", "", ""] + }, + "network": { + // "interface": "wlp2*", // (Optional) To force the use of this interface + "format-wifi": "{essid} ({signalStrength}%) ", + "format-ethernet": "{ipaddr}/{cidr} ", + "tooltip-format": "{ifname} via {gwaddr} ", + "format-linked": "{ifname} (No IP) ", + "format-disconnected": "Disconnected ⚠", + //"format-alt": "{ifname}: {ipaddr}/{cidr}", + "on-click": "foot doas nmtui" + }, + "pulseaudio": { + // "scroll-step": 1, // %, can be a float + "format": "{volume}% {icon} {format_source}", + "format-bluetooth": "{volume}% {icon} {format_source}", + "format-bluetooth-muted": " {icon} {format_source}", + "format-muted": " {format_source}", + "format-source": "{volume}% ", + "format-source-muted": "", + "format-icons": { + "headphone": "", + "hands-free": "", + "headset": "", + "phone": "", + "portable": "", + "car": "", + "default": ["", "", ""] + }, + "on-click": "foot pulsemixer" + }, + "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 + }, + "sway/workspaces": { + "format": "{index}" + } +} |