Small fixes and app changeS

This commit is contained in:
Kevin Alberts 2024-02-20 16:03:00 +01:00
parent 2860100089
commit 5501824875
4 changed files with 33 additions and 8 deletions

View file

@ -13,6 +13,7 @@ from libqtile.widget import base
from libqtile.widget.base import ORIENTATION_HORIZONTAL
from libqtile.widget.battery import default_icon_path, load_battery, BatteryState
from libqtile.widget.wlan import get_status
from libqtile.widget.groupbox import GroupBox
from libqtile.command.base import expose_command
from kuro.utils.general import notify, BUTTON_LEFT, BUTTON_MIDDLE, BUTTON_RIGHT, BUTTON_DOWN, BUTTON_UP, BUTTON_MUTE, \
@ -944,3 +945,16 @@ class VolumeInfoWidget(DualPaneTextboxBase):
def run_app(self):
# Emulate button press.
self.button_press(0, 0, BUTTON_RIGHT)
class KuroGroupBox(GroupBox):
@property
def length(self):
try:
return super(KuroGroupBox, self).length
except AttributeError:
return 1
@length.setter
def length(self, length):
logger.warning(f"Setting groupbox length to {length}")