{ "modules-left": ["sway/workspaces", "sway/mode"], "modules-center": ["clock"], /* "modules-right": ["tray", "custom/scratchpad-indicator", "pulseaudio", "custom/power"], */ "modules-right": ["tray", "custom/scratchpad-indicator", "network","battery","pulseaudio", "custom/power"], "sway/mode": { "format": "{}" }, "network": { //"format-wifi": "{essid} ({signalStrength}%) ", "format-wifi": "", "format-ethernet": "{ifname} ", "format-disconnected": "", "max-length": 50, "on-click": "kitty -e 'nmtui'" }, "battery": { "states": { "good": 95, "warning": 30, "critical": 15 }, "format": "{capacity}% {icon} ", "format-icons": [ "", "", "", "", "" ] }, "idle_inhibitor": { "format": "{icon}", "format-icons": { "activated": "", "deactivated": "" }, "on-click": "toggleRemote" }, "tray": { "icon-size": 15, "spacing": 10 }, "clock": { // "tooltip-format": "{:%Y %B}\n{calendar}", // "format-alt": "{:%Y-%m-%d}" "on-click": "gnome-calendar" }, "pulseaudio": { "format": "{volume}% {icon} ", "format-bluetooth": "{volume}% {icon} {format_source}", "format-bluetooth-muted": " {icon} {format_source}", "format-muted": "0% {icon} ", "format-source": "{volume}% ", "format-source-muted": "", "format-icons": { "headphone": "", "hands-free": "", "headset": "", "phone": "", "portable": "", "car": "", "default": ["", "", ""] }, "on-click": "pavucontrol" }, "custom/power": { "format": " ", "on-click": "swaynag -t warning -m 'Power Menu Options' -b 'Logout' 'swaymsg exit' -b 'Restart' 'shutdown -r now' -b 'Shutdown' 'shutdown -h now' --background=#C71585 --button-background=#C71585 --button-border=#C71585 --border-bottom=#C71585 --button-text=#FFFFFF --text=#FFFFFF" }, "custom/scratchpad-indicator": { "format-text": "{}", "return-type": "json", "interval": 3, "exec": "~/.local/bin/scratchpad-indicator 2> /dev/null", "exec-if": "exit 0", "on-click": "swaymsg 'scratchpad show'", "on-click-right": "swaymsg 'move scratchpad'" } }