sisyphus/config/waybar-config

127 lines
3.2 KiB
Text
Raw Normal View History

2022-04-22 15:28:40 +02:00
//
// ~/.config/waybar/config
//
[{
2022-05-31 23:14:59 +02:00
"position": "top",
"height": 25,
2022-04-22 22:02:11 +02:00
"spacing": 4,
2022-05-31 23:14:59 +02:00
"margin": "-25px 0 0 0",
2022-04-22 15:28:40 +02:00
"modules-left": ["sway/workspaces", "custom/media"],
2022-05-31 23:14:59 +02:00
"modules-right": ["idle_inhibitor", "disk", "memory", "cpu", "temperature", "pulseaudio", "battery", "tray"],
2022-04-22 15:28:40 +02:00
2022-05-31 23:14:59 +02:00
"mode": "hide",
"ipc": true,
2022-04-22 15:28:40 +02:00
"sway/workspaces": {
2022-05-25 10:49:26 +02:00
"disable-scroll": true,
2022-04-22 15:28:40 +02:00
"all-outputs": true,
"format": "{icon}{name}",
"format-icons": {
2022-05-31 23:14:59 +02:00
"urgent": "\uf071 ",
2022-04-22 15:28:40 +02:00
"default": "" // Prevent showing workspace name literal.
2022-04-22 22:02:11 +02:00
},
},
"custom/media": {
2022-05-25 10:49:26 +02:00
"format": "{icon} {}",
"return-type": "json",
"max-length": 40,
"format-icons": {
2022-05-31 23:14:59 +02:00
"spotify": "\uf1bc",
"default": "\uf51f"
2022-05-25 10:49:26 +02:00
},
"escape": true,
"exec": "~/.config/waybar/mediaplayer.py 2> /dev/null", // Script in resources folder
2022-05-31 23:14:59 +02:00
"on-click": "playerctl play-pause",
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": {
2022-05-31 23:14:59 +02:00
"format": "{icon}",
2022-05-25 10:49:26 +02:00
"format-icons": {
2022-05-31 23:14:59 +02:00
"activated": "\uf06e",
"deactivated": "\uf070"
2022-04-22 15:28:40 +02:00
},
2022-04-22 22:02:11 +02:00
"tooltip": false,
2022-04-22 15:28:40 +02:00
},
2022-04-22 22:02:11 +02:00
"disk": {
2022-05-25 10:49:26 +02:00
"interval": 30,
2022-05-31 23:14:59 +02:00
"format": "{percentage_free}% ({free}) \uf0a0",
2022-05-25 10:49:26 +02:00
"path": "/",
2022-05-31 23:14:59 +02:00
"on-click": "alacritty -e ncdu /",
2022-05-25 10:49:26 +02:00
},
2022-05-31 23:14:59 +02:00
"memory": {
"format": "{}% \uf1c0",
"on-click": "alacritty -e htop",
},
"cpu": {
"format": "{usage}% \uf2db",
"tooltip": true,
"on-click": "alacritty -e htop",
},
2022-04-22 15:28:40 +02:00
"temperature": {
2022-05-25 10:49:26 +02:00
"critical-threshold": 70,
// "format-critical": "{temperatureC}°C {icon}",
"format": "{temperatureC}°C {icon}",
2022-05-31 23:14:59 +02:00
"format-icons": ["\uf2cb", "\uf2c9", "\uf2c7"],
2022-04-22 15:28:40 +02:00
},
"pulseaudio": {
2022-05-25 10:49:26 +02:00
"scroll-step": 2,
"format": "{volume}% {icon} {format_source}",
2022-05-31 23:14:59 +02:00
"format-bluetooth": "{volume}% {icon}\uf294 {format_source}",
"format-bluetooth-muted": "\uf6a9 {icon}\uf294 {format_source}",
"format-muted": "\uf6a9 {format_source}",
"format-source": "{volume}% \uf130",
"format-source-muted": "\uf131",
2022-05-25 10:49:26 +02:00
"format-icons": {
2022-05-31 23:14:59 +02:00
"headphone": "\uf58f",
"hands-free": "\uf590",
"headset": "\uf590",
"phone": "\uf3ce",
"portable": "\uf3ce",
"car": "\uf1b9",
"default": ["\uf026", "\uf027", "\uf028 "]
2022-04-22 15:28:40 +02:00
},
"on-click": "pavucontrol",
2022-04-22 22:02:11 +02:00
},
"battery": {
2022-05-25 10:49:26 +02:00
"states": {
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
"format-alt": "{time} {icon}",
2022-05-31 23:14:59 +02:00
"format-charging": "{capacity}% \uf0e7 {icon}",
"format-plugged": "{capacity}% \ue55c",
2022-05-25 10:49:26 +02:00
// "format-good": "", // An empty format will hide the module
// "format-full": "",
2022-05-31 23:14:59 +02:00
"format-icons": ["\uf244", "\uf243", "\uf242", "\uf241", "\uf240"],
2022-04-22 22:02:11 +02:00
},
"tray": {
// "icon-size": 21,
2022-05-25 10:49:26 +02:00
"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
{
2022-05-25 10:49:26 +02:00
"position": "top",
2022-05-31 23:14:59 +02:00
"height": 25,
2022-04-22 15:28:40 +02:00
"modules-left": ["sway/mode"],
2022-05-25 10:49:26 +02:00
"modules-center": ["sway/window"],
"modules-right": ["clock"],
2022-05-31 23:14:59 +02:00
"sway/window": {
"max-length": 85,
},
2022-05-25 10:49:26 +02:00
"clock": {
"timezone": "Europe/Brussels",
"format": "{:%H:%M}",
2022-05-31 23:14:59 +02:00
"format-alt": "{:%d/%m/%Y %H:%M}", //"<big>{:%H:%M}</big>\n21-03-2022", //\n{:%d/%m/%Y}",
2022-05-25 10:49:26 +02:00
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
},
2022-04-22 15:28:40 +02:00
}]