2022-04-22 15:28:40 +02:00
|
|
|
//
|
|
|
|
// ~/.config/waybar/config
|
|
|
|
//
|
|
|
|
|
|
|
|
[{
|
|
|
|
"position": "bottom", // Waybar position (top|bottom|left|right)
|
2022-04-22 22:02:11 +02:00
|
|
|
"height": 30,
|
|
|
|
"spacing": 4,
|
2022-04-22 15:28:40 +02:00
|
|
|
|
|
|
|
"modules-left": ["sway/workspaces", "custom/media"],
|
2022-04-22 22:02:11 +02:00
|
|
|
"modules-right": ["idle_inhibitor", "cpu", "memory", "disk", "temperature", "pulseaudio", "battery", "clock", "tray"],
|
2022-04-22 15:28:40 +02:00
|
|
|
|
|
|
|
"ipc": true,
|
|
|
|
|
|
|
|
"sway/workspaces": {
|
|
|
|
"disable-scroll": true,
|
|
|
|
"all-outputs": true,
|
|
|
|
"format": "{icon}{name}",
|
|
|
|
"format-icons": {
|
|
|
|
"urgent": " ",
|
|
|
|
"default": "" // Prevent showing workspace name literal.
|
2022-04-22 22:02:11 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
"custom/media": {
|
|
|
|
"format": "{icon} {}",
|
|
|
|
"return-type": "json",
|
|
|
|
"max-length": 40,
|
|
|
|
"format-icons": {
|
|
|
|
"spotify": "",
|
|
|
|
"default": "🎜"
|
|
|
|
},
|
|
|
|
"escape": true,
|
|
|
|
"exec": "~/.config/waybar/mediaplayer.py 2> /dev/null", // Script in resources folder
|
2022-04-22 15:28:40 +02:00
|
|
|
},
|
2022-04-22 22:02:11 +02:00
|
|
|
|
|
|
|
|
2022-04-22 15:28:40 +02:00
|
|
|
"idle_inhibitor": {
|
|
|
|
"format": "Prohibit idle {icon}",
|
|
|
|
"format-icons": {
|
|
|
|
"activated": "",
|
|
|
|
"deactivated": ""
|
|
|
|
},
|
2022-04-22 22:02:11 +02:00
|
|
|
"tooltip": false,
|
2022-04-22 15:28:40 +02:00
|
|
|
},
|
|
|
|
"cpu": {
|
|
|
|
"format": "{usage}% ",
|
2022-04-22 22:02:11 +02:00
|
|
|
"tooltip": true,
|
2022-04-22 15:28:40 +02:00
|
|
|
},
|
|
|
|
"memory": {
|
|
|
|
"format": "{}% ",
|
|
|
|
},
|
2022-04-22 22:02:11 +02:00
|
|
|
"disk": {
|
|
|
|
"interval": 30,
|
|
|
|
"format": "{percentage_free}% ({free}) 💾",
|
|
|
|
"path": "/",
|
|
|
|
},
|
2022-04-22 15:28:40 +02:00
|
|
|
"temperature": {
|
|
|
|
"critical-threshold": 70,
|
|
|
|
// "format-critical": "{temperatureC}°C {icon}",
|
|
|
|
"format": "{temperatureC}°C {icon}",
|
2022-04-22 22:02:11 +02:00
|
|
|
"format-icons": ["", "", ""],
|
2022-04-22 15:28:40 +02:00
|
|
|
},
|
|
|
|
"pulseaudio": {
|
|
|
|
"scroll-step": 2,
|
|
|
|
"format": "{volume}% {icon} {format_source}",
|
|
|
|
"format-bluetooth": "{volume}% {icon} {format_source}",
|
|
|
|
"format-bluetooth-muted": " {icon} {format_source}",
|
|
|
|
"format-muted": " {format_source}",
|
|
|
|
"format-source": "{volume}% ",
|
|
|
|
"format-source-muted": "",
|
|
|
|
"format-icons": {
|
|
|
|
"headphone": " ",
|
|
|
|
"hands-free": "",
|
|
|
|
"headset": "",
|
|
|
|
"phone": "",
|
|
|
|
"portable": "",
|
|
|
|
"car": "",
|
|
|
|
"default": ["", "", ""]
|
|
|
|
},
|
2022-04-22 22:02:11 +02:00
|
|
|
"on-click": "playerctl play-pause",
|
|
|
|
},
|
|
|
|
"battery": {
|
|
|
|
"states": {
|
|
|
|
"warning": 30,
|
|
|
|
"critical": 15
|
|
|
|
},
|
|
|
|
"format": "{capacity}% {icon}",
|
|
|
|
"format-charging": "{capacity}% ",
|
|
|
|
"format-plugged": "{capacity}% ",
|
|
|
|
"format-alt": "{time} {icon}",
|
|
|
|
// "format-good": "", // An empty format will hide the module
|
|
|
|
// "format-full": "",
|
|
|
|
"format-icons": ["", "", "", "", ""],
|
|
|
|
},
|
|
|
|
"clock": {
|
|
|
|
"timezone": "Europe/Brussels",
|
2022-05-09 21:46:56 +02:00
|
|
|
"format": "<big>{:%H:%M %d/%m/%Y}</big>", //"<big>{:%H:%M}</big>\n21-03-2022", //\n{:%d/%m/%Y}",
|
2022-04-22 22:02:11 +02:00
|
|
|
"format-alt": "{:%H:%M}",
|
|
|
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
|
|
|
},
|
|
|
|
"tray": {
|
|
|
|
// "icon-size": 21,
|
|
|
|
"spacing": 10,
|
2022-04-22 15:28:40 +02:00
|
|
|
},
|
|
|
|
},
|
2022-04-22 22:02:11 +02:00
|
|
|
|
2022-04-22 15:28:40 +02:00
|
|
|
{
|
|
|
|
"position": "top",
|
|
|
|
"height": 20,
|
|
|
|
"modules-left": ["sway/mode"],
|
|
|
|
"modules-center": ["sway/window"]
|
|
|
|
}]
|
|
|
|
|