dotfiles/.config/waybar/config
2024-01-30 15:30:25 +01:00

103 lines
2.7 KiB
Plaintext

{
"layer": "top",
"position": "top",
"modules-left": ["sway/workspaces", "sway/mode"],
"modules-center": [
"clock#1",
"clock#3",
"clock#2"
],
"modules-right": [
"disk",
"pulseaudio",
"battery",
"idle_inhibitor",
"custom/notification",
"tray"
],
"sway/workspaces": {
"disable-scroll": true,
"all-outputs": false,
"format": "{name}"
},
"sway/mode": {
"format": " {}",
"max-length": 50,
"tooltip": false
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"disk": {
"interval": 30,
"format": "{free} ",
"tooltip-format": "{used} von {total} in {path} verbraucht ({percentage_used}%)",
"tooltip": false,
"path": "/home"
},
"tray": {
"icon-size": 22,
"spacing": 10
},
"clock#1": {
"format": "{:%A}",
"tooltip": false
},
"clock#2": {
"format": "{:%H:%M}",
"tooltip": false
},
"clock#3": {
"format": "{:%d.%m.%Y}",
"tooltip": false
},
"battery": {
"states": {
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
"format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ",
"format-alt": "{time} {icon}",
"format-icons": ["", "", "", "", ""],
"tooltip": false
},
"pulseaudio": {
"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": ["", "", ""]
},
"on-click": "pavucontrol",
"tooltip": false
},
"custom/notification": {
"exec-if": "command -v makoctl",
"exec": "if [[ $(makoctl mode) == *\"dnd\"* ]]; then echo ; else echo ; fi",
"format": "{}",
"on-click": "if [[ $(makoctl mode) == *\"dnd\"* ]]; then makoctl mode -r dnd; else makoctl mode -a dnd; fi; pkill -SIGRTMIN+10 waybar",
"on-click-right": "makoctl dismiss -a",
"tooltip": false,
"signal": 10,
"interval": 1,
"exec-on-event": false
}
}