script
Create sensible file names for files from ZOOM audio recorders
On 21, Jul 2016 | No Comments | In code | By admin
Zoom recorders name their files ZOOM0001.WAV, etc. This is not terrible informative. I made a script to auto-generate file names based date of modification of file (to be accurate you need to set the date correctly in the recorder). It is a Haskell script using the turtle and WAVE packages. To run it make sure the packages are installed and do “runhaskell rename_zoom.hs /path/to/your/files”.
A simple music library browser using dmenu
On 17, May 2016 | No Comments | In code | By admin
I have a large music library, and all programs that I have tried (in Linux) are sluggish. Mostly I just want to select an album to play, and I want to do that quickly. I cooked up my own solution, a Haskell script that launches dmenu to select an album. It is instantaneous, I can get to an album from anywhere in the system in 3 or 4 seconds (I have the script assigned to cmd-alt-m). It requires generating a text file with all the music folders in the disk which should be updated regularly, I have also created a Haskell script for this. It uses the excellent turtle Haskell package for scripting. It also keeps track of the history of played albums.
script for generating list of folders: