Back home

Shell scripts

These are some scripts I made for Unix shell. Some of these are more useful than others, but the less useful ones are usually hilarious, so it balances out.

Note: downloads are down right now since I can't include a license with them. I may upload them to Github later, in which case I will link to them here.

deck

During my solo RPG adventures, I found that a lot of games or solo tools made use of a deck of cards, and while there are several of those around the house, they're pretty much all scattered everywhere. Okay, it's more like the closest things to full decks we have are missing a few cards. But I made this because numbers on a computer don't usually spill everywhere and get lost, and when they do, they're easier to replace.

Simply run deck shuffle to shuffle the deck and deck draw to draw a card and place it on the bottom of the deck. Alternatively, deck pick will pick a random card without touching the deck.

To set up: download the script here, download the 54-card deck template here, make a copy of it to be used as the deck, and specify their locations in the script (defaults to ~/.local/share/cards and ~/.local/share/deck.)

dmenukaomoji

Based on the emoji picker included in Luke Smith's dotfiles, only it picks from a list of kaomoji. Requires dmenu. Download here and hook it up to the list of kaomoji (default: ~/.local/share/kaomoji.)

fry

Deep fries your images. I am no longer sorry.

Fries an input file into an output file, or fries the image in the clipboard, but it doesn't seem to work in every situation. Use -d to specify "depth" of the frying, from 0 to 4. This is important because some images are more "sensitive" to frying.

reference for different depth levels, starring bubble cat

This has no practical use. I use it all the time. Download here.

rwrd

Short for "random word." Chooses a random word from a list of words, like this one. There's some unused code for selecting from different word lists.

I mostly use this for solo roleplaying, and first made it to use with the MUNE GM emulator. Download here.

other

Some scripts that don't require as much explanation as those above.

If you're having trouble getting these to work, have any suggestions for improvements, or hate the stylesheet for this page, feel free to email me.

Back home