2022-11-29 16:13:45 +00:00
|
|
|
[{
|
2021-11-20 19:52:12 +00:00
|
|
|
"layer": "top",
|
|
|
|
"output": "eDP-1",
|
2022-02-06 14:43:56 +00:00
|
|
|
"height": 30,
|
2024-02-10 21:12:38 +00:00
|
|
|
"modules-left": ["sway/mode","sway/window" ],
|
|
|
|
"modules-center": ["sway/workspaces" ],
|
2021-11-20 19:52:12 +00:00
|
|
|
"modules-right": ["pulseaudio", "battery", "tray", "clock"],
|
|
|
|
"sway/window": {
|
|
|
|
"max-length": 50
|
|
|
|
},
|
|
|
|
"sway/workspaces": {
|
2022-02-06 14:43:56 +00:00
|
|
|
"all-outputs": true
|
2021-11-20 19:52:12 +00:00
|
|
|
},
|
|
|
|
"battery": {
|
|
|
|
"states": {
|
|
|
|
// "good": 95,
|
|
|
|
"warning": 20,
|
|
|
|
"critical": 10
|
|
|
|
},
|
|
|
|
"format": "{capacity}% {icon}",
|
|
|
|
"format-charging": "{capacity}% ",
|
|
|
|
"format-plugged": "{capacity}% ",
|
|
|
|
"format-alt": "{time} {icon}",
|
|
|
|
// "format-good": "", // An empty format will hide the module
|
|
|
|
// "format-full": "",
|
|
|
|
"format-icons": ["", "", "", "", ""]
|
|
|
|
},
|
|
|
|
"clock": {
|
2022-02-06 14:43:56 +00:00
|
|
|
"format": "{:%a, %d. %b %H:%M}",
|
|
|
|
"on-click": "gnome-calendar"
|
2021-11-20 19:52:12 +00:00
|
|
|
},
|
|
|
|
"pulseaudio": {
|
|
|
|
// "scroll-step": 1, // %, can be a float
|
|
|
|
"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": {
|
|
|
|
"headphone": "",
|
|
|
|
"hands-free": "",
|
|
|
|
"headset": "",
|
|
|
|
"phone": "",
|
|
|
|
"portable": "",
|
|
|
|
"car": "",
|
|
|
|
"default": ["", "", ""]
|
|
|
|
},
|
|
|
|
"on-click": "pavucontrol"
|
|
|
|
},
|
2022-02-06 14:43:56 +00:00
|
|
|
"tray": {
|
|
|
|
"icon-size": 21,
|
|
|
|
"spacing": 10,
|
|
|
|
}
|
|
|
|
},
|
2022-11-29 16:13:45 +00:00
|
|
|
{
|
|
|
|
"layer": "bottom",
|
|
|
|
"position": "bottom",
|
|
|
|
"output": "DP-2",
|
|
|
|
"height": 30,
|
|
|
|
"modules-left": ["sway/workspaces", "sway/mode"],
|
|
|
|
"modules-center": ["sway/window"],
|
|
|
|
"modules-right": ["pulseaudio", "battery", "tray", "clock"],
|
|
|
|
"sway/window": {
|
|
|
|
"max-length": 50
|
|
|
|
},
|
|
|
|
"sway/workspaces": {
|
|
|
|
"all-outputs": true
|
|
|
|
},
|
|
|
|
"battery": {
|
|
|
|
"states": {
|
|
|
|
// "good": 95,
|
|
|
|
"warning": 20,
|
|
|
|
"critical": 10
|
|
|
|
},
|
|
|
|
"format": "{capacity}% {icon}",
|
|
|
|
"format-charging": "{capacity}% ",
|
|
|
|
"format-plugged": "{capacity}% ",
|
|
|
|
"format-alt": "{time} {icon}",
|
|
|
|
// "format-good": "", // An empty format will hide the module
|
|
|
|
// "format-full": "",
|
|
|
|
"format-icons": ["", "", "", "", ""]
|
|
|
|
},
|
|
|
|
"clock": {
|
|
|
|
"format": "{:%a, %d. %b %H:%M}",
|
|
|
|
"on-click": "gnome-calendar"
|
|
|
|
},
|
|
|
|
"pulseaudio": {
|
|
|
|
// "scroll-step": 1, // %, can be a float
|
|
|
|
"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": {
|
|
|
|
"headphone": "",
|
|
|
|
"hands-free": "",
|
|
|
|
"headset": "",
|
|
|
|
"phone": "",
|
|
|
|
"portable": "",
|
|
|
|
"car": "",
|
|
|
|
"default": ["", "", ""]
|
|
|
|
},
|
|
|
|
"on-click": "pavucontrol"
|
|
|
|
},
|
|
|
|
"tray": {
|
|
|
|
"icon-size": 21,
|
|
|
|
"spacing": 10,
|
|
|
|
}
|
|
|
|
}]
|