summaryrefslogtreecommitdiff
path: root/.scripts
diff options
context:
space:
mode:
authorSaumit <justsaumit@protonmail.com>2025-02-23 16:20:47 +0530
committerSaumit <justsaumit@protonmail.com>2025-02-23 16:20:47 +0530
commita9950e07cb2b662fa88b32a9e2e277676446a206 (patch)
tree0c17e7b0c3b8a4981100c96baa2a0bc831e02949 /.scripts
parent576e3385f7ef63eff30bae3fe63e231b09d2f875 (diff)
.scripts: few updates
Diffstat (limited to '.scripts')
-rwxr-xr-x.scripts/4chget4
-rwxr-xr-x.scripts/4chgettofi3
-rwxr-xr-x.scripts/bts3
-rwxr-xr-x.scripts/work5
4 files changed, 9 insertions, 6 deletions
diff --git a/.scripts/4chget b/.scripts/4chget
index b4a7446..43e4f7c 100755
--- a/.scripts/4chget
+++ b/.scripts/4chget
@@ -34,10 +34,10 @@ read thread
case "$option" in
"wg")
- wget -P "$parentdir/$dir" -nd -r -l 1 -H -D i.4cdn.org,is2.4chan.org -A png,jpg,jpeg -R '*s.*' https://boards.4chan.org/wg/thread/"$thread" ;;
+ wget -P "$parentdir/$dir" -nd -r -l 1 -H -D i.4cdn.org,is2.4chan.org,is2.4channel.org -A png,jpg,jpeg -R '*s.*' https://boards.4chan.org/wg/thread/"$thread" ;;
"w")
- wget -P "$parentdir/$dir" -nd -r -l 1 -H -D i.4cdn.org,is2.4chan.org -A png,jpg,jpeg -R '*s.*' https://boards.4channel.org/w/thread/"$thread" ;;
+ wget -P "$parentdir/$dir" -nd -r -l 1 -H -D i.4cdn.org,is2.4chan.org,is2.4channel.org -A png,jpg,jpeg -R '*s.*' https://boards.4chan.org/w/thread/"$thread" ;;
esac
echo "Wallpapers downloaded successfully."
diff --git a/.scripts/4chgettofi b/.scripts/4chgettofi
index ee88553..a820059 100755
--- a/.scripts/4chgettofi
+++ b/.scripts/4chgettofi
@@ -5,7 +5,8 @@ while [[ "$option" != "w" && "$option" != "wg" ]]; do
option=$(echo -e "wg\nw" | tofi --prompt-text "Is it wallpaper/general (wg) or anime wallpaper (w)?")
done
-[[ $option == "w" ]] && parentdir="$rootpapesdir/w" && nel="nel" || parentdir="$rootpapesdir/wg"
+#[[ $option == "w" ]] && parentdir="$rootpapesdir/w" && nel="nel" || parentdir="$rootpapesdir/wg"
+[[ $option == "w" ]] && parentdir="$rootpapesdir/w" || parentdir="$rootpapesdir/wg"
while true; do
dir=$(tofi --prompt-text "Enter folder name: " --require-match=false </dev/null)
diff --git a/.scripts/bts b/.scripts/bts
index 445bdcb..b78f9b9 100755
--- a/.scripts/bts
+++ b/.scripts/bts
@@ -5,7 +5,8 @@ option=$(echo -e "Connect\nDisconnect\nChange profile\nReset pulseaudio"| tofi -
#MAC="76:67:11:36:64:A2"
#MAC="E4:59:37:44:27:7A"
#MAC="2E:85:79:56:B1:D7"
-MAC="28:B7:7B:AB:C9:92"
+#MAC="28:B7:7B:AB:C9:92"
+MAC="EF:9F:2E:52:9E:45"
case $option in
"Connect")
status=$(systemctl is-active bluetooth)
diff --git a/.scripts/work b/.scripts/work
index fb3f1a5..6903842 100755
--- a/.scripts/work
+++ b/.scripts/work
@@ -1,6 +1,7 @@
#!/bin/sh
-content="$@"
+content="$*"
+
today=$(date +%d%m%y)
-x "$today: $content"
+x -t "$today: $content"