| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238 |
- {
- "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/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": "{icon} {capacity}% ",
- "format-discharging": "{icon} {capacity}%",
- "format-charging": "{icon}",
- "format-plugged": "",
- "format-icons": {
- "charging": [
- ""
- ],
- "default": [
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- ""
- ]
- },
- "format-full": " {capacity}%",
- "tooltip-format-discharging": "{power:>1.0f}W↓ {capacity}% - {time} remaining",
- "tooltip-format-charging": "{power:>1.0f}W↑ {capacity}% - {time} until full",
- "interval": 5,
- "states": {
- "warning": 20,
- "critical": 10
- }
- },
- "pulseaudio": {
- "format": "{icon} {volume}%",
- "on-click": "pavucontrol",
- "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"
- }
- }
|