focus-or-launch: add calendar option
rofi: add rofi-[power|wifi|brightness]-menu
edit: add script
This script edits a file (usually an executable) which is in PATH.
random-number: add script
I need a random number of this size for developing, occasionally.
focus-or-launch: improve script
determine-player: also detect mpd
focus-emacs: start using systemd
fix-duplicates: possibly pass hostname
mpris: improve mpris/pplayerctl commands
getlyrics.py: add script
This uses lyricsgenius [0] to get the lyrics, puts it in a textfile
`/tmp/lyricsbyrens` and calls `xdg-open /tmp/lyricsbyrens`. It's
really hacky now, but I like it.
[0]: https://pypi.org/project/lyricsgenius/
Add (originally Kyle Howells') py3 script add-chapters-to-video.py
From https://ikyle.me/blog/2020/add-mp4-chapters-ffmpeg, but
significantly rewritten. This is squashed from another repo in 3
commits, commit messages concatenated:
Refactor script
- Make filenames passable by commandline
- Don't append CHAPTERS if they already exist in the ffmetadata
file (unless --force is passed)
- Add better error messages if we can't correctly parse the chapters
file.
Fix last chapter
Previously the script didn't parse the last chapter, presumably since
the end time wasn't defined. This is because the end time was defined
as the start time of the _next_ chapter - 1, which doesn't exist for
the last chapter.
This commit sets the end time of the last chapter to be the start time
+ 1. That doesn't really make sense, since it then only lasts for a
millisecond. However, doing it otherwise means that we should parse
the videofile (I think), and I have no intention to do that.
canary: add script
This script checks the canary notice of rsync.net [0], specifically
whether it says what I expect. When fails, it currently creates a
random file that I will notice. This is quite ugly, but it works well
enough.
[0]: https://www.rsync.net/resources/notices/canary.txt
focus-or-launch: add script
Currently only works for app_id. This is quite lacking, since a lot of
windows don't have an app_id, or the app_id isn't identical to the
program that should be started. Ideally you'd like to specify this,
but that can be added in the future.
Fix (remove) maildir duplicates
Quite an ugly script, but it works.
Add caffeine
This script stops or continues swayidle. It uses zsh because I'm
having some trouble with regular expressions in bash.
sourcehut: don't automatically replace remote