Visit the LQ Articles and Editorials section
Go Back > Blogs
User Name



Timeline / "slider" for Openbox' MPC pipe menu (

Posted 08-17-2015 at 08:27 PM by the dsc (linux-related notes)
Updated 09-07-2015 at 03:12 AM by the dsc

My most recent customization/tweak to a script that isn't really mine:

Change the denominator of "slice1" and the put the same number in the loop in order to have more or less time slices. It seems there may be something somewhat wrong with the maths, but seems to work nevertheless.

  echo "  <separator />"
    dur=$(mpc -f %time% | head -n 1)
Posted in Uncategorized
Views 253 Comments 0 the dsc is offline

Passing some mplayer options to smplayer from a script

Posted 12-18-2014 at 01:56 PM by the dsc (linux-related notes)
Updated 12-28-2014 at 07:22 PM by the dsc (fixing the method)

PS/edit.: renamed the title as it's really something that makes more sense from within scripts, not from the command line itself. Unless perhaps one makes a wrapper script that edits smplayer.ini with whatever parameters are set by command line and resets afterwards, while still somehow preserving smplayer's own syntax, if that's even possible.

Major edit:

Apparently the best way to go is to dinamically edit or switch/rename the smplayer.ini file, in the following...
Posted in Uncategorized
Views 691 Comments 0 the dsc is offline

Random song constrained by keyword on MPC

Posted 08-12-2010 at 01:17 AM by the dsc (linux-related notes)
Updated 08-12-2010 at 01:21 AM by the dsc
Tags mpc, music

Save it as a script, perhaps even as an alias:

mpc play `shuf -e $(mpc playlist -f "[(%position%) %artist% %title% %file%]" |egrep $1 | grep -Eo "\(.*\)"| sed 's:).*::g' | sed 's:(::g') -n 1`
Then type at some terminal:

mpcr[andom] <artist/keyword>

(or however you chose to name/alias it)

And mpc will play a random song from the pool resulting from the keyword filter.

I guess the whole...
Posted in Uncategorized
Views 986 Comments 1 the dsc is offline


All times are GMT -5. The time now is 11:31 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration