summaryrefslogtreecommitdiffstats
path: root/.scripts
diff options
context:
space:
mode:
Diffstat (limited to '.scripts')
-rwxr-xr-x.scripts/newsup1
-rwxr-xr-x.scripts/tutorialvids2
2 files changed, 2 insertions, 1 deletions
diff --git a/.scripts/newsup b/.scripts/newsup
index 986524a..ab4116e 100755
--- a/.scripts/newsup
+++ b/.scripts/newsup
@@ -1,5 +1,6 @@
#!/bin/sh
+ping -q -t 1 -c 1 `ip r | grep -m 1 default | cut -d ' ' -f 3` >/dev/null || exit
echo "📰 🔃" > ~/.newsup
pkill -RTMIN+6 i3blocks
printf "Loading new RSS entries for newsboat...\\n"
diff --git a/.scripts/tutorialvids b/.scripts/tutorialvids
index ed607fd..f248253 100755
--- a/.scripts/tutorialvids
+++ b/.scripts/tutorialvids
@@ -14,4 +14,4 @@ urlview https://www.youtube.com/watch?v=IgzpAjFgbCw
vi mode in shell https://www.youtube.com/watch?v=GqoJQft5R2E
"
-mpv $(grep -P "^$(grep https: <<< $vidlist | sed 's/\t.*//g' | dmenu -i -p "Learn about what? (ESC to cancel)" -l 5)\t" <<<$vidlist | sed 's/.*\t//')
+mpv "$(echo "$vidlist" | grep -P "^$(echo "$vidlist" | grep "https:" | sed 's/\t.*//g' | dmenu -i -p "Learn about what? (ESC to cancel)" -l 5)\\t" | sed 's/.*\t//')"