Small fixes and app changeS
This commit is contained in:
parent
2860100089
commit
5501824875
4 changed files with 33 additions and 8 deletions
|
@ -195,7 +195,7 @@ def test_popups(qtile):
|
|||
|
||||
|
||||
def display_wm_class(qtile):
|
||||
window = qtile.currentWindow if qtile else None
|
||||
window = qtile.current_window if qtile else None
|
||||
|
||||
if window:
|
||||
wm_class = window.get_wm_class() or None
|
||||
|
|
|
@ -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}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue