summaryrefslogtreecommitdiff
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
parent6cb0c3fe3f40278f0c611016a5b0c7f6f38957a7 (diff)
updates
-rw-r--r--ar/.config/lf/lfrc3
-rw-r--r--ar/.config/mimeapps.list1
-rw-r--r--ar/.config/tmux/tmux.conf2
-rw-r--r--ar/.config/zsh/.zshrc2
-rwxr-xr-xar/.local/bin/statusbar/sb-torrent7
-rwxr-xr-xar/.local/bin/tmuxcycleborder7
6 files changed, 14 insertions, 8 deletions
diff --git a/ar/.config/lf/lfrc b/ar/.config/lf/lfrc
index 86fbf6c..edcd639 100644
--- a/ar/.config/lf/lfrc
+++ b/ar/.config/lf/lfrc
@@ -278,7 +278,6 @@ cmd open ${{
application/epub*|application/pdf|application/postscript|application/vnd.djvu|image/vnd.djvu) setsid -f zathura $fx >/dev/null 2>&1 ;;
application/pgp-encrypted) $EDITOR $fx ;;
application/vnd.oasis.opendocument.text|application/vnd.oasis.opendocument.spreadsheet|application/vnd.oasis.opendocument.spreadsheet-template|application/vnd.oasis.opendocument.presentation-template|application/vnd.oasis.opendocument.presentation|application/vnd.ms-powerpoint|application/vnd.oasis.opendocument.graphics|application/vnd.oasis.opendocument.graphics-template|application/vnd.oasis.opendocument.formula|application/vnd.oasis.opendocument.database) setsid -f firefox $fx >/dev/null 2>&1 ;;
- application/vnd.openxmlformats-officedocument.spreadsheetml.sheet) localc $fx ;;
application/x-hwp|application/vnd.openxmlformats-officedocument.presentationml.presentation|application/vnd.openxmlformats-officedocument.wordprocessingml.document) libreoffice $fx ;;
audio/*|video/x-ms-asf) mpv --audio-display=no $f ;;
image/x-xcf) setsid -f gimp $f >/dev/null 2>&1 ;;
@@ -290,7 +289,7 @@ cmd open ${{
lf -remote "send toggle"
done &
;;
- text/csv) sc-im $fx;;
+ text/csv|application/vnd.openxmlformats-officedocument.spreadsheetml.sheet) sc-im $fx;;
text/html|text/xml) lynx $fx;;
text/troff) groff -mom $fx -Tpdf | zathura - ;;
text/*|application/json|inode/x-empty|application/x-subrip) $EDITOR $fx;;
diff --git a/ar/.config/mimeapps.list b/ar/.config/mimeapps.list
index 44f0353..5ac44b7 100644
--- a/ar/.config/mimeapps.list
+++ b/ar/.config/mimeapps.list
@@ -14,6 +14,7 @@ image/jpeg=img.desktop;
image/gif=img.desktop;
image/png=img.desktop;
text/csv=csv.desktop;
+application/vnd.openxmlformats-officedocument.spreadsheetml.sheet=csv.desktop;
text/html=html.desktop;
text/markdown=slide.desktop;
text/plain=text.desktop;
diff --git a/ar/.config/tmux/tmux.conf b/ar/.config/tmux/tmux.conf
index 21bd6c1..bd4f347 100644
--- a/ar/.config/tmux/tmux.conf
+++ b/ar/.config/tmux/tmux.conf
@@ -80,7 +80,7 @@ bind 'r' source-file "~/.config/tmux/tmux.conf"
# scripts
bind 'h' run-shell -b "~/.local/bin/tmuxtogglebar"
-bind 'b' run-shell -b "~/.local/bin/tmuxtoggleborder"
+bind 'b' run-shell -b "~/.local/bin/tmuxcycleborder"
bind -T copy-mode M-\\ run-shell -b "~/.local/bin/tmuxtoggleterm"
bind -T copy-mode-vi M-\\ run-shell -b "~/.local/bin/tmuxtoggleterm"
bind -n 'C-t' run-shell "~/.local/bin/sessionizer"
diff --git a/ar/.config/zsh/.zshrc b/ar/.config/zsh/.zshrc
index 9dd040b..2cbb3a6 100644
--- a/ar/.config/zsh/.zshrc
+++ b/ar/.config/zsh/.zshrc
@@ -112,5 +112,3 @@ zstyle ':fzf-tab:*' switch-group ',' '.' # switch group using `,` and `.`
[ -f "${XDG_CONFIG_HOME:-${HOME}/.config}/shell/shortcutrc" ] && source "${XDG_CONFIG_HOME:-${HOME}/.config}/shell/shortcutrc"
[ -f "${XDG_CONFIG_HOME:-${HOME}/.config}/shell/shortcutenvrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutenvrc"
[ -f "${XDG_CONFIG_HOME:-${HOME}/.config}/shell/zshnameddirrc" ] && source "${XDG_CONFIG_HOME:-${HOME}/.config}/shell/zshnameddirrc"
-
-command -v tmux >/dev/null 2>&1 && sesh connect code
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