121 lines
3.5 KiB
Text
121 lines
3.5 KiB
Text
{
|
|
"layer": "top",
|
|
"position": "top",
|
|
"height": 28,
|
|
"modules-left": ["sway/workspaces", "sway/mode"],
|
|
"modules-center": ["clock#1"],
|
|
"modules-right": ["mpd", "pulseaudio", "network", "cpu", "memory", "backlight", "battery", "disk#root", "idle_inhibitor", "clock#2", "tray"],
|
|
"sway/workspaces": {
|
|
"disable-scroll": true,
|
|
"format": "{name}"
|
|
},
|
|
"sway/window": {
|
|
"max-length": 100
|
|
},
|
|
"sway/mode": {
|
|
"format": "<span style=\"italic\">{}</span>"
|
|
},
|
|
"mpd": {
|
|
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ ",
|
|
"format-disconnected": "Disconnected ",
|
|
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
|
|
"unknown-tag": "N/A",
|
|
"interval": 2,
|
|
"consume-icons": {
|
|
"on": " "
|
|
},
|
|
"random-icons": {
|
|
"off": "<span color=\"#f53c3c\"></span> ",
|
|
"on": " "
|
|
},
|
|
"repeat-icons": {
|
|
"on": " "
|
|
},
|
|
"single-icons": {
|
|
"on": "1 "
|
|
},
|
|
"state-icons": {
|
|
"paused": "",
|
|
"playing": ""
|
|
},
|
|
"tooltip-format": "MPD (Connected)",
|
|
"tooltip-format-disconnected": "MPD (Disconnected)"
|
|
},
|
|
"pulseaudio": {
|
|
"scroll-step": 2,
|
|
"format": "{icon} {volume}%",
|
|
"format-bluetooth": "{icon} {volume}%",
|
|
"format-muted": "",
|
|
"format-icons": {
|
|
"headphones": "",
|
|
"handsfree": "",
|
|
"headset": "",
|
|
"phone": "",
|
|
"portable": "",
|
|
"car": "",
|
|
"default": ["", "", ""]
|
|
},
|
|
"on-click": "pavucontrol"
|
|
},
|
|
"network": {
|
|
"format-wifi": "{essid} ({signalStrength}%) ",
|
|
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
|
|
"format-linked": "{ifname} (No IP) ",
|
|
"format-disconnected": "Disconnected ⚠",
|
|
"format-alt": "{ifname}: {ipaddr}/{cidr}",
|
|
"on-click": "nm-connection-editor"
|
|
},
|
|
"backlight": {
|
|
"format": "{icon} {percent}%",
|
|
"on-scroll-up": "brightnessctl set +5%",
|
|
"on-scroll-down": "brightnessctl set 5%-",
|
|
"format-icons": ["", ""]
|
|
},
|
|
"cpu": {
|
|
"format": " {load}%",
|
|
"on-click": "alacritty -e htop"
|
|
},
|
|
"memory": {
|
|
"format": " {}%",
|
|
"on-click": "alacritty -e htop"
|
|
},
|
|
"disk#root": {
|
|
"interval": 30,
|
|
"format": " {percentage_used}%",
|
|
"path": "/",
|
|
"tooltip": true
|
|
},
|
|
"battery": {
|
|
"interval": 10,
|
|
"states": {
|
|
"full": 100,
|
|
"not-full": 99,
|
|
"warning": 30,
|
|
"critical": 15
|
|
},
|
|
"format": "{icon} {capacity}%",
|
|
"format-charging": "{capacity}% ",
|
|
"format-plugged": "{capacity}% ",
|
|
"format-alt": "{time} {icon}",
|
|
"format-icons": ["", "", "", "", ""]
|
|
},
|
|
"idle_inhibitor": {
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"activated": "",
|
|
"deactivated": ""
|
|
}
|
|
},
|
|
"clock#1": {
|
|
"interval": 1,
|
|
"format": "{:%H:%M:%S}"
|
|
},
|
|
"clock#2": {
|
|
"interval": 1,
|
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
|
"format": "{:%Y-%m-%d}"
|
|
},
|
|
"tray": {
|
|
"spacing": 10
|
|
},
|
|
}
|