87 lines
2.7 KiB
Plaintext
87 lines
2.7 KiB
Plaintext
{
|
|
"height": 30, // Waybar height (to be removed for auto height)
|
|
"spacing": 4, // Gaps between modules (4px)
|
|
"layer":"top",
|
|
"modules-left": ["hyprland/workspaces"],
|
|
"modules-center": [],
|
|
"modules-right": ["group/audio", "idle_inhibitor", "group/system"],
|
|
"idle_inhibitor": {
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"activated": "",
|
|
"deactivated": ""
|
|
}
|
|
},
|
|
|
|
"group/audio":{
|
|
"orientation": "horizontal",
|
|
"modules":[
|
|
"custom/playerctl",
|
|
"pulseaudio"
|
|
]
|
|
},
|
|
"group/system":{
|
|
"orientation": "horizontal",
|
|
"modules":[
|
|
"clock",
|
|
"tray",
|
|
"custom/swaync"
|
|
]
|
|
},
|
|
"tray": {
|
|
// "icon-size": 21,
|
|
"spacing": 10
|
|
},
|
|
"clock": {
|
|
// "timezone": "America/New_York",
|
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
|
"format-alt": "{:%Y-%m-%d}"
|
|
},
|
|
"pulseaudio": {
|
|
"scroll-step": 5,
|
|
"format": "{volume}% {icon} {format_source}",
|
|
"format-muted": " {format_source}",
|
|
"format-source": "",
|
|
"format-source-muted": "",
|
|
"format-icons": {
|
|
"default": ["", "", ""]
|
|
},
|
|
"on-click-middle": "pavucontrol",
|
|
"on-click":"$XDG_CONFIG_HOME/waybar/mute-toggle.sh",
|
|
"tooltip":false,
|
|
"max-volume":150
|
|
},
|
|
"custom/playerctl": {
|
|
"format": "{}",
|
|
"on-click":"playerctl --player=spotify,%any play-pause",
|
|
"on-click-right":"playerctl --player=spotify,%any next",
|
|
"on-scroll-up":"playerctl --player=spotify,%any volume 0.05+",
|
|
"on-scroll-down":"playerctl --player=spotify,%any volume 0.05-",
|
|
"exec": "playerctl --player=spotify,%any -f '{{title}} - {{artist}}' metadata -F | sed -u 's/&/\\&/g' 2>/dev/null",
|
|
"max-length":50,
|
|
"tooltip":false
|
|
},
|
|
"custom/swaync":{
|
|
"tooltip": false,
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"notification": "<span foreground='red'><sup></sup></span>",
|
|
"none": "",
|
|
"dnd-notification": "<span foreground='red'><sup></sup></span>",
|
|
"dnd-none": "",
|
|
"inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
|
"inhibited-none": "",
|
|
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
|
"dnd-inhibited-none": ""
|
|
},
|
|
"return-type": "json",
|
|
"exec-if": "which swaync-client",
|
|
"exec": "swaync-client -swb",
|
|
"on-click": "swaync-client -t -sw",
|
|
"on-click-right": "swaync-client -d -sw",
|
|
"escape": true
|
|
}
|
|
}
|
|
|
|
// vim:set filetype=jsonc :
|