248 lines
6 KiB
JSON
248 lines
6 KiB
JSON
{
|
|
"layer": "top",
|
|
"position": "top",
|
|
"mod": "dock",
|
|
"exclusive": true,
|
|
"passthrough": false,
|
|
"border-radius": 10,
|
|
"gtk-layer-shell": true,
|
|
"height": 36,
|
|
"margin": "5 10 0 10",
|
|
// Workspace and Window Management
|
|
"sway/workspaces": {
|
|
"disable-scroll": true,
|
|
"format": "{name} {icon}",
|
|
"format-icons": {
|
|
"1": "",
|
|
"2": "",
|
|
"3": "",
|
|
"urgent": "",
|
|
"active": "",
|
|
"default": ""
|
|
},
|
|
"sort-by-number": true
|
|
},
|
|
"sway/window": {
|
|
"format": "{}",
|
|
"max-length": 50,
|
|
"rewrite": {
|
|
"(.*) - Mozilla Firefox": "🌎 $1",
|
|
"(.*) - zsh": "> [$1]"
|
|
}
|
|
},
|
|
// System Tray
|
|
"tray": {
|
|
"icon-size": 18,
|
|
"spacing": 5
|
|
},
|
|
"group/tray-expander": {
|
|
"orientation": "inherit",
|
|
"drawer": {
|
|
"transition-duration": 600,
|
|
"children-class": "tray-group-item"
|
|
},
|
|
"modules": [
|
|
"custom/expand-icon",
|
|
"tray",
|
|
"custom/notification"
|
|
]
|
|
},
|
|
"custom/expand-icon": {
|
|
"format": " ",
|
|
"tooltip": false
|
|
},
|
|
// Date and Time
|
|
"clock": {
|
|
"format": "{:%H:%M %Z}",
|
|
"interval": 60,
|
|
"format-alt": "{:%d/%m/%Y}",
|
|
"tooltip-format": "<small><tt>{calendar}</tt></small>",
|
|
"timezones": [
|
|
"America/Montevideo",
|
|
"America/New_York"
|
|
],
|
|
"actions": {
|
|
"on-click-right": "mode",
|
|
"on-scroll-up": "tz_up",
|
|
"on-scroll-down": "tz_down"
|
|
},
|
|
"calendar": {
|
|
"mode": "year",
|
|
"mode-mon-col": 3,
|
|
"weeks-pos": "right",
|
|
"on-scroll": 1,
|
|
"format": {
|
|
"months": "<span color='#ffead3'><b>{}</b></span>",
|
|
"days": "<span color='#ecc6d9'><b>{}</b></span>",
|
|
"weeks": "<span color='#99ffdd'><b>W{}</b></span>",
|
|
"weekdays": "<span color='#ffcc66'><b>{}</b></span>",
|
|
"today": "<span color='#ff6699'><b><u>{}</u></b></span>"
|
|
}
|
|
}
|
|
},
|
|
// Hardware Controls
|
|
"backlight": {
|
|
"device": "intel_backlight",
|
|
"format": "{icon} {percent}%",
|
|
"format-icons": [
|
|
"",
|
|
"",
|
|
""
|
|
],
|
|
"on-scroll-up": "brightnessctl set 1%+",
|
|
"on-scroll-down": "brightnessctl set 1%-",
|
|
"scroll-step": 0.2,
|
|
"min-length": 6
|
|
},
|
|
"temperature": {
|
|
"thermal-zone": 1,
|
|
"format": " {temperatureC}°C",
|
|
"critical-threshold": 80,
|
|
"format-critical": "{temperatureC}°C "
|
|
},
|
|
"cpu": {
|
|
"interval": 10,
|
|
"format": " {}%",
|
|
"max-length": 10
|
|
},
|
|
"memory": {
|
|
"interval": 30,
|
|
"format": " {used:0.1f}/{total:0.1f} GiB"
|
|
},
|
|
"disk": {
|
|
"interval": 30,
|
|
"format": " {used}/{total}",
|
|
"unit": "GiB",
|
|
"path": "/home"
|
|
},
|
|
"battery": {
|
|
"format": "{capacity}% {icon}",
|
|
"format-discharging": "{icon}",
|
|
"format-charging": "{icon}",
|
|
"format-plugged": "",
|
|
"format-icons": {
|
|
"charging": [
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
""
|
|
],
|
|
"default": [
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
""
|
|
]
|
|
},
|
|
"format-full": "",
|
|
"tooltip-format-discharging": "{power:>1.0f}W↓ {capacity}%",
|
|
"tooltip-format-charging": "{power:>1.0f}W↑ {capacity}%",
|
|
"interval": 5,
|
|
"states": {
|
|
"warning": 20,
|
|
"critical": 10
|
|
}
|
|
},
|
|
"pulseaudio": {
|
|
"format": "{icon}",
|
|
"on-click": "$TERMINAL --class=Wiremix -e wiremix",
|
|
"on-click-right": "pamixer -t",
|
|
"tooltip-format": "Playing at {volume}%",
|
|
"scroll-step": 5,
|
|
"format-muted": "",
|
|
"format-icons": {
|
|
"default": [
|
|
"",
|
|
"",
|
|
""
|
|
]
|
|
}
|
|
},
|
|
// Network and Connectivity
|
|
"network": {
|
|
"format-wifi": " {signalStrength}%",
|
|
"format-ethernet": "{ipaddr}/{cidr}",
|
|
"tooltip-format": "{essid} - {ifname} via {gwaddr}",
|
|
"format-linked": "{ifname} (No IP)",
|
|
"format-disconnected": "Disconnected",
|
|
"format-alt": "{ifname}:{essid} {ipaddr}/{cidr}"
|
|
},
|
|
"bluetooth": {
|
|
"format": " {status}",
|
|
"format-disabled": " off",
|
|
"format-connected": " {num_connections}",
|
|
"tooltip-format": "{device_alias}",
|
|
"tooltip-format-connected": " {device_enumerate}",
|
|
"tooltip-format-enumerate-connected": "{device_alias}",
|
|
"on-click": "bluetoothctl toggle"
|
|
},
|
|
// Media Controls
|
|
"custom/playerctl": {
|
|
"format": "{icon}",
|
|
"return-type": "json",
|
|
"max-length": 64,
|
|
"exec": "playerctl -a metadata --format '{\"text\": \"{{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F",
|
|
"on-click-middle": "playerctl play-pause",
|
|
"on-click": "playerctl play-pause",
|
|
"on-click-right": "playerctl play-pause",
|
|
"format-icons": {
|
|
"Playing": "<span foreground='#E5B9C6'></span>",
|
|
"Paused": "<span foreground='#928374'></span>"
|
|
}
|
|
},
|
|
"custom/playerlabel": {
|
|
"format": "<span>{}</span>",
|
|
"return-type": "json",
|
|
"max-length": 48,
|
|
"exec": "playerctl -a metadata --format '{\"text\": \"{{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F",
|
|
"on-click": "playerctl previous",
|
|
"on-click-right": "playerctl next",
|
|
"format-icons": {
|
|
"Playing": "<span foreground='#E5B9C6'> </span>",
|
|
"Paused": "<span foreground='#928374'> </span>"
|
|
}
|
|
},
|
|
"custom/screenrecording-indicator": {
|
|
"on-click": "~/.local/bin/record.sh",
|
|
"exec": "~/.config/waybar/indicators/screen-recording.sh",
|
|
"signal": 8,
|
|
"return-type": "json"
|
|
},
|
|
"custom/notification": {
|
|
"tooltip": false,
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"notification": "<span foreground='red'><sup></sup></span>",
|
|
"none": "",
|
|
"inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
|
"inhibited-none": "",
|
|
"dnd-notification": "<span foreground='red'><sup></sup></span>",
|
|
"dnd-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
|
|
},
|
|
"custom/randwall": {
|
|
"format": "",
|
|
"on-click": "$HOME/.local/bin/randwall",
|
|
"on-click-right": "$HOME/.local/bin/randwall"
|
|
}
|
|
}
|