2023-11-23 18:48:31 +01:00
|
|
|
{
|
|
|
|
"layer": "top",
|
|
|
|
"position": "bottom",
|
2023-11-23 19:00:42 +01:00
|
|
|
"spacing": 5,
|
2023-11-23 18:48:31 +01:00
|
|
|
|
2023-11-24 17:19:36 +01:00
|
|
|
"modules-left": ["sway/workspaces", "sway/mode", "sway/window"],
|
2023-11-23 18:48:31 +01:00
|
|
|
"modules-center": ["clock"],
|
|
|
|
"modules-right": ["mpris", "idle_inhibitor", "battery", "tray"],
|
|
|
|
|
2023-11-23 18:58:28 +01:00
|
|
|
"sway/workspaces": {
|
2023-11-23 18:48:31 +01:00
|
|
|
"format": "{name}: {icon}",
|
|
|
|
"format-icons": {
|
|
|
|
"urgent": "",
|
2023-11-23 19:54:45 +01:00
|
|
|
"focused": "",
|
2023-11-23 18:48:31 +01:00
|
|
|
"default": ""
|
|
|
|
},
|
2023-11-23 18:59:58 +01:00
|
|
|
"sort-by-number": true,
|
2023-11-23 19:22:02 +01:00
|
|
|
"spacing": 2,
|
|
|
|
"disable-scroll": true
|
2023-11-23 18:48:31 +01:00
|
|
|
},
|
|
|
|
"sway/window": {
|
|
|
|
"max-length": 40
|
|
|
|
},
|
|
|
|
"sway/mode": {
|
|
|
|
"tooltip": false
|
|
|
|
},
|
|
|
|
"mpris": {
|
|
|
|
"format": "{status_icon} {dynamic}",
|
|
|
|
"format-paused": "{status_icon} <i>{dynamic}</i>",
|
|
|
|
"status-icons": {
|
|
|
|
"playing": "▶",
|
|
|
|
"paused": "⏸"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"battery": {
|
|
|
|
"bat": "BAT0",
|
|
|
|
"states": {
|
|
|
|
"warning": 30,
|
|
|
|
"critical": 15
|
|
|
|
},
|
|
|
|
"format": "{capacity}% {icon}",
|
|
|
|
"format-charging": "{capacity}% ",
|
|
|
|
"format-plugged": "{capacity}% ",
|
|
|
|
"format-alt": "{time} {icon}",
|
|
|
|
"format-icons": ["", "", "", "", ""]
|
|
|
|
},
|
|
|
|
"clock": {
|
|
|
|
"timezone": "Europe/Zurich",
|
|
|
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
2023-11-23 20:05:42 +01:00
|
|
|
"format": "{:%H:%M | %Y-%m-%d}"
|
2023-11-23 18:48:31 +01:00
|
|
|
},
|
|
|
|
"idle_inhibitor": {
|
|
|
|
"format": "{icon}",
|
|
|
|
"format-icons": {
|
2024-07-16 15:21:12 +02:00
|
|
|
"activated": " ",
|
|
|
|
"deactivated": " "
|
2023-11-23 18:48:31 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tray": {
|
2023-11-23 19:00:42 +01:00
|
|
|
"icon-size": 16
|
2023-11-23 18:48:31 +01:00
|
|
|
},
|
|
|
|
"custom/mpris": {
|
|
|
|
"exec": "~/.scripts/polybar/player-mpris-tail.py -f '{icon} {:artist:t10:{artist}:}{:artist: - :}{:t25:{title}:}'",
|
|
|
|
"on-click": "~/.scripts/polybar/player-mpris-tail.py play-pause &",
|
|
|
|
"on-click-middle": "~/.scripts/polybar/player-mpris-tail.py next &",
|
|
|
|
"on-click-right": "~/.scripts/polybar/player-mpris-tail.py previous &"
|
|
|
|
}
|
|
|
|
}
|