aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-02-27 17:26:56 +0000
committerMatthew Lemon <y@yulqen.org>2024-02-27 17:26:56 +0000
commit524744b3a3598a12d7f7462741525c9e00d337f7 (patch)
tree3ec91a1de46d96c4afd824706a23af6c3919ca83
parent0148eeb1d647dc9ce5eb122e62388fc8f8e37208 (diff)
Script for sway status bar
-rwxr-xr-xstatus_command_for_swaybar.sh8
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")"