diff options
Diffstat (limited to 'status_command_for_swaybar.sh')
-rwxr-xr-x | status_command_for_swaybar.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/status_command_for_swaybar.sh b/status_command_for_swaybar.sh index ab48c88..b044fde 100755 --- a/status_command_for_swaybar.sh +++ b/status_command_for_swaybar.sh @@ -1,8 +1,8 @@ #/bin/sh net="$(ip a|grep "inet 192"|cut -d' ' -f6|cut -d'/' -f1)" -toss="Toss!" packages="$(dpkg --get-selections|wc -l)" weather="$(ansiweather -l Berwick-upon-Tweed,GB -f 1 -a false -s true -w true -d true)" +batt="$(cat /sys/class/power_supply/BAT0/capacity)" -echo "$weather | dpkg: $packages | $net | $(date +"%Y-%m-%d %I:%M:%S %p")" +echo "$weather | dpkg: $packages | bat: $batt | $net | $(date +"%Y-%m-%d %I:%M:%S %p")" |