fixing some stuff, will move away from bash soon

This commit is contained in:
2025-05-15 20:54:41 -07:00
parent 41b726a85e
commit 52b29d6431
4 changed files with 24 additions and 15 deletions

View File

@@ -5,6 +5,7 @@ export MOZ_ENABLE_WAYLAND=1
export XDG_CONFIG_HOME=~/.config
export XDG_CACHE_HOME=~/.cache
export XDG_DATA_HOME=~/.local/share
export XDG_STATE_HOME=~/.local/state
export BROWSER=/usr/bin/brave-browser
export VISUAL=nvim
export EDITOR=nvim
@@ -14,10 +15,3 @@ export QT_QPA_PLATFORMTHEME=qt5ct
PATH=$PATH:~/.local/bin
PATH=$PATH:~/bin
PATH=$PATH:~/scripts
# Doom Path
PATH=$PATH:~/.config/emacs/bin/
# Flatpak path
PATH=$PATH:/var/lib/flatpak/exports/bin
PATH=$PATH:/var/lib/flatpak/app

View File

@@ -23,12 +23,9 @@ https://pluralistic.net/feed/
https://blog.privacyguides.org/feed_rss_created.xml
https://lukesmith.xyz/index.xml "~Luke Smith (Blog)"
https://www.techdirt.com/techdirt_rss.xml "~TechDirt"
https://feeds.arstechnica.com/arstechnica/index "~Ars Technica"
https://www.theverge.com/rss/index.xml "~The Verge"
https://www.linuxlinks.com/feed/ "~LinuxLinks"
https://itsfoss.com/feed/ "~It's FOSS"
https://kmandla.wordpress.com/feed/ "~K.Mandla"
https://distrowatch.com/news/dw.xml "~DistroWatch"
https://lwn.net/headlines/rss "~LWN.net"
https://www.youtube.com/feeds/videos.xml?channel_id=UCld68syR8Wi-GY_n4CaoJGA
@@ -37,5 +34,6 @@ https://feeds.simplecast.com/dCXMIpJz "Last Podcast On the Left"
http://feeds.soundcloud.com/users/soundcloud:users:572119410/sounds.rss "Fall of Civilziation"
https://feeds.feedburner.com/dancarlin/history?format=xml "Hardcore History"
---Stores---
https://www.darkdescentrecords.com/shop/shop/rss
---Youtube---
https://www.youtube.com/feeds/videos.xml?channel_id=UCCZ40QwZtFs_7h5MZ0ZTTwg # Lefie

View File

@@ -259,9 +259,6 @@ bindsym $mod+Shift+r exec ~/.local/bin/recipemenu
# EXECS
#######################
# Notifications
exec_always sh -c 'pgrep -x dunst > /dev/null || dunst'
# Wlsunset (Night Light)
exec_always pgrep -x wlsunset > /dev/null || wlsunset -l 47.6 -L -122.3 -t 3500 -T 6000

20
.local/bin/yt2rss Executable file
View File

@@ -0,0 +1,20 @@
#!/bin/sh
url="$1"
if [ -z "$url" ]; then
echo "Usage: yt2rss.sh <youtube_url>" >&2
exit 1
fi
html=$(curl -Ls "$url")
channel_id=$(printf '%s\n' "$html" | grep -oE 'https://www.youtube.com/channel/UC[[:alnum:]_-]+' | head -n1 | sed 's|.*/||')
if [ -z "$channel_id" ]; then
echo "Could not find channel ID." >&2
exit 1
fi
echo "https://www.youtube.com/feeds/videos.xml?channel_id=$channel_id"