|
XMonad.Actions.Volume | Portability | unportable | Stability | unstable | Maintainer | daniel@wagner-home.com |
|
|
|
|
|
Description |
A minimal interface to the amixer command-line utility.
|
|
Synopsis |
|
|
|
|
Usage
|
|
You can use this module with the following in your ~/.xmonad/xmonad.hs:
import XMonad.Actions.Volume
then add appropriate keybinds to adjust the volume; for example:
, ((modMask x, xK_F8 ), lowerVolume 3 >> return ())
, ((modMask x, xK_F9 ), raiseVolume 3 >> return ())
, ((modMask x, xK_F10), toggleMute >> return ())
For detailed instructions on editing your key bindings, see
XMonad.Doc.Extending.
|
|
Common functions
|
|
|
Toggle mutedness on the default channels. Returns True when this attempts to mute the speakers and False when this attempts to unmute the speakers.
|
|
|
Raise the volume on the default channels the given number of percentage points. Returns the volume it attempts to set.
|
|
|
Lower the volume on the default channels the given number of percentage points. Returns the volume it attempts to set.
|
|
Low-level interface
|
|
|
Get the geometric mean of the volumes on the default channels.
|
|
|
Get the mutedness of the default channels. Returns True if any of the channels are muted, and False otherwise.
|
|
|
Get both the volume and the mutedness of the default channels.
|
|
|
Attempt to set the default channels to a volume given in percentage of maximum.
|
|
|
Attempt to set the muting on the default channels.
|
|
|
Attempt to set both the volume in percent and the muting on the default channels.
|
|
|
Apply a function to the volume of the default channels, and return the modified value.
|
|
|
Apply a function to the muting on the default channels, and return the modified value.
|
|
|
Apply a function to both the volume and the muting of the default channels, and return the modified values.
|
|
Variants that take a list of channels
|
|
|
Channels are what amixer calls "simple controls". The most common ones are "Master", "Wave", and "PCM", so these are included in defaultChannels. It is guaranteed to be safe to pass channel names that don't exist on the default sound device to the *Channels family of functions.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Default options for displaying the volume.
|
|
|
Helper function to output current volume via osd_cat.(Needs the osd_cat executable).
The second parameter is passed True when the speakers are muted and should
return the options to pass to osd_cat.
|
|
Produced by Haddock version 2.6.0 |