2019-05-09 21:37:18 +00:00
|
|
|
{
|
|
|
|
"layer": "top", // Waybar at top layer
|
|
|
|
// "position": "bottom", // Waybar position (top|bottom|left|right)
|
2019-05-09 22:48:05 +00:00
|
|
|
"height": 23, // Waybar height (to be removed for auto height)
|
2019-05-09 21:37:18 +00:00
|
|
|
// Choose the order of the modules
|
|
|
|
"modules-left": ["sway/workspaces", "sway/mode"],
|
|
|
|
"modules-center": [],
|
2020-09-02 19:44:05 +00:00
|
|
|
"modules-right": ["custom/spotify", "clock", "network", "cpu", "memory", "battery", "backlight", "pulseaudio", "custom/vpn", "idle_inhibitor", "tray"],
|
2019-05-09 21:37:18 +00:00
|
|
|
|
|
|
|
// Modules configuration
|
|
|
|
"sway/workspaces": {
|
|
|
|
"disable-scroll": true,
|
2019-09-17 23:31:13 +00:00
|
|
|
"all-outputs": false,
|
2019-05-09 21:37:18 +00:00
|
|
|
"format": "{name}"
|
|
|
|
},
|
|
|
|
"sway/mode": {
|
|
|
|
"format": "<span style=\"italic\">{}</span>"
|
|
|
|
},
|
|
|
|
"idle_inhibitor": {
|
|
|
|
"format": "{icon}",
|
|
|
|
"format-icons": {
|
|
|
|
"activated": "",
|
|
|
|
"deactivated": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tray": {
|
|
|
|
// "icon-size": 21,
|
|
|
|
"spacing": 10
|
|
|
|
},
|
|
|
|
"clock": {
|
|
|
|
"format": " {:%Y-%m-%d %H:%M}"
|
|
|
|
},
|
|
|
|
"cpu": {
|
2019-05-09 22:12:09 +00:00
|
|
|
"format": " {usage}%",
|
2019-05-09 21:37:18 +00:00
|
|
|
"tooltip": false
|
|
|
|
},
|
|
|
|
"memory": {
|
|
|
|
"format": " {}%"
|
|
|
|
},
|
|
|
|
"backlight": {
|
|
|
|
"format": "{icon} {percent}%",
|
2019-05-09 22:12:09 +00:00
|
|
|
"format-icons": ["", "", ""]
|
2019-05-09 21:37:18 +00:00
|
|
|
},
|
|
|
|
"battery": {
|
|
|
|
"states": {
|
|
|
|
// "good": 95,
|
|
|
|
"warning": 30,
|
|
|
|
"critical": 15
|
|
|
|
},
|
2019-10-12 03:52:24 +00:00
|
|
|
"bat": "BAT0",
|
2019-05-09 21:37:18 +00:00
|
|
|
"format": " {icon} {capacity}%",
|
|
|
|
// "format-good": "", // An empty format will hide the module
|
|
|
|
// "format-full": "",
|
|
|
|
"format-icons": ["", "", "", "", ""]
|
|
|
|
},
|
|
|
|
"network": {
|
|
|
|
"format-wifi": " <{essid}> {ipaddr}/{cidr}",
|
2019-05-09 22:12:09 +00:00
|
|
|
"format-ethernet": " {ipaddr}/{cidr}",
|
2019-05-09 21:37:18 +00:00
|
|
|
"format-disconnected": "⚠ Disconnected"
|
|
|
|
},
|
|
|
|
"pulseaudio": {
|
|
|
|
//"scroll-step": 1,
|
|
|
|
"format": "{icon} {volume}%",
|
2019-05-09 22:12:09 +00:00
|
|
|
"format-bluetooth": "{icon} {volume}%",
|
2019-05-09 22:48:05 +00:00
|
|
|
"format-muted": " --%",
|
2019-05-09 21:37:18 +00:00
|
|
|
"format-icons": {
|
2019-05-09 22:12:09 +00:00
|
|
|
"headphones": "",
|
|
|
|
"headset": "",
|
|
|
|
"default": ["", "", ""]
|
2019-05-09 21:37:18 +00:00
|
|
|
},
|
2020-09-02 19:44:05 +00:00
|
|
|
"on-click-right": "pavucontrol"
|
2019-05-09 21:37:18 +00:00
|
|
|
},
|
|
|
|
"custom/vpn": {
|
|
|
|
"format": "{}",
|
|
|
|
"interval": 5,
|
2019-05-09 22:12:09 +00:00
|
|
|
"exec": "test -e /proc/sys/net/ipv4/conf/tun0 && echo || echo "
|
2020-09-02 19:44:05 +00:00
|
|
|
},
|
|
|
|
"custom/spotify": {
|
|
|
|
"format": " {}",
|
|
|
|
"interval": 5,
|
|
|
|
"max-length": 50,
|
|
|
|
"exec": "playerctl metadata -f '({{duration(position)}}/{{duration(mpris:length)}}) {{status}}: {{title}}\n{{artist}} - {{title}}'",
|
|
|
|
"exec-if": "pgrep spotify",
|
|
|
|
"on-scroll-up": "playerctl volume 0.05+",
|
|
|
|
"on-scroll-down": "playerctl volume 0.05-",
|
|
|
|
"on-click": "playerctl play-pause",
|
|
|
|
"on-click-right": "pgrep spotify$ || spotify"
|
2019-05-09 21:37:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|