dotfiles/.config/waybar/config

103 lines
2.7 KiB
Text
Raw Normal View History

2020-09-15 05:33:42 +02:00
{
"layer": "top",
"position": "top",
2022-11-06 18:50:53 +01:00
"modules-left": ["sway/workspaces", "sway/mode"],
2020-09-15 05:33:42 +02:00
"modules-center": [
"clock#1",
"clock#3",
2022-11-06 18:50:53 +01:00
"clock#2"
2020-09-15 05:33:42 +02:00
],
"modules-right": [
"disk",
"pulseaudio",
"battery",
2020-09-19 00:47:47 +02:00
"idle_inhibitor",
2024-01-30 15:30:25 +01:00
"custom/notification",
2020-09-15 05:51:19 +02:00
"tray"
],
"sway/workspaces": {
"disable-scroll": true,
"all-outputs": false,
"format": "{name}"
},
"sway/mode": {
"format": " {}",
"max-length": 50,
"tooltip": false
},
2020-09-15 05:51:19 +02:00
2020-09-19 00:47:47 +02:00
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
2020-09-15 05:33:42 +02:00
"disk": {
"interval": 30,
"format": "{free} ",
"tooltip-format": "{used} von {total} in {path} verbraucht ({percentage_used}%)",
"tooltip": false,
"path": "/home"
},
"tray": {
2020-09-15 05:51:19 +02:00
"icon-size": 22,
2020-09-15 05:33:42 +02:00
"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
2024-01-30 15:30:25 +01:00
},
"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
2020-09-15 05:33:42 +02:00
}
}