chrisdeeming / scripts

Collection of arguably useful shell scripts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Assorted Shellscripts

This a just a collection of arguably useful shell scripts.

Renames images using EXIF data or certain filename patterns so that they conform to a standard, date-time-based naming scheme.

Periodically checks the current battery level and alerts the user if it is low (and not charging).

Uses LaTeX to create a (portrait A4) PDF from the images passed as parameters. Shrinks images to fit the page.

Takes a Markdown file with special image tags and creates an image gallery from it. Comes with a style and footer you might want to adapt.

Copies music files to a thumbdrive/music player, converting down to the best format your player supports and renaming for FAT32 compatibility.

Controls pulseaudio volume via shell. Since pulseaudio has a crappy CLI interface, this is useful if you want to assign media hotkeys their proper function under less flashy window managers such as Fluxbox.

In its basic mode, this script inverts all colors in a PDF, including embedded images. You can also specify a more carefully chosen set of color replacement rules.

Note: Deprecated in favor of pdfinvert.rb as of af81254

In its basic mode, this script inverts all colors in a PDF, including embedded images. You can also specify a more carefully chosen set of color replacement rules and exclude images from the conversion.

Splits PDFs into constant-sized chunks. Useful if you create bulk letters, numbered exams or similar and need one file per instance, e.g. for stapling printers.

Downloads photos from compatible cameras without resorting to mounting them as mass-storage devices. Also rotates them according to information provided by the camera.

An elementary one-liner that compiles Rmd files into HTML.

Removes obsolete RAW image files, i.e. such whose companion JPGs have been deleted.

Provides a narrow interface to xrandr that allows you to switch easily between single, dual, and mirror screen setups. Tries to avoid some pitfalls like enabled but disconnected displays.

Renders and displays text as qr-code.

A simple script that creates a printable PDF backup of an SSH key. Does currently not include any error handling.

Rotates through a set of hard-coded (but easily changed) keyboard layouts. Useful for tying to a shortcut (or direct use) under window managers that do not have convenient support for multiple layouts.

Ever wondered which package provided that one LaTeX command you remember? TeX Live Which looks for command, environment, package and document class definitions in your local TeX Live installation.

Converts TikZ images specified in their own file to PNG. Check the script for quality settings.

Converts TikZ images specified in their own file to SVG.

Transposes a regular LaTeX tabular table.

Wraps omxplayer to avoid a couple of usability issues, e.g.

  • hides shell background during video playback,
  • supports playlists and
  • supports (recursive) playback of multiple files and directories.

Determines in which file the XDG default application for the given MIME type is set.

About

Collection of arguably useful shell scripts.

License:GNU General Public License v3.0


Languages

Language:Ruby 55.5%Language:Shell 38.6%Language:Go 3.6%Language:CSS 2.1%Language:HTML 0.2%