Master SDN hacker Flavio sent me some tunes. They were sitting on my desktop in a folder:
$ ls ~/Desktop/ uncopyrighted_tunes_from_flavio/
I wanted to listen them while hacking, but what was the easiest way…? I wanted to use the nautilus file browser to select which folder to play, and the totem music/video player to do the playing.
Drop a file named totem
into:
~/.local/share/nautilus/scripts/
with the contents:
#!/bin/bash # o hai from purpleidea exec totem -- "$@"
and make it executable with:
$ chmod u+x ~/.local/share/nautilus/scripts/totem
Now right-click on that music folder in nautilus, and you should see a Scripts
menu. In it there will be a totem
menu item. Clicking on it should load up all the contents in totem and you’ll be rocking out in no time. You can also run scripts with a selection of various files.
Here’s a screenshot:
I wrote this to demonstrate a cute nautilus hack. Hopefully you’ll use this idea to extend this feature for something even more useful.
Happy hacking,
James
