Keyboard Shortcut for Changing Volume
samuel verstraete
samuel.verstraete at gmail.com
Fri Feb 2 08:08:47 CET 2007
maybe take a look at the notification daemon? you could assign both
the amixer command and the notification command to the shortcut
something like:
amixer set Master 5- && notify-send -i
/usr/share/icons/Rodent/48x48/stock/stock_volume.png "VOLUME" "`amixer
sget Master | grep "Front Left:" | cut -d"[" -f2 | sed "s/\]//g`"
something like that :p
On 2/2/07, Erik Harrison <erikharrison at gmail.com> wrote:
> On 2/2/07, shadowkernel <shadowkernel at gmail.com> wrote:
> >
> >
> > Erik Harrison wrote:
> > > On 2/1/07, Auke Kok <sofar at foo-projects.org> wrote:
> > >
> > >> shadowkernel wrote:
> > >>
> > >>> Hi everyone,
> > >>>
> > >>> I want to use CTRL+ALT+UP or DOWN to increase or decrease the sound card
> > >>> volume. I have looked alsa-utils and xfce4-mixer but did not find useful
> > >>> interfaces for doing so. Would anyone please tell how to finish this
> > >>> task? When playing a movie under full screen, this is very useful to me.
> > >>>
> > >> just create a new shortcut in the keyboard shortcuts settings panel. You can
> > >> bind ctrl-alt-up and down to any shell command. You just have to figure out
> > >> which ones that are for alsa, cos I have no clue :)
> > >>
> > >
> > > $ man amixer
> > >
> > >
> > Thanks. I have tried alsamixer and it seems not to provide interfaces.
> > amixer provides interfaces.
> >
> > amixer sset Master VOLUME
> >
> > So the next step is to write a simple script to run amixer in some way
> > when key pressed.
> >
> > Please allow me to another question. I want a volume bar to be displayed
> > in the center of the screen when adjusting volumes, but not in the panel
> > because it is too small. What should I do?
>
> Not quite sure, really. If anyone knows of a tool to script OSD stuff,
> I would appreciate knowing, but that's outside the scope of Xfce.
>
> >
> > Thanks in advance.
> > >> Cheers,
> > >>
> > >> Auke
> > >> _______________________________________________
> > >> Xfce mailing list
> > >> Xfce at xfce.org
> > >> http://foo-projects.org/mailman/listinfo/xfce
> > >> http://www.xfce.org
> > >>
> > >>
> > >
> > >
> > >
> > _______________________________________________
> > Xfce mailing list
> > Xfce at xfce.org
> > http://foo-projects.org/mailman/listinfo/xfce
> > http://www.xfce.org
> >
>
>
> --
> Erik
>
> <@kazin> why does php have 'echo' and 'print'? Do they do different things?
> <Bluefoxicy> kazin: echo prints in a big empty room
> _______________________________________________
> Xfce mailing list
> Xfce at xfce.org
> http://foo-projects.org/mailman/listinfo/xfce
> http://www.xfce.org
>
More information about the Xfce
mailing list