101 lines
3 KiB
Plaintext
101 lines
3 KiB
Plaintext
{
|
|
"layer": "top",
|
|
"position": "top",
|
|
"height": 30,
|
|
|
|
"modules-left": [ "custom/notification", "sway/workspaces", "sway/mode", "sway/window"],
|
|
"modules-center": [],
|
|
"modules-right": ["custom/cmus", "idle_inhibitor", "network", "pulseaudio", "battery", "clock", "custom/themer"],
|
|
|
|
|
|
"sway/workspaces": {
|
|
"disable-scroll": true,
|
|
"all-outputs": true
|
|
},
|
|
|
|
"sway/mode": {
|
|
"format": "<span style=\"italic\">{}</span>"
|
|
},
|
|
"sway/window":{
|
|
"icon": false
|
|
},
|
|
"idle_inhibitor": {
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"activated": "",
|
|
"deactivated": ""
|
|
}
|
|
},
|
|
"clock": {
|
|
"interval": 1,
|
|
"format": "{:%T}",
|
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
|
"format-alt": "{:%T %d-%m-%Y}"
|
|
},
|
|
"battery": {
|
|
"states": {
|
|
"warning": 20,
|
|
"critical": 10
|
|
},
|
|
"format": "{capacity}% {icon}",
|
|
"format-charging": "{capacity}% ",
|
|
"format-plugged": "{capacity}% ",
|
|
"format-alt": "{time} {icon}",
|
|
"format-icons": ["", "", "", "", ""]
|
|
},
|
|
|
|
"network": {
|
|
"format-wifi": "{essid} ({signalStrength}%) ",
|
|
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
|
|
"format-linked": "{ifname} (No IP) ",
|
|
"format-disconnected": "Disconnected ⚠",
|
|
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
|
},
|
|
"pulseaudio": {
|
|
"format": "{volume}% {icon} {format_source}",
|
|
|
|
"format-bluetooth": "{volume}% {icon} {format_source}",
|
|
"format-bluetooth-muted": "{icon} {format_source}",
|
|
|
|
"format-muted": "{format_source}",
|
|
"format-source": "{volume}% ",
|
|
"format-source-muted": "",
|
|
|
|
"format-icons": {
|
|
"default": ["", "", "", ""]
|
|
},
|
|
"on-click": "pavucontrol"
|
|
},
|
|
"custom/cmus": {
|
|
"format": "♪ {}",
|
|
"interval": 1,
|
|
"exec": "cmus-remote -C \"format_print '%a - %t'\"",
|
|
"exec-if": "pgrep cmus",
|
|
"on-click": "cmus-remote --pause",
|
|
"on-click-right": "cmus-remote --next",
|
|
"escape": true
|
|
},
|
|
"custom/themer": {
|
|
"format": " ",
|
|
"interval": 1,
|
|
"on-click": "exec ~/.config/sway/colors.sh",
|
|
"on-click-right": "exec ~/.config/sway/colors.sh"
|
|
},
|
|
"custom/notification": {
|
|
"tooltip": false,
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"notification": "<span foreground='red'><sup></sup></span>",
|
|
"none": "",
|
|
"dnd-notification": "<span foreground='red'><sup></sup></span>",
|
|
"dnd-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
|
|
},
|
|
}
|