Quellcode durchsuchen

sway config update

aeth vor 9 Monaten
Ursprung
Commit
168f077111
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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