// vi: ft=json5 { "layer": "top", "position": "top", "height": 36, "modules-left": ["idle_inhibitor", "sway/workspaces", "custom/usb", "sway/mode"], "modules-center": ["clock"], "modules-right": ["network", "pulseaudio", "backlight", "cpu", "memory", "battery", "tray"], "sway/workspaces": { "disable-scroll": true }, "sway/window": { "max-length": 64 }, "sway/mode": { "format": "{}" }, "idle_inhibitor": { "format": "{icon}", "format-icons": { "activated": "\uf06e", // eye "deactivated": "\uf070" // eye-slash }, "tooltip": false }, "tray": { "icon-size": 14, "spacing": 8 }, "clock": { "timezone": "Europe/Copenhagen", "tooltip-format": "{:%Y %B}\n{calendar}", "format": "{:\uf783 %b %d %Y \uf017 %T}", // calendar-day, clock "interval": 1 }, "cpu": { "format": "\uf2db {usage}%", // microchip "tooltip": true }, "memory": { "format": "\uf538 {}%" }, "battery": { "states": { "good": 95, "warning": 20, "critical": 10 }, "format": "{icon} {capacity}%", "format-charging": "\uf5e7 {capacity}%", // charging-station "format-plugged": "\uf1e6 {capacity}%", // plug "format-alt": "{icon} {time}", "format-icons": ["\uf244", "\uf243", "\uf242", "\uf241", "\uf240"] // battery-empty, battery-quarter, battery-half, battery-three-quarters, battery-full }, "network": { "format-wifi": " {essid} ({signalStrength}%)", "format-ethernet": " {ifname}: {ipaddr}/{cidr}", "format-linked": " {ifname} (No IP)", "format-disconnected": "\uf071 Disconnected" // exclamation-triangle }, "pulseaudio": { "scroll-step": 2, // %, can be a float "format": "{icon} {volume}% {format_source}", "format-bluetooth": "{icon} {volume}% {format_source}", "format-bluetooth-muted": "{icon}  {format_source}", "format-muted": " {format_source}", "format-source": " {volume}%", "format-source-muted": "", "format-icons": { "headphone": "", "hands-free": "", "headset": "", "phone": "", "portable": "", "car": "", "default": ["", "", ""] }, "on-click": "/usr/bin/pavucontrol" }, "backlight": { "format": "{icon} {percent}%", "format-icons": ["", "", "", "", "", "", "", "", ""] }, "custom/usb": { "format": "{} USB", "exec": "usb-status.sh", "return-type": "json", "interval": 1, "on-click": "usb-unlock.sh", "on-click-right": "usb-unlock.sh --permanent" } }