2018-08-09 12:05:48 +02:00
|
|
|
{
|
2018-08-21 10:50:09 +02:00
|
|
|
"layer": "top", // Waybar at top layer
|
2018-08-10 18:57:46 +02:00
|
|
|
// "position": "bottom", // Waybar at the bottom of your screen
|
2018-08-11 09:59:35 +02:00
|
|
|
// "height": 30, // Waybar height
|
|
|
|
// "width": 1280, // Waybar width
|
2018-08-10 18:57:46 +02:00
|
|
|
// Choose the order of the modules
|
2018-10-30 13:44:44 +01:00
|
|
|
"modules-left": ["sway/workspaces", "sway/mode", "custom/spotify"],
|
2018-08-15 20:17:17 +02:00
|
|
|
"modules-center": ["sway/window"],
|
2018-10-25 17:30:26 +02:00
|
|
|
"modules-right": ["pulseaudio", "network", "cpu", "memory", "battery", "battery#bat2", "clock", "tray"],
|
2018-08-10 18:57:46 +02:00
|
|
|
// Modules configuration
|
2018-09-05 00:16:56 +02:00
|
|
|
// "sway/workspaces": {
|
|
|
|
// "disable-scroll": true,
|
|
|
|
// "all-outputs": true,
|
2018-09-18 20:58:11 +02:00
|
|
|
// "format": "{name}: {icon}",
|
2018-09-05 00:16:56 +02:00
|
|
|
// "format-icons": {
|
|
|
|
// "1": "",
|
|
|
|
// "2": "",
|
|
|
|
// "3": "",
|
|
|
|
// "4": "",
|
|
|
|
// "5": "",
|
|
|
|
// "urgent": "",
|
|
|
|
// "focused": "",
|
|
|
|
// "default": ""
|
|
|
|
// }
|
|
|
|
// },
|
2018-10-30 13:44:44 +01:00
|
|
|
"sway/mode": {
|
|
|
|
"format": "{}"
|
|
|
|
},
|
2018-08-18 11:43:48 +02:00
|
|
|
"sway/window": {
|
|
|
|
"max-length": 50
|
|
|
|
},
|
2018-10-26 12:08:50 +02:00
|
|
|
"tray": {
|
2018-10-26 14:53:39 +02:00
|
|
|
// "icon-size": 21,
|
2018-10-26 12:08:50 +02:00
|
|
|
"spacing": 10
|
|
|
|
},
|
2018-08-27 01:36:25 +02:00
|
|
|
"clock": {
|
|
|
|
"format-alt": "{:%Y-%m-%d}"
|
|
|
|
},
|
2018-08-09 13:30:11 +02:00
|
|
|
"cpu": {
|
|
|
|
"format": "{}% "
|
|
|
|
},
|
|
|
|
"memory": {
|
|
|
|
"format": "{}% "
|
|
|
|
},
|
|
|
|
"battery": {
|
2018-11-02 11:23:29 +01:00
|
|
|
"states": {
|
|
|
|
// "good": 95,
|
|
|
|
"warning": 30,
|
|
|
|
"critical": 15
|
|
|
|
},
|
2018-08-13 22:33:07 +02:00
|
|
|
"format": "{capacity}% {icon}",
|
2018-11-02 11:23:29 +01:00
|
|
|
// "format-good": "", // An empty format will hide the module
|
2018-11-02 17:39:00 +01:00
|
|
|
// "format-full": "",
|
2018-08-11 13:15:31 +02:00
|
|
|
"format-icons": ["", "", "", "", ""]
|
2018-08-09 16:38:24 +02:00
|
|
|
},
|
2018-10-25 17:30:26 +02:00
|
|
|
"battery#bat2": {
|
|
|
|
"bat": "BAT2"
|
|
|
|
},
|
2018-08-09 16:38:24 +02:00
|
|
|
"network": {
|
2018-08-17 14:24:00 +02:00
|
|
|
// "interface": "wlp2s0", // (Optional) To force the use of this interface
|
|
|
|
"format-wifi": "{essid} ({signalStrength}%) ",
|
|
|
|
"format-ethernet": "{ifname} ",
|
|
|
|
"format-disconnected": "Disconnected ⚠"
|
2018-08-09 23:55:38 +02:00
|
|
|
},
|
|
|
|
"pulseaudio": {
|
2018-08-13 22:33:07 +02:00
|
|
|
"format": "{volume}% {icon}",
|
2018-08-30 00:04:43 +02:00
|
|
|
"format-bluetooth": "{volume}% {icon}",
|
2018-08-13 22:33:07 +02:00
|
|
|
"format-muted": "",
|
2018-08-29 23:50:41 +02:00
|
|
|
"format-icons": {
|
|
|
|
"headphones": "",
|
|
|
|
"handsfree": "",
|
2018-08-29 23:54:23 +02:00
|
|
|
"headset": "",
|
|
|
|
"phone": "",
|
|
|
|
"portable": "",
|
|
|
|
"car": "",
|
2018-08-29 23:50:41 +02:00
|
|
|
"default": ["", ""]
|
2018-11-01 09:27:00 +01:00
|
|
|
},
|
|
|
|
"on-click": "pavucontrol"
|
2018-08-10 16:26:46 +02:00
|
|
|
},
|
|
|
|
"custom/spotify": {
|
|
|
|
"format": " {}",
|
2018-08-16 17:09:51 +02:00
|
|
|
"max-length": 40,
|
2018-09-18 23:15:37 +02:00
|
|
|
"interval": 30, // Remove this if your script is endless and write in loop
|
2018-11-02 12:35:26 +01:00
|
|
|
"exec": "$HOME/.config/waybar/mediaplayer.sh 2> /dev/null", // Script in resources folder
|
2018-08-18 17:27:40 +02:00
|
|
|
"exec-if": "pgrep spotify"
|
2018-08-09 13:30:11 +02:00
|
|
|
}
|
2018-08-09 12:05:48 +02:00
|
|
|
}
|