67 lines
2 KiB
Text
67 lines
2 KiB
Text
{
|
|
"ipc": true,
|
|
// "layer": "top", // Waybar at top layer
|
|
// "position": "bottom", // Waybar position (top|bottom|left|right)
|
|
"height": 32, // Waybar height (to be removed for auto height)
|
|
"modules-left": ["sway/workspaces", "sway/window", "sway/mode"],
|
|
"modules-center": ["custom/cmus"],
|
|
"modules-right": ["tray", "custom/stat", "battery", "clock"],
|
|
"custom/run": {
|
|
"format": "Run",
|
|
"on-click": "wofi --show drun -p Search -n -i -I -W 66% -H 66% -s $HOME/.config/wofi.css"
|
|
},
|
|
"sway/window": {
|
|
},
|
|
"sway/mode": {
|
|
"format": "<span>{}</span>"
|
|
},
|
|
"wlr/taskbar": {
|
|
"format": "{icon}",
|
|
"icon-theme": "Papirus",
|
|
"icon-size": 22,
|
|
"on-click": "minimize-raise",
|
|
},
|
|
"tray": {
|
|
"icon-theme": "Papirus",
|
|
"icon-size": 22,
|
|
"spacing": 16
|
|
},
|
|
"clock": {
|
|
"tooltip-format": "{:%Y %B}",
|
|
"format-alt": "{:%Y-%m-%d}",
|
|
"tooltip": false
|
|
},
|
|
"pulseaudio": {
|
|
// "scroll-step": 1,
|
|
"format": "Vol {volume}%",
|
|
"format-bluetooth": " {volume}%",
|
|
"format-bluetooth-muted": " Silent",
|
|
"format-muted": "Silent",
|
|
"format-source": "Vol {volume}%",
|
|
"format-source-muted": "Silent",
|
|
"on-click": "pavucontrol"
|
|
},
|
|
"battery": {
|
|
"format": " {capacity}%",
|
|
"format-charging": " {capacity}%",
|
|
"format-plugged": " {capacity}%",
|
|
"format-full": " {capacity}%"
|
|
},
|
|
"custom/cmus": {
|
|
"interval": 1,
|
|
"max-length": 40,
|
|
"exec": "now-playing.sh",
|
|
"on-click": "playerctl play-pause",
|
|
"on-click-right": "playerctl stop",
|
|
"on-scroll-up": "playerctl next",
|
|
"on-scroll-down": "playerctl previous",
|
|
"escape": true
|
|
},
|
|
"custom/stat": {
|
|
"format": "{}",
|
|
"max-length": 20,
|
|
"interval": 0,
|
|
"exec": "reform-compstat -d 1 -i 0.3",
|
|
"on-click": "gnome-system-monitor"
|
|
},
|
|
}
|