aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/statusbar
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/statusbar')
-rwxr-xr-x.local/bin/statusbar/sb-clock2
-rwxr-xr-x.local/bin/statusbar/sb-mailbox2
-rwxr-xr-x.local/bin/statusbar/sb-torrent26
3 files changed, 15 insertions, 15 deletions
diff --git a/.local/bin/statusbar/sb-clock b/.local/bin/statusbar/sb-clock
index 3cac79c..dd6de18 100755
--- a/.local/bin/statusbar/sb-clock
+++ b/.local/bin/statusbar/sb-clock
@@ -10,4 +10,4 @@ case $BLOCK_BUTTON in
8) setsid -f "$TERMINAL" -e "$EDITOR" "$0" >/dev/null 2>&1 ;;
esac
-date "+%Y-%m-%d %H:%M:%S"
+date "+%H:%M"
diff --git a/.local/bin/statusbar/sb-mailbox b/.local/bin/statusbar/sb-mailbox
index fa36584..19478e8 100755
--- a/.local/bin/statusbar/sb-mailbox
+++ b/.local/bin/statusbar/sb-mailbox
@@ -18,7 +18,7 @@ unread="$(fd . "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/*/[Ii][Nn][Bb][Oo][Xx
icon=$(bat /tmp/mailupdate 2>/dev/null)
if [ "$unread" -eq 0 ]; then
- [ -n "$icon" ] && echo " $icon" || exit 0
+ [ -n "$icon" ] && echo "$icon" || exit 0
else
echo " $unread$icon"
fi
diff --git a/.local/bin/statusbar/sb-torrent b/.local/bin/statusbar/sb-torrent
index 868b3aa..8415b25 100755
--- a/.local/bin/statusbar/sb-torrent
+++ b/.local/bin/statusbar/sb-torrent
@@ -2,26 +2,26 @@
transmission-remote -l | rg % |
sed " # The letters are for sorting and will not appear.
-s/.*Stopped.*/A πŸ›‘/;
-s/.*Seeding.*/Z 🌱/;
-s/.*100%.*/N βœ…/;
-s/.*Idle.*/B πŸ•°οΈ/;
-s/.*Uploading.*/L ⬆️/;
-s/.*%.*/M ⬇️/" |
+s/.*Stopped.*/A /;
+s/.*Seeding.*/Z ξΆ§/;
+s/.*100%.*/N ο…Š/;
+s/.*Idle.*/B ο‡š/;
+s/.*Uploading.*/L /;
+s/.*%.*/M /" |
sort -h | uniq -c | awk '{print $3 $1}' | paste -sd ' ' -
case $BLOCK_BUTTON in
1) setsid -f "$TERMINAL" -e stig >/dev/null 2>&1 ;;
2) td-toggle ;;
- 3) notify-send "🌱 Torrent module" "\- Left click to open stig.
+ 3) notify-send "ξΆ§ Torrent module" "\- Left click to open stig.
- Middle click to toggle transmission.
- Shift click to edit script.
Module shows number of torrents:
-πŸ›‘: paused
-πŸ•°: idle (seeds needed)
-πŸ”Ό: uploading (unfinished)
-πŸ”½: downloading
-βœ…: done
-🌱: done and seeding" ;;
+: paused
+ο‡š: idle (seeds needed)
+: uploading (unfinished)
+: downloading
+ο…Š: done
+ξΆ§: done and seeding" ;;
8) setsid -f "$TERMINAL" -e "$EDITOR" "$0" >/dev/null 2>&1 ;;
esac