dotfiles

regexghost dotfiles and scripts
git clone https://git.regexghost.com/dotfiles.git
Log | Files | Refs | README

commit da3681712361802c2fa581cc8803f113ebec785c
parent 2e61a90caae40625dd81a06928abf8bc0a8023b6
Author: regexghost <dev@regexghost.com>
Date:   Sat, 20 Jun 2026 22:54:57 +0100

more changes after switching to sbase, using pup more for html stuff

Diffstat:
Mdotfiles/.config/newsraft/config | 1+
Mdotfiles/.config/newsraft/reddit-gallery.sh | 6+-----
Mdotfiles/.kshrc | 6+++---
3 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/dotfiles/.config/newsraft/config b/dotfiles/.config/newsraft/config @@ -1,6 +1,7 @@ bind g exec-quiet '~/.config/newsraft/show-image.sh "%l"' bind f exec-quiet '~/.config/newsraft/queue-vid.sh "%l"' bind t exec '~/.config/newsraft/article.sh "%l"' +bind w exec 'w3m "%l"' global-section-hide true item-limit 20 menu-item-sorting unread-desc diff --git a/dotfiles/.config/newsraft/reddit-gallery.sh b/dotfiles/.config/newsraft/reddit-gallery.sh @@ -15,11 +15,7 @@ id="$(echo "$url" | cut -d "/" -f 5)" curl -s -L --user-agent "$USER_AGENT" "https://old.reddit.com/${id}" > /tmp/reddit_gallery.html -links="$(cat /tmp/reddit_gallery.html | grep -oP ".{0,20}preview.redd.it.{0,200}" | sed -nE 's/.*href=&quot;(https.*)&quot; .*/\1/p' | xmlstarlet unesc | cut -d "\"" -f 1 | xmlstarlet unesc)" - -if [ "$links" = "" ]; then - links="$(cat /tmp/reddit_gallery.html | grep -oP ".{0,20}preview.redd.it.{0,200}" | sed -nE 's/.*href="(https[^"]*)".*/\1/p' | xmlstarlet unesc)" -fi +links="$(cat /tmp/reddit_gallery.html | pup 'a[class="may-blank gallery-item-thumbnail-link"]' | grep gallery-item-thumbnail-link | sed -nE 's/.*(https:\/\/[^"]*).*/\1/p' | xmlstarlet unesc | grep -v ".gif$")" notify-send "Downloading" diff --git a/dotfiles/.kshrc b/dotfiles/.kshrc @@ -20,9 +20,9 @@ PROMPT_COMMAND= PS1='\[\033[1;30m\]\u\[\033[1;31m\]@\[\033[1;32m\]\h:\[\033[1;35m\]\w\[\033[1;34m\]$(directory_bookmarks current)\[\033[1;31m\]\$\[\033[0m\] ' # Basic Aliases -alias grep='grep -i --color=auto' -alias greps='/usr/bin/grep --color=auto' # Case sensitive -alias grepa='grep -i -I -A 5 -B 5 --color=auto' +alias grep='grep -i' +alias greps='/usr/bin/grep' # Case sensitive +alias grepa='grep -i -I -A 5 -B 5' alias diff='diff --color' alias hs='history' alias n='nano'