dotfiles-remastered/.config/waybar/config

85 lines
2.7 KiB
Plaintext
Raw Permalink Normal View History

2023-05-05 13:35:28 +00:00
{
"height": 30, // Waybar height (to be removed for auto height)
"spacing": 4, // Gaps between modules (4px)
"layer":"top",
2023-09-14 13:44:31 +00:00
"modules-left": ["hyprland/workspaces"],
2023-05-05 13:35:28 +00:00
"modules-center": [],
2023-10-26 18:57:09 +00:00
"modules-right": ["group/audio", "idle_inhibitor", "group/system"],
2023-05-05 13:35:28 +00:00
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
2023-10-26 18:57:09 +00:00
"group/audio":{
"orientation": "horizontal",
"modules":[
"custom/playerctl",
"pulseaudio"
]
},
"group/system":{
"orientation": "horizontal",
"modules":[
"clock",
"tray",
2023-12-01 23:00:56 +00:00
"custom/swaync" ]
2023-10-26 18:57:09 +00:00
},
2023-05-05 13:35:28 +00:00
"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-",
2023-10-26 18:57:09 +00:00
"exec": "playerctl --player=spotify,%any -f '{{title}} - {{artist}}' metadata -F | sed -u 's/&/\\&amp;/g' 2>/dev/null",
2023-05-05 13:35:28 +00:00
"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",
2023-12-01 23:00:56 +00:00
"on-click-right": "swaync-client -d -sw"
2023-05-05 13:35:28 +00:00
}
}
// vim:set filetype=jsonc :