Selaa lähdekoodia

sway config update

aeth 9 kuukautta sitten
vanhempi
sitoutus
168f077111
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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