💾 Archived View for segvallday.org › notes › software captured on 2023-07-22 at 16:20:42. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

Software Notes

Last updated: 2023-01-28

Managing dotfiles with git

Just follow the steps from Drew Devault’s “Managing my dotfiles as a git repository” and the whole directories under home is now useable to be synced up with git. Does seem odd to have all the files under the home directory to be under the dotfiles git repo, but the * in the .gitignore file prevents any random files from being commited into it by accident. Plus, it’s a lot easier and simpler to use than some other method where the git repo is segregated, for this it’s just as long as you know git, you know how to use this.

https://drewdevault.com/2019/12/30/dotfiles.html

Bookmarks

The following one line shell command makes for a browser independent and simple bookmarking:

cat $HOME/.config/bmks/urls | sort | dmenu -l 35 -p "Bookmarks" | awk '{print $(NF)}' | wl-copy -n

I’ve started using “bmks” taken from the suckless scripts using dmenu page but then realized all the main functionality can just be simplified and compact to that one liner and just have a convenient shell alias to edit the bookmark file. An example entry can be:

https://tools.suckless.org/dmenu/scripts/

Segvallday - https://segvallday.org/

When selected within dmenu (or a dmenu-like program of your choice), it will just take the body of characters after the last space, or in this case, the URL. There’s certainly different ways of formatting, taking strings, and even dealing with the text. So feel free to modify that command as you wish.

Advantages

Disadvantages

Youtube/Video downloading and Youtube RSS/Atom feeds

yt-dlp can be used to download videos usually for Youtube, but works for other video sites also. It can also be used in conjunction with mpv for streaming and includes an additional sponserblock chapter marking and removal. With the combination of yt-dlp to download and RSS/Atom feeds, either through the official Youtube site:

https://github.com/yt-dlp/yt-dlp

https://mpv.io/

https://www.youtube.com/feeds/videos.xml?channel_id=INSERT_CHANNEL_ID

Or through Invidious or Piped, both will show the RSS feed logo button in each channel’s page.

https://invidious.io/

https://github.com/TeamPiped/Piped

This is a great way to watch and keep up to date with Youtube content without a Google account as it will simply fetch the latest videos in chronological order without some “recommendation algorithm” deciding it for you. Plus, you’ll be less distracted from doom-watching Youtube contents with the recommendation list on the side and a search bar right there. It is also especially an improvement on the reduction of hardware requirements just to watch the video, since you no longer have to load a whole page which is very heavy and have tonnes of scripts and stylings spewed out before the video loads! That being said, Invidious (and even Piped) is much more lightweight than the offical site, and Invidious doesn’t even requires JavaScript to watch videos (but in maximum resolution of 720p). However, you can’t really beat not loading a site at all and downloading the video first before watching, which is also convenient for watching later or archival purpose.

Website redirect

As a side note, LibRedirect extension can redirect not only Youtube, but other sites (EX: Twitter) to using a frontend proxy site (like Invidious, Nitter, etc…) instead. For Youtube, even embedded Youtube videos will get converted over also.

https://libredirect.codeberg.page/

https://github.com/zedeus/nitter