Compare commits

...

1 Commits

Author SHA1 Message Date
Steins7
4279c0549e Added multiple battery support 2024-09-04 17:02:12 +02:00

11
config
View File

@ -6,7 +6,7 @@
// Choose the order of the modules // Choose the order of the modules
"modules-left": ["sway/workspaces", "sway/mode"], "modules-left": ["sway/workspaces", "sway/mode"],
"modules-center": ["sway/window"], "modules-center": ["sway/window"],
"modules-right": ["idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "custom/bat1", "clock", "tray"], "modules-right": ["idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "custom/bat0", "custom/bat1", "clock", "tray"],
// Modules configuration // Modules configuration
// "sway/workspaces": { // "sway/workspaces": {
// "disable-scroll": true, // "disable-scroll": true,
@ -111,12 +111,19 @@
//"battery#bat2": { //"battery#bat2": {
// "bat": "BAT2" // "bat": "BAT2"
//}, //},
"custom/bat0": {
"exec": "~/.config/waybar/scripts/battery.py BAT0",
"return-type": "json",
"format": " {} {icon} ",
"format-icons": ["", "", "", "", ""],
"tooltip": true
},
"custom/bat1": { "custom/bat1": {
"exec": "~/.config/waybar/scripts/battery.py BAT1", "exec": "~/.config/waybar/scripts/battery.py BAT1",
"return-type": "json", "return-type": "json",
"format": " {} {icon} ", "format": " {} {icon} ",
"format-icons": ["", "", "", "", ""], "format-icons": ["", "", "", "", ""],
"tooltip": false "tooltip": true
}, },
"network": { "network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface // "interface": "wlp2*", // (Optional) To force the use of this interface