Then there's the problem at hand: manipulating playlists in the classic UI is cumbersome as hell. I only have two playlists: one which contains all files, and one in the background which contains favorites. I want to easily copy a song i like from one to the other without a bunch of menus or keymashing.
I wrote a simple script based on xdotool:
#!/bin/bash # this script externally issues commands required to copy tracks # from the main playlist to the secondary "favorites" playlist # without invoking the GTK UI with bad memory leaks # using windowactivate instead of windowfocus causes cross-$DISPLAY bugginess xdotool search --screen 1 --name "Audacious Playlist" windowfocus; sleep 0.1; xdotool key Ctrl+c sleep 0.1; xdotool key Tab sleep 0.1; xdotool key Ctrl+v sleep 0.1; xdotool key Shift+Tab
I then stuck it in a panel launcher on the same X display. Now all i need to do is select the songs and click the panel button. I suppose one could use a global keybinding instead.
No comments:
Post a Comment