diff options
author | Matthew Lemon <y@yulqen.org> | 2024-02-27 17:26:56 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-02-27 17:26:56 +0000 |
commit | 524744b3a3598a12d7f7462741525c9e00d337f7 (patch) | |
tree | 3ec91a1de46d96c4afd824706a23af6c3919ca83 | |
parent | 0148eeb1d647dc9ce5eb122e62388fc8f8e37208 (diff) |
Script for sway status bar
-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")" |