2018-08-09 10:05:48 +00:00
|
|
|
{
|
2018-08-21 08:50:09 +00:00
|
|
|
"layer": "top", // Waybar at top layer
|
2019-03-22 11:25:05 +00:00
|
|
|
// "position": "bottom", // Waybar position (top|bottom|left|right)
|
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-11-22 15:21:46 +00:00
|
|
|
"modules-left": ["sway/workspaces", "sway/mode", "custom/spotify"],
|
2018-08-15 18:17:17 +00:00
|
|
|
"modules-center": ["sway/window"],
|
2019-03-13 12:18:08 +00:00
|
|
|
"modules-right": ["idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "battery", "battery#bat2", "clock", "tray"],
|
2018-08-10 16:57:46 +00:00
|
|
|
// Modules configuration
|
2018-09-04 22:16:56 +00:00
|
|
|
// "sway/workspaces": {
|
|
|
|
// "disable-scroll": true,
|
|
|
|
// "all-outputs": true,
|
2018-09-18 18:58:11 +00:00
|
|
|
// "format": "{name}: {icon}",
|
2018-09-04 22:16:56 +00:00
|
|
|
// "format-icons": {
|
|
|
|
// "1": "",
|
|
|
|
// "2": "",
|
|
|
|
// "3": "",
|
|
|
|
// "4": "",
|
|
|
|
// "5": "",
|
|
|
|
// "urgent": "",
|
|
|
|
// "focused": "",
|
|
|
|
// "default": ""
|
|
|
|
// }
|
|
|
|
// },
|
2018-10-30 12:44:44 +00:00
|
|
|
"sway/mode": {
|
2018-11-21 19:49:09 +00:00
|
|
|
"format": "<span style=\"italic\">{}</span>"
|
2018-10-30 12:44:44 +00:00
|
|
|
},
|
2019-02-17 14:27:54 +00:00
|
|
|
"idle_inhibitor": {
|
|
|
|
"format": "{icon}",
|
|
|
|
"format-icons": {
|
|
|
|
"activated": "",
|
|
|
|
"deactivated": ""
|
|
|
|
}
|
|
|
|
},
|
2018-10-26 10:08:50 +00:00
|
|
|
"tray": {
|
2018-10-26 12:53:39 +00:00
|
|
|
// "icon-size": 21,
|
2018-10-26 10:08:50 +00:00
|
|
|
"spacing": 10
|
|
|
|
},
|
2018-08-26 23:36:25 +00:00
|
|
|
"clock": {
|
2019-02-25 18:25:19 +00:00
|
|
|
"tooltip-format": "{:%Y-%m-%d | %H:%M}",
|
2018-08-26 23:36:25 +00:00
|
|
|
"format-alt": "{:%Y-%m-%d}"
|
|
|
|
},
|
2018-08-09 11:30:11 +00:00
|
|
|
"cpu": {
|
2018-11-15 13:44:43 +00:00
|
|
|
"format": "{usage}% "
|
2018-08-09 11:30:11 +00:00
|
|
|
},
|
|
|
|
"memory": {
|
|
|
|
"format": "{}% "
|
|
|
|
},
|
2019-03-13 12:18:08 +00:00
|
|
|
"temperature": {
|
2019-03-14 13:01:10 +00:00
|
|
|
// "thermal-zone": 2,
|
2019-03-13 12:18:08 +00:00
|
|
|
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
2019-03-13 21:39:39 +00:00
|
|
|
"critical-threshold": 80,
|
2019-03-13 12:18:08 +00:00
|
|
|
// "format-critical": "{temperatureC}°C ",
|
|
|
|
"format": "{temperatureC}°C "
|
|
|
|
},
|
2019-02-10 09:35:19 +00:00
|
|
|
"backlight": {
|
|
|
|
// "device": "acpi_video1",
|
|
|
|
"format": "{percent}% {icon}",
|
|
|
|
"format-icons": ["", ""]
|
|
|
|
},
|
2018-08-09 11:30:11 +00:00
|
|
|
"battery": {
|
2018-11-02 10:23:29 +00:00
|
|
|
"states": {
|
|
|
|
// "good": 95,
|
|
|
|
"warning": 30,
|
|
|
|
"critical": 15
|
|
|
|
},
|
2018-08-13 20:33:07 +00:00
|
|
|
"format": "{capacity}% {icon}",
|
2018-11-02 10:23:29 +00:00
|
|
|
// "format-good": "", // An empty format will hide the module
|
2018-11-02 16:39:00 +00:00
|
|
|
// "format-full": "",
|
2018-08-11 11:15:31 +00:00
|
|
|
"format-icons": ["", "", "", "", ""]
|
2018-08-09 14:38:24 +00:00
|
|
|
},
|
2018-10-25 15:30:26 +00:00
|
|
|
"battery#bat2": {
|
|
|
|
"bat": "BAT2"
|
|
|
|
},
|
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}%) ",
|
2018-11-13 20:40:47 +00:00
|
|
|
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
|
2018-08-17 12:24:00 +00:00
|
|
|
"format-disconnected": "Disconnected ⚠"
|
2018-08-09 21:55:38 +00:00
|
|
|
},
|
|
|
|
"pulseaudio": {
|
2018-11-09 21:48:27 +00:00
|
|
|
//"scroll-step": 1,
|
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": ["", ""]
|
2018-11-01 08:27:00 +00:00
|
|
|
},
|
|
|
|
"on-click": "pavucontrol"
|
2018-08-10 14:26:46 +00:00
|
|
|
},
|
|
|
|
"custom/spotify": {
|
|
|
|
"format": " {}",
|
2018-08-16 15:09:51 +00:00
|
|
|
"max-length": 40,
|
2018-11-22 14:48:52 +00:00
|
|
|
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
|
2018-08-09 11:30:11 +00:00
|
|
|
}
|
2019-02-17 14:27:54 +00:00
|
|
|
}
|