You are not logged in.
Hi,
I have just discovered the wonderful program xbindkeys, and am thus setting all my keybindings. I ran into a problem when I came to adding the music keybinding [EDIT]. I don't use a gui, just command line mplayer, so this is a bit problematic, as I want to be able to launch a shell and then run a command inside that shell (in this case cd /home/jhl/music/mplaylist && mplayer *). So when I try :
konsole -e cd /home/jhl/music/myplaylist && mplayer *
It does not do what I expected . I've looked around here and on google for an answer, but have yet to find one.
All help is greatly appreciated .
-Josh
Last edited by luskjh (2009-07-12 17:00:12)
Calm down, it is only ones and zeroes.
-flyingfsck ( on /. )
Offline
the quickest thing to do would be to put the bultiple commands in a script and execute that.
Dusty
Offline
[edit]wrong line of thought i guess.
still try the -playlist switch for mplayer if it is a playlist you are opening.
Last edited by droog (2009-07-12 03:04:55)
Offline
Try
konsole -e sh -c "cd /home/jhl/music/myplaylist && mplayer *"
Offline
If none of that works, see if KDE has an auto-/launcher type thing which has the option of "run in terminal". If it does you can either create a launcher and keybind to that, or scour through the KDE tree for how it goes about doing it. :-)
Offline
Crouse's method worked (thanks crouse )
And the [EDIT] was because I repeated 'adding the music keybindings' twice, and didn't catch it when reviewing the thread, opps .
Thanks for all the help .
-Josh
Calm down, it is only ones and zeroes.
-flyingfsck ( on /. )
Offline