only show battery in waybar if BAT0 exists
This commit is contained in:
@@ -11,38 +11,32 @@
|
|||||||
"group/bat": {
|
"group/bat": {
|
||||||
"orientation": "horizontal",
|
"orientation": "horizontal",
|
||||||
"modules": ["battery"]
|
"modules": ["battery"]
|
||||||
|
"exec-if": "test -e /sys/class/power_supply/BAT0"
|
||||||
},
|
},
|
||||||
|
|
||||||
"group/net": {
|
"group/net": {
|
||||||
"orientation": "horizontal",
|
"orientation": "horizontal",
|
||||||
"modules": ["network", "bluetooth"]
|
"modules": ["network"]
|
||||||
},
|
},
|
||||||
|
|
||||||
"hyprland/workspaces": {
|
"hyprland/workspaces": {
|
||||||
"format": "{name}",
|
"format": "{name}",
|
||||||
"sort-by-number": true,
|
"sort-by-number": true,
|
||||||
"persistent-workspaces": {
|
"persistent-workspaces": {}
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
"clock": {
|
"clock": {
|
||||||
"format": "{:%d.%m.%Y | %H:%M:%S}",
|
"format": "{:%d.%m.%Y | %H:%M:%S}",
|
||||||
"interval": 1
|
"interval": 1
|
||||||
},
|
},
|
||||||
|
|
||||||
"wireplumber": {
|
"wireplumber": {
|
||||||
"format": "\udb81\udd7e {volume}%",
|
"format": "\udb81\udd7e {volume}%",
|
||||||
"max-volume": 100,
|
"max-volume": 100,
|
||||||
"scroll-step": 5
|
"scroll-step": 5
|
||||||
},
|
},
|
||||||
|
|
||||||
"battery": {
|
"battery": {
|
||||||
"bat": "BAT0",
|
"bat": "BAT0",
|
||||||
"interval": 60,
|
"interval": 60,
|
||||||
"format": "{icon} {capacity}%",
|
"format": "{icon} {capacity}%",
|
||||||
"format-icons": ["\uf244", "\uf243", "\uf242", "\uf241", "\uf240"],
|
"format-icons": ["\uf244", "\uf243", "\uf242", "\uf241", "\uf240"],
|
||||||
},
|
},
|
||||||
|
|
||||||
"network": {
|
"network": {
|
||||||
"format": "",
|
"format": "",
|
||||||
"format-ethernet": "\udb83\udc9d ",
|
"format-ethernet": "\udb83\udc9d ",
|
||||||
@@ -52,14 +46,5 @@
|
|||||||
"tooltip-format-wifi": "{essid} ({signalStrength}%)",
|
"tooltip-format-wifi": "{essid} ({signalStrength}%)",
|
||||||
"tooltip-format-ethernet": "{ifname}",
|
"tooltip-format-ethernet": "{ifname}",
|
||||||
"tooltip-format-disconnected": "Disconnected",
|
"tooltip-format-disconnected": "Disconnected",
|
||||||
},
|
}
|
||||||
|
|
||||||
"bluetooth": {
|
|
||||||
"format": "\udb80\udcaf",
|
|
||||||
"format-disabled": "\udb80\udcb2",
|
|
||||||
"format-connected": "\udb80\udcb1",
|
|
||||||
"tooltip-format": "{controller_alias}\t{controller_address}",
|
|
||||||
"tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{device_enumerate}",
|
|
||||||
"tooltip-format-enumerate-connected": "{device_alias}\t{device_address}"
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user