|
|
|
@ -4,8 +4,11 @@ import modules |
|
|
|
|
import modules.core |
|
|
|
|
from modules.audiooutput import PulseCtlDefaultSinkCycleAction |
|
|
|
|
from modules.audiooutput import naming_map, sink_filter, sink_input_filter |
|
|
|
|
from modules.cycle import * |
|
|
|
|
from modules.toggle import CommandToggleControl |
|
|
|
|
|
|
|
|
|
#logging.basicConfig(level=logging.DEBUG) |
|
|
|
|
logging.basicConfig(level=logging.DEBUG) |
|
|
|
|
logging.getLogger('modules.core').setLevel(logging.WARNING) |
|
|
|
|
|
|
|
|
|
modules.Application( |
|
|
|
|
modules.GroupedControl( |
|
|
|
@ -13,11 +16,7 @@ modules.Application( |
|
|
|
|
modules.RedshiftControl(), |
|
|
|
|
separator='' |
|
|
|
|
), |
|
|
|
|
modules.ActionWrapperControl( |
|
|
|
|
modules.VolumeControl(), |
|
|
|
|
action='pavucontrol', |
|
|
|
|
buttons=modules.core.Button.RIGHT |
|
|
|
|
), |
|
|
|
|
modules.GroupedControl( |
|
|
|
|
CycleControl( |
|
|
|
|
PulseCtlDefaultSinkCycleAction( |
|
|
|
|
naming_map=naming_map.partial( |
|
|
|
@ -35,6 +34,18 @@ modules.Application( |
|
|
|
|
sink_filter=sink_filter.hardware_only, |
|
|
|
|
sink_input_filter=sink_input_filter.connected_sink |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
modules.ActionWrapperControl( |
|
|
|
|
CommandToggleControl('eq', ['pactl', 'load-module', 'module-equalizer-sink'], ['pactl', 'unload-module', 'module-equalizer-sink']), |
|
|
|
|
action='qpaeq', |
|
|
|
|
buttons=modules.core.Button.RIGHT |
|
|
|
|
), |
|
|
|
|
modules.ActionWrapperControl( |
|
|
|
|
modules.VolumeControl(), |
|
|
|
|
action='pavucontrol', |
|
|
|
|
buttons=modules.core.Button.RIGHT |
|
|
|
|
), |
|
|
|
|
separator=' ' |
|
|
|
|
) |
|
|
|
|
).run() |
|
|
|
|
|
|
|
|
|