diff options
Diffstat (limited to 'status_command_for_swaybar.sh')
-rwxr-xr-x | status_command_for_swaybar.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/status_command_for_swaybar.sh b/status_command_for_swaybar.sh new file mode 100755 index 0000000..ab48c88 --- /dev/null +++ b/status_command_for_swaybar.sh @@ -0,0 +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)" + +echo "$weather | dpkg: $packages | $net | $(date +"%Y-%m-%d %I:%M:%S %p")" |