Modify battery

This commit is contained in:
RealStickman 2023-05-01 17:52:22 +02:00
parent 4b93c2838a
commit 6b7b88130b

View File

@ -6,15 +6,7 @@
"modules-left": ["wlr/workspaces"], "modules-left": ["wlr/workspaces"],
"modules-center": ["wlr/window"], "modules-center": ["wlr/window"],
"modules-right": [ "modules-right": ["mpris", "battery", "clock", "tray"],
"mpris",
"idle_inhibitor",
"keyboard-state",
"battery",
"battery#bat2",
"clock",
"tray"
],
"wlr/workspaces": { "wlr/workspaces": {
"all-outputs": true, "all-outputs": true,
@ -32,15 +24,25 @@
"separate-outputs": true "separate-outputs": true
}, },
"mpris": { "mpris": {
"format": "DEFAULT: {player_icon} {dynamic}", "format": "{status_icon} {dynamic}",
"format-paused": "DEFAULT: {status_icon} <i>{dynamic}</i>", "format-paused": "{status_icon} <i>{dynamic}</i>",
"player-icons": {
"default": "▶"
},
"status-icons": { "status-icons": {
"playing": "▶",
"paused": "⏸" "paused": "⏸"
} }
}, },
"battery": {
"bat": "BAT0",
"states": {
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
"format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ",
"format-alt": "{time} {icon}",
"format-icons": ["", "", "", "", ""]
},
"sway/workspaces": { "sway/workspaces": {
"disable-scroll": true, "disable-scroll": true,
@ -138,20 +140,6 @@
"format": "{percent}% {icon}", "format": "{percent}% {icon}",
"format-icons": ["", "", "", "", "", "", "", "", ""] "format-icons": ["", "", "", "", "", "", "", "", ""]
}, },
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
"format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ",
"format-alt": "{time} {icon}",
"format-good": "",
"format-full": "",
"format-icons": ["", "", "", "", ""]
},
"battery#bat2": { "battery#bat2": {
"bat": "BAT2" "bat": "BAT2"
}, },