| Adding yt rss script, updating random configs. - dotfiles - These are my dotfil… | |
| Log | |
| Files | |
| Refs | |
| README | |
| --- | |
| commit 76b0da6317935978f70ad93a5286c8eaf57782b5 | |
| parent 20b04aab19cc57432784ab919102d7c8e0ad2ea5 | |
| Author: Jay Scott <[email protected]> | |
| Date: Sat, 20 Jan 2024 11:55:56 +0000 | |
| Adding yt rss script, updating random configs. | |
| Diffstat: | |
| M README | 4 ++-- | |
| M X11/xinitrc | 1 + | |
| A alacritty/alacritty.toml | 33 +++++++++++++++++++++++++++++… | |
| M bin/link_handler.sh | 4 ++-- | |
| A bin/yt_feedurl.sh | 23 +++++++++++++++++++++++ | |
| M newsraft/config | 2 +- | |
| M newsraft/feeds | 7 ++++++- | |
| M vimrc | 35 ++---------------------------… | |
| 8 files changed, 70 insertions(+), 39 deletions(-) | |
| --- | |
| diff --git a/README b/README | |
| @@ -13,9 +13,9 @@ at all, the closest I come is using IRC. | |
| terminal : alacritty | |
| launcher : dmenu | |
| email : mutt / isync | |
| - browser : qutebrowser | |
| + browser : qutebrowser / librewolf | |
| video : mpv | |
| - music : mpv | |
| + music : mpd / ncmcpp | |
| password mgt : pass | |
| vpn : mullvad | |
| news : newsraft | |
| diff --git a/X11/xinitrc b/X11/xinitrc | |
| @@ -11,4 +11,5 @@ fi | |
| slstatus & | |
| xrandr --output HDMI-A-0 --auto --output DisplayPort-0 --auto --right-of HDMI-… | |
| +mpd & | |
| exec dwm | |
| diff --git a/alacritty/alacritty.toml b/alacritty/alacritty.toml | |
| @@ -0,0 +1,33 @@ | |
| +[colors.bright] | |
| +black = "0x928374" | |
| +blue = "0x83a598" | |
| +cyan = "0x8ec07c" | |
| +green = "0xb8bb26" | |
| +magenta = "0xd3869b" | |
| +red = "0xfb4934" | |
| +white = "0xebdbb2" | |
| +yellow = "0xfabd2f" | |
| + | |
| +[colors.normal] | |
| +black = "0x282828" | |
| +blue = "0x458588" | |
| +cyan = "0x689d6a" | |
| +green = "0x98971a" | |
| +magenta = "0xb16286" | |
| +red = "0xcc241d" | |
| +white = "0xa89984" | |
| +yellow = "0xd79921" | |
| + | |
| +[colors.primary] | |
| +background = "0x282828" | |
| +foreground = "0xebdbb2" | |
| + | |
| +[env] | |
| +TERM = "xterm-256color" | |
| + | |
| +[font] | |
| +size = 15 | |
| + | |
| +[font.normal] | |
| +family = "Hack" | |
| +style = "Regular" | |
| diff --git a/bin/link_handler.sh b/bin/link_handler.sh | |
| @@ -4,8 +4,8 @@ launcher="setsid" | |
| # apps | |
| player="mpv --really-quiet --no-terminal" | |
| -gemini="footclient amfora" | |
| -gopher="footclient lynx" | |
| +gemini="alacritty -e amfora" | |
| +gopher="alacritty -e lynx" | |
| pdf="zathura" | |
| images="feh" | |
| diff --git a/bin/yt_feedurl.sh b/bin/yt_feedurl.sh | |
| @@ -0,0 +1,23 @@ | |
| +#!/bin/sh | |
| + | |
| +# Check if a YouTube URL is provided | |
| +if [ -z "$1" ]; then | |
| + echo "Usage: $0 <youtube_url>" | |
| + exit 1 | |
| +fi | |
| + | |
| +# Fetch the HTML content of the YouTube page | |
| +youtube_url="$1" | |
| +html_content=$(curl -s "$youtube_url") | |
| + | |
| +# Extract the application/rss+xml URL using grep | |
| +rss_url=$(echo "$html_content" | grep -o 'https://www.youtube.com/feeds/videos… | |
| + | |
| +# Check if the RSS URL is found | |
| +if [ -z "$rss_url" ]; then | |
| + echo "Unable to find the application/rss+xml URL on the provided YouTube pag… | |
| + exit 1 | |
| +fi | |
| + | |
| +echo "RSS URL: $rss_url" | |
| + | |
| diff --git a/newsraft/config b/newsraft/config | |
| @@ -1,6 +1,6 @@ | |
| # settings | |
| set open-in-browser-command /home/jay/bin/link_handler.sh "%l" | |
| -set send-user-agent-header false | |
| +set send-user-agent-header true | |
| set clean-database-on-startup true | |
| # key bindings | |
| diff --git a/newsraft/feeds b/newsraft/feeds | |
| @@ -6,6 +6,7 @@ https://archlinux.org/feeds/news/ "Arch Linux" | |
| @ OUTDOORS | |
| https://bushcraftuk.com/community/forums/-/index.rss | |
| +https://goarmy.co.uk/collections/all.atom "GoArmy Disressed" | |
| @ MEDIA | |
| https://showrss.info/other/all.rss "TV Torrents" | |
| @@ -27,6 +28,8 @@ https://drewdevault.com/blog/index.xml "Drew DeVault" | |
| http://joeyh.name/blog/index.rss "Joey H" | |
| https://unixsheikh.com/feed.rss "Unix Sheikh" | |
| https://www.uninformativ.de/blog/feeds/en.atom "Uninformativ" | |
| +$(curl -s gopher://box.matto.nl/0/gopherindex.rss) "Matto" | |
| +$(curl -s gopher://1436.ninja/0phlog.atom) "RPod" | |
| @ ODYSEE | |
| https://odysee.com/$/rss/@AlphaNerd:8 "Mental Outlaws" | |
| @@ -81,4 +84,6 @@ https://www.youtube.com/feeds/videos.xml?channel_id=UC67TJP9i… | |
| https://www.youtube.com/feeds/videos.xml?channel_id=UChY9Cgv-iyPDvf1Bkyx20OQ "… | |
| https://www.youtube.com/feeds/videos.xml?channel_id=UC0ODgv3ciGtjIWuOF6CLM5g "… | |
| https://www.youtube.com/feeds/videos.xml?channel_id=UCfpCQ89W9wjkHc8J_6eTbBg "… | |
| -https://www.youtube.com/feeds/videos.xml?channel_id=UCcjx6m03fZwtRBFn1Cf7kKQ "… | |
| +https://www.youtube.com/feeds/videos.xml?channel_id=UCcjx6m03fZwtRBFn1Cf7kKQ "… | |
| +https://www.youtube.com/feeds/videos.xml?channel_id=UCKBUeKsqzKWSxp4pahxljBw "… | |
| +https://www.youtube.com/feeds/videos.xml?channel_id=UCcKw8Eg0FfRvhIAnC0cPGAA "… | |
| diff --git a/vimrc b/vimrc | |
| @@ -50,44 +50,13 @@ Plug 'junegunn/fzf.vim' | |
| Plug 'airblade/vim-gitgutter' | |
| let g:gitgutter_enabled=1 | |
| -Plug 'dense-analysis/ale' | |
| - let g:ale_fixers = { | |
| - \ '*': ['remove_trailing_lines', 'trim_whitespace'], | |
| - \ 'sh': ['shfmt']} | |
| - let g:ale_linters = { | |
| - \ 'sh': ['shellcheck']} | |
| - let g:ale_sh_shellcheck_options = '-s sh' | |
| - let g:ale_sh_shfmt_options = '-p' | |
| - let g:ale_sign_error = '●' | |
| - let g:ale_sign_warning = '.' | |
| - let g:ale_fix_on_save = 1 | |
| - let g:ale_linters_explicit = 1 | |
| - let g:ale_sign_column_always = 1 | |
| - | |
| - | |
| call plug#end() | |
| filetype plugin indent on | |
| set background=dark | |
| - | |
| -set mouse= | |
| -set tabstop=8 | |
| -set shiftwidth=8 | |
| -set autoindent | |
| -set colorcolumn=80 | |
| -set textwidth=72 | |
| -set encoding=utf-8 | |
| set number | |
| -set ruler | |
| -set nowrap | |
| -set splitbelow | |
| -set hidden | |
| -set incsearch | |
| -set hlsearch | |
| -set ignorecase | |
| -set noswapfile | |
| -set nofoldenable | |
| -set lazyredraw | |
| +set colorcolumn=80 | |
| +highlight ColorColumn ctermbg=red guibg=red | |
| syntax enable | |