Files
dotfiles/.config/waybar/config.jsonc
2025-08-03 13:16:51 +02:00

120 lines
2.9 KiB
JSON

{
"layer": "top",
"output": "DP-2",
"modules-left": [
"custom/power",
"hyprland/workspaces",
"custom/spotify"
],
"modules-center": [
"clock"
],
"modules-right": [
"privacy",
"custom/coffee",
"pulseaudio",
"cpu",
"memory",
"bluetooth",
// "network",
"custom/wireguard"
],
"custom/power": {
"format": "⏻",
"tooltip": false,
"on-click": "hyprctl dispatch exec 'wlogout -b 6 -L 1100 -R 1100 -T 650 -B 650'"
},
"custom/coffee": {
"exec": "/usr/bin/python3 /home/paul/.config/waybar/scripts/coffee.py",
"format": "{}",
"return-type": "json",
"interval": 1,
"on-click": "pidof hypridle >/dev/null && killall hypridle || hyprctl dispatch exec hypridle"
},
"hyprland/workspaces": {
"format": "{name}",
"tooltip": false,
"all-outputs": true,
"on-click": "none"
},
"clock": {
"format": "{0:%b, %d %H:%M:%S}",
"interval": 1,
"tooltip": true,
"tooltip-format": "{0:%A, %d.%m.%Y W%V}"
},
"custom/spotify": {
"exec": "/usr/bin/python3 /home/paul/downloads/repos/Waybar/resources/custom_modules/mediaplayer.py",
"format": "{}",
"return-type": "json",
"on-click": "playerctl play-pause",
"on-scroll-up": "playerctl next",
"on-scroll-down": "playerctl previous"
},
"privacy": {
"icon-spacing": 4,
"icon-size": 12,
"transition-duration": 250,
"modules": [
{
"type": "screenshare",
"tooltip": true,
"tooltip-icon-size": 24
},
{
"type": "audio-in",
"tooltip": true,
"tooltip-icon-size": 24
}
]
},
"cpu": {
"format": " {usage}%",
"interval": 5,
"on-click": "hyprctl dispatch exec 'resources -t cpu'"
},
"memory": {
"format": " {percentage}% ({used}G)",
"interval": 5,
"on-click": "hyprctl dispatch exec 'resources -t memory'"
},
"pulseaudio": {
"format": "{icon} {volume}%",
"format-muted": "",
"tooltip": false,
"format-icons": {
"headphone": "",
"default": [
"",
"",
"󰕾",
"󰕾",
"󰕾",
"",
"",
""
]
},
"scroll-step": 1,
"on-click": "pavucontrol"
},
"bluetooth": {
"format": " {status}",
"format-disabled": "", // an empty format will hide the module
"format-connected": " {num_connections}",
"tooltip-format": "{device_enumerate}",
"tooltip-format-enumerate-connected": "{device_alias} {device_address}",
"on-click": "hyprctl dispatch exec overskride"
},
// "network": {
// "format": " {ifname}",
// "format-ethernet": " {ipaddr}/{cidr}",
// "tooltip": false,
// },
"custom/wireguard": {
"exec": "/usr/bin/python3 /home/paul/.config/waybar/scripts/wireguard.py wasteside",
"format": "󰒄 {}",
"return-type": "json",
"interval": 5
}
}