Module musicctl.lua
Fine-grained media player control for awesomewm.
Controls playback and volume of MPRIS-compatable media
sources.
Info:
-
beautiful.musicctl_col
-
Primary accent color of widgets
Type:
- color
string
hex color code (default: '#a7c080')
-
beautiful.musicctl_col_alt
-
Secondary accent color of widgets
Type:
- color
string
hex color code (default: '#404d44')
-
beautiful.musicctl_fg
-
Foreground color of widgets
Type:
- color
string
hex color code (default: '#d3c6aa')
-
beautiful.musicctl_bg
-
Background color of widgets
Type:
- color
string
hex color code (default: '#2f383e')
-
switch_mode ()
-
Iterate through table 'modes', taking control of player
-
set_modes (newmodes)
-
Set the table of controlled modes
Parameters:
- newmodes
table
string array of modes to control
Usage:
M.set_modes({ 'vlc', 'spotify'})
-
playback_toggle ()
-
Toggle playback of selected player
-
playback_next ()
-
Next song of controlled player
-
playback_previous ()
-
Previous song of controlled player
-
vol_increment (amount)
-
Granular volume increment control
Parameters:
Usage:
vol_increment('0.1-') vol_increment('0.1+')
-
vol_up ()
-
Increase volume of current player
-
vol_down ()
-
Decrease volume of current player
-
vol_mute ()
-
Mute current player
-
vol_const (num)
-
Set volume to a constant value
Parameters:
- num
int
volume to set (0.01 - 1), if ooutside these bounds, defaults to 0.02