Waybar/resources/config

70 lines
2.1 KiB
Plaintext
Raw Normal View History

2018-08-09 10:05:48 +00:00
{
"layer": "top", // Waybar at top layer
2018-08-10 16:57:46 +00:00
// "position": "bottom", // Waybar at the bottom of your screen
2018-08-11 07:59:35 +00:00
// "height": 30, // Waybar height
// "width": 1280, // Waybar width
2018-08-10 16:57:46 +00:00
// Choose the order of the modules
2018-08-15 18:17:17 +00:00
"modules-left": ["sway/workspaces", "custom/spotify"],
"modules-center": ["sway/window"],
"modules-right": ["pulseaudio", "network", "cpu", "memory", "battery", "clock", "tray"],
2018-08-10 16:57:46 +00:00
// Modules configuration
// "sway/workspaces": {
// "disable-scroll": true,
// "all-outputs": true,
2018-09-18 18:58:11 +00:00
// "format": "{name}: {icon}",
// "format-icons": {
// "1": "",
// "2": "",
// "3": "",
// "4": "",
// "5": "",
// "urgent": "",
// "focused": "",
// "default": ""
// }
// },
"sway/window": {
"max-length": 50
},
2018-08-26 23:36:25 +00:00
"clock": {
"format-alt": "{:%Y-%m-%d}"
},
2018-08-09 11:30:11 +00:00
"cpu": {
"format": "{}% "
},
"memory": {
"format": "{}% "
},
"battery": {
2018-08-13 20:33:07 +00:00
"format": "{capacity}% {icon}",
2018-08-11 11:15:31 +00:00
"format-icons": ["", "", "", "", ""]
2018-08-09 14:38:24 +00:00
},
"network": {
2018-08-17 12:24:00 +00:00
// "interface": "wlp2s0", // (Optional) To force the use of this interface
"format-wifi": "{essid} ({signalStrength}%) ",
"format-ethernet": "{ifname} ",
"format-disconnected": "Disconnected ⚠"
2018-08-09 21:55:38 +00:00
},
"pulseaudio": {
2018-08-13 20:33:07 +00:00
"format": "{volume}% {icon}",
2018-08-29 22:04:43 +00:00
"format-bluetooth": "{volume}% {icon}",
2018-08-13 20:33:07 +00:00
"format-muted": "",
2018-08-29 21:50:41 +00:00
"format-icons": {
"headphones": "",
"handsfree": "",
2018-08-29 21:54:23 +00:00
"headset": "",
"phone": "",
"portable": "",
"car": "",
2018-08-29 21:50:41 +00:00
"default": ["", ""]
}
},
"custom/spotify": {
"format": " {}",
2018-08-16 15:09:51 +00:00
"max-length": 40,
2018-09-18 21:15:37 +00:00
"interval": 30, // Remove this if your script is endless and write in loop
2018-08-26 19:47:35 +00:00
"exec": "$HOME/.config/waybar/mediaplayer.sh", // Script in resources folder
2018-08-18 15:27:40 +00:00
"exec-if": "pgrep spotify"
2018-08-09 11:30:11 +00:00
}
2018-08-09 10:05:48 +00:00
}