@ -12,7 +12,7 @@ modules.Application(
separator=''
),
modules.ActionWrapperControl(
modules.PulseCtlVolumeControl(),
modules.VolumeControl(),
action='pavucontrol',
buttons=modules.core.Button.RIGHT
@ -2,4 +2,4 @@ from .application import Application
from .core import GroupedControl, ActionWrapperControl
from .caffeine import CaffeineControl
from .redshift import RedshiftControl
from .volume import PaCtlVolumeControl, VolumeControl, PulseCtlVolumeControl
from .volume import VolumeControl
@ -13,6 +13,7 @@ import stat
logger = logging.getLogger(__name__)
__all__ = ['Application']
class CreateFileType(argparse.FileType):
def __init__(self, mode='r', bufsize=-1, encoding=None, errors=None):
@ -1,10 +1,11 @@
import subprocess
import logging
from .toggle import ToggleControl
from .util import process_reaper, backoff
__all__ = ['CaffeineControl']
@ -6,6 +6,8 @@ import sys
import enum
__all__ = ['AbstractControl', 'GroupedControl', 'WrappingControl', 'ActionWrapperControl', 'Button']
@ -5,6 +5,7 @@ from .core import AbstractControl, action
__all__ = ['RedshiftControl']
class RedshiftControl(AbstractControl):
def __init__(self):
@ -2,6 +2,7 @@ import abc
from .core import AbstractControl, action
__all__ = ['ToggleControl']
class ToggleControl(AbstractControl, metaclass=abc.ABCMeta):
"""
@ -6,6 +6,7 @@ import time
from .core import AbstractControl
__all__ = ['ChildReaperControl', 'QuitControl', 'backoff', 'process_reaper']
class QuitControl(AbstractControl):
@property
@ -7,6 +7,8 @@ from .core import AbstractControl, action, Button
__all__ = ['AbstractControl', 'PaCtlVolumeControl', 'VolumeControl']
class AbstractVolumeControl(AbstractControl, metaclass=abc.ABCMeta):
@abc.abstractmethod