$ 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
with the contents:
#!/bin/bash # o hai from purpleidea exec totem -- "[email protected]"
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:
|nautilus is pretty smart and even lets you know that this folder is special|
I wrote this to demonstrate a cute nautilus hack. Hopefully you’ll use this idea to extend this feature for something even more useful.