Skip to content

Instantly share code, notes, and snippets.

@Eltiech
Eltiech / fireview
Last active August 29, 2015 14:09
fireview
#!/bin/bash
#Author: Malsententia <Malsententia@gmail.com>
#Purpose: Uses a chromeless firefox window as an image viewer.
# Inferior to most other image viewers, but good for APNGs
# Opens kinda fast if you already have firefox running, I guess?
#Usage: fireview image.ext
#Requires: file - gets the resolution
# firefox - duh
# xrandr - determines monitor resolution for max window size
# xdotool - figures out which monitor your mouse is on, for above
@Eltiech
Eltiech / .mancolor.sh
Last active September 9, 2023 12:11
Procedurally generated man pages; each man page gets its own color scheme.
#Author: Malsententia <Malsententia@gmail.com>
#Purpose: Colorized man pages, with random themes seeded by
# the command and/or section. That is, every man page
# has its own consistent color scheme. For example
# man tar is always yellow, green, and blue, man less
# is always pink, blue, and yellow, etc.(on zsh, anyway)
#Note: Colorization will differ between bash and zsh, since their
# RNGs are different
#Requires: bash or zsh(may support others), and perl
#Setup: Name it .mancolor.sh, source it in your bashrc/zshrc,