aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2022-12-07 13:00:22 +0300
committereug-vs <eugene@eug-vs.xyz>2022-12-07 13:00:22 +0300
commit4d3d9e454daba23c5a916cbdedfa193041d612c2 (patch)
tree382d00257e7d912c02cdbdcafaabedfd2bd22aaf
parent02c1a6fbed5b543cc2f2bce4da050761064c5a86 (diff)
downloaddotfiles-4d3d9e454daba23c5a916cbdedfa193041d612c2.tar.gz
feat(wayland): add battery percentage status
-rw-r--r--env-wayland/.config/sway/config2
1 files changed, 1 insertions, 1 deletions
diff --git a/env-wayland/.config/sway/config b/env-wayland/.config/sway/config
index 23907eb..dbafc25 100644
--- a/env-wayland/.config/sway/config
+++ b/env-wayland/.config/sway/config
@@ -230,7 +230,7 @@ bar {
# When the status_command prints a new line to stdout, swaybar updates.
# The default just shows the current date and time.
- status_command while date +'%Y-%m-%d %I:%M:%S %p'; do sleep 1; done
+ status_command while echo $(cat /sys/class/power_supply/BAT0/capacity)% $(date +'%Y-%m-%d %I:%M:%S %p'); do sleep 1; done
colors {
statusline #ffffff