Ver código fonte

sway config update

aeth 9 meses atrás
pai
commit
168f077111
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      sway/config

+ 1 - 1
sway/config

@@ -191,7 +191,7 @@ bindsym $mod+r mode "resize"
 
     # 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 date +[$(cat /sys/class/power_supply/BAT0/capacity)%]'[%Y-%m-%d %I:%M:%S %p]'; do sleep 1; done
     colors {
         statusline #ffffff
         background #323232