This repository contains some utility scripts which I found useful in my workflow.
The scripts are tested and used on Linux; they might or might not work on other operating systems.
They can be run directly from the location where the repository is checked out. For convenience, there is also a
Makefile which provides an install target.
To install the scripts on your machine, simply call make install in the repository root.
Utility to either focus a program on an x-window system if it is already started, or start it otherwise.
If the program is started by the script, it runs in the background to have a similar experience to the case when the program is not started.
The script depends on wmctrl, which need to be installed on the target system.
focus-or-start PROGRAM [ARGS...]
where
PROGRAMis the path of the program to startARGSare possible arguments to the program. They will only be evaluated if the program is started byfocus-or-start; if the program is already running, they will be ignored.
Batch script to resize images in a directory. Puts the resized images into a sub directory.
resize-images [-S SOURCE] [-T TARGET] [-f FILE] [-s SIZE] [-h]
where
-S SOURCESpecifies the source folder to read from. Default is the current directory.-T TARGETSpecifies the target directory. Default isPublish-f FILESpecifies a file to process. If not given,<TARGET>.txt(from the target name, see above) is used if it exists; if this file does not exist,resize.txtis used. If resize.txt file does not exist either, then all files matching*.JPGor*.jpgare processed.-fPrints this help text and exits.-s SIZEResizes the images to the specified size.SIZEmust be in the form<WIDTH>x<HEIGHT>. Default is2048x1536.
To resize the images, the convert command of imagemagick is used.