From 4d3d9e454daba23c5a916cbdedfa193041d612c2 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Wed, 7 Dec 2022 13:00:22 +0300 Subject: feat(wayland): add battery percentage status --- env-wayland/.config/sway/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3