// vim:ft=javascript: { "layer": "top", "position": "top", "height": 30, "modules-left": ["sway/workspaces", "sway/mode", "sway/window"], "modules-center": ["clock"], "modules-right": ["tray", "disk", "idle_inhibitor", "pulseaudio", "network", "battery"], "sway/workspaces": { "persistent_workspaces": { "1": [], "2": [], "3": [], "4": [] }, "format-default": "{name}", "format": "{icon}", "format-icons": { // "1": "", // "2": "", // "3": "", // "4": "" //"urgent": "", //"focused": "", //"default": "" }, "disable-scroll": true, "all-outputs": false }, "sway/window": { "format": "{}", "max-length": 60, "tooltip": false }, "tray": { "icon-size": 20, "spacing": 10 }, "clock": { "tooltip": false, "locale": "ja_JP.UTF-8", "format": "{:%Y年%m月%d日 (%a) %H:%M}" }, "disk": { "format": "{free}" }, "battery": { "bat": "BAT0", "states": { "full": 100, "good": 95, "warning": 30, "critical": 15 }, "interval": 60, "format": "{capacity}% {icon}", // "format": "{capacity}% {time} {icon}", "format-time": "{H}:{M:02}", //"format-good": "", // An empty format will hide the module //"format-full": "", "format-icons": ["", "", "", "", ""] }, "network": { // "interface": "wlp2s0", // (Optional) To force the use of this interface "format-wifi": "{essid} ({signalStrength:02}%) ", "format-ethernet": "{ifname} ", "format-disconnected": "", //An empty format will hide the module. "tooltip-format-wifi": "{essid} {ipaddr} ({signalStrength}%) " }, "pulseaudio": { "format": "{volume}% {icon}", "format-bluetooth": "{volume}% {icon}", "format-muted": "", "on-click": "pavucontrol", "format-icons": { "headphones": "", "handsfree": "", "headset": "", "phone": "", "portable": "", "car": "", "default": ["", ""] } }, "idle_inhibitor": { "format": "{icon}", "format-icons": { "activated": "", "deactivated": "" } } }