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": {
|
2021-05-30 05:12:46 +00:00
|
|
|
"format": " {:%Y-%m-%d %H:%M}",
|
|
|
|
"tooltip": false
|
2019-05-09 21:37:18 +00:00
|
|
|
},
|
|
|
|
"cpu": {
|
2021-05-30 05:12:46 +00:00
|
|
|
"format": " {usage:2}%"
|
2019-05-09 21:37:18 +00:00
|
|
|
},
|
|
|
|
"memory": {
|
2021-05-30 05:12:46 +00:00
|
|
|
"format": " {percentage:2}%",
|
|
|
|
"tooltip-format": "{used:0.1f}/{total:0.1f}GiB"
|
2019-05-09 21:37:18 +00:00
|
|
|
},
|
|
|
|
"backlight": {
|
2021-05-30 05:12:46 +00:00
|
|
|
"format": "{icon} {percent:2}%",
|
|
|
|
"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": {
|
2021-05-30 02:13:46 +00:00
|
|
|
"format-wifi": " {ipaddr}/{cidr}",
|
2019-05-09 22:12:09 +00:00
|
|
|
"format-ethernet": " {ipaddr}/{cidr}",
|
2021-05-30 02:13:46 +00:00
|
|
|
"format-disconnected": "⚠ Disconnected",
|
|
|
|
"tooltip-format": "up: {bandwidthUpBits}b/s, down: {bandwidthDownBits}b/s",
|
|
|
|
"tooltip-format-wifi": "{essid} - {bandwidthUpBits} {bandwidthDownBits}"
|
2019-05-09 21:37:18 +00:00
|
|
|
},
|
|
|
|
"pulseaudio": {
|
|
|
|
//"scroll-step": 1,
|
2021-05-30 05:12:46 +00:00
|
|
|
"format": "{icon} {volume:2}%",
|
|
|
|
"format-bluetooth": "{icon} {volume:2}%",
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
|