summaryrefslogtreecommitdiff
path: root/ar/.local/bin
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-02-08 12:03:37 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-02-08 12:03:37 +0900
commit5f65f34231f8e617056e26774019d1593655b8f7 (patch)
treee9322ff7f1a517754c449e6c90a936135443320e /ar/.local/bin
parent6cb0c3fe3f40278f0c611016a5b0c7f6f38957a7 (diff)
updates
Diffstat (limited to 'ar/.local/bin')
-rwxr-xr-xar/.local/bin/statusbar/sb-torrent7
-rwxr-xr-xar/.local/bin/tmuxcycleborder7
2 files changed, 11 insertions, 3 deletions
diff --git a/ar/.local/bin/statusbar/sb-torrent b/ar/.local/bin/statusbar/sb-torrent
index 79da88d..ec104b4 100755
--- a/ar/.local/bin/statusbar/sb-torrent
+++ b/ar/.local/bin/statusbar/sb-torrent
@@ -7,13 +7,14 @@ status=$(transmission-remote -l | grep % |
s/.*100%.*/N ✅/;
s/.*Idle.*/B 🕰️/;
s/.*Uploading.*/L 🔼/;
- s/.*%.*/M 🔽/" |
+ s/.*Downloading.*/M 🔽/;
+ s/.*%.*/Q ❓/" |
sort -h | uniq -c | awk '{print $3 $1}' | paste -sd ' ' -)
if [ -z "$status" ]; then
- echo "$status"
-else
pidof transmission-daemon >/dev/null && echo "🌲"
+else
+ echo "$status"
fi
case $BLOCK_BUTTON in
diff --git a/ar/.local/bin/tmuxcycleborder b/ar/.local/bin/tmuxcycleborder
new file mode 100755
index 0000000..ad2a430
--- /dev/null
+++ b/ar/.local/bin/tmuxcycleborder
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+case "$(tmux show-option -gqv pane-border-status)" in
+"off") tmux set-option -g pane-border-status top ;;
+"top") tmux set-option -g pane-border-status bottom ;;
+"bottom") tmux set-option -g pane-border-status off ;;
+esac