Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
# volume changer+notifier, using notify-send, and tested only with xfce4-notifyd
# the syntax is the same of the "end" of what you'd use in plain amixer, see "$1"
# Ex.: 5%-, 5%+, 30, 60%
com=(`amixer set "Master" $1`)
# and here's why it won't work for everybody. The output of amixer includes
# things like soundcard features, which are array elements I'm just
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.
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.
Apparently the best way to go is to dinamically edit or switch/rename the smplayer.ini file, in the following...