commit 028078215272e9239358cc709aa90e9d664bac84
parent 81231f3a9d4ac6d26eff91a6cf53da175aa0b60b
Author: regexghost <dev@regexghost.com>
Date: Mon, 3 Aug 2026 21:54:11 +0100
minor tweaks to newsraft and stream scripts
Diffstat:
4 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/dotfiles/.config/newsraft/reddit-gallery.sh b/dotfiles/.config/newsraft/reddit-gallery.sh
@@ -27,5 +27,5 @@ wait
cd "$OUTPUT_FOLDER"; rename 's/[?].*//g' *
notify-send "Displaying"
-notify-send "$IMAGE_VIEWER"
+
${IMAGE_VIEWER:-feh} "$OUTPUT_FOLDER"/*
diff --git a/dotfiles/.config/newsraft/rssify.sh b/dotfiles/.config/newsraft/rssify.sh
@@ -9,7 +9,7 @@ if ! echo "$channelUrl" | grep -q "youtube.com"; then
fi
fi
-echo "$channelUrl"
+name="$(echo "$channelUrl" | sed 's/.*@//g')"
id="$(yt-dlp --flat-playlist -J --playlist-end 1 "$channelUrl" | jq -r .channel_id)"
-echo https://www.youtube.com/feeds/videos.xml?channel_id="${id}"
+echo "https://www.youtube.com/feeds/videos.xml?channel_id=${id} ${name}"
diff --git a/terminal-scripts/stream-check.sh b/terminal-scripts/stream-check.sh
@@ -18,6 +18,7 @@ if ! [ "$twitch_at" = "NONE" ]; then
if grep -q "live_user" /tmp/live_twitch.html; then
if [ "$format" = "pretty" ]; then
echo "${name} is live on Twitch: https://www.twitch.tv/${twitch_at}"
+ exit
elif [ "$format" = "yn" ]; then
echo "y"
exit
@@ -29,6 +30,7 @@ if ! [ "$youtube_at" = "NONE" ]; then
if grep -q "isUpcoming\":true" /tmp/live_youtube.html; then
if [ "$format" = "pretty" ]; then
echo "${name} is about to go live on YouTube: https://www.youtube.com/${youtube_at}/live"
+ exit
elif [ "$format" = "yn" ]; then
echo "w"
exit
@@ -36,6 +38,7 @@ if ! [ "$youtube_at" = "NONE" ]; then
elif grep -q "isLive\":true" /tmp/live_youtube.html; then
if [ "$format" = "pretty" ]; then
echo "${name} is live on YouTube: https://www.youtube.com/${youtube_at}/live"
+ exit
elif [ "$format" = "yn" ]; then
echo "y"
exit
@@ -47,6 +50,7 @@ if ! [ "$kick_at" = "NONE" ]; then
if grep -q "is_live\":true" /tmp/live_kick.html; then
if [ "$format" = "pretty" ]; then
echo "${name} is live on Kick: https://www.kick.com/${kick_at}"
+ exit
elif [ "$format" = "yn" ]; then
echo "y"
exit
diff --git a/wm-scripts/launch-stream.sh b/wm-scripts/launch-stream.sh
@@ -14,7 +14,7 @@ kick="$(echo "$line" | cut -d "," -f 4)"
if ! [ "$youtube" = "NONE" ]; then
notify-send "Launching ${name} YouTube stream"
- mpv --no-resume-playback --ytdl-format="bestvideo[height<=480]" "https://youtube.com/${youtube}/live" && exit
+ mpv --no-resume-playback --ytdl-format="best[height<=480]" "https://youtube.com/${youtube}/live" && exit
notify-send "Failed to open YouTube stream"
fi