General updates and fixes, ghostty terminal emulator, wallust colors, different wallpaper set at night
This commit is contained in:
parent
1e65025045
commit
12238c2b6c
5 changed files with 46 additions and 23 deletions
|
@ -11,6 +11,7 @@ import six
|
|||
import unicodedata
|
||||
from libqtile import bar, pangocffi
|
||||
from libqtile.log_utils import logger
|
||||
from libqtile.command.base import expose_command
|
||||
from libqtile.widget import base
|
||||
from libqtile.widget.base import ORIENTATION_HORIZONTAL
|
||||
from libqtile.widget.battery import default_icon_path, load_battery, BatteryState
|
||||
|
@ -242,18 +243,19 @@ class DualPaneTextboxBase(base._Widget):
|
|||
self.bar.draw()
|
||||
self.changed = False
|
||||
|
||||
def cmd_set_font(self, font=base.UNSPECIFIED, fontsize_left=base.UNSPECIFIED, fontsize_right=base.UNSPECIFIED, fontshadow=base.UNSPECIFIED):
|
||||
@expose_command()
|
||||
def set_font(self, font=None, fontsize_left=None, fontsize_right=None, fontshadow=None):
|
||||
"""
|
||||
Change the font used by this widget. If font is None, the current
|
||||
font is used.
|
||||
"""
|
||||
if font is not base.UNSPECIFIED:
|
||||
if font is not None:
|
||||
self.font = font
|
||||
if fontsize_left is not base.UNSPECIFIED:
|
||||
if fontsize_left is not None:
|
||||
self.fontsize_left = fontsize_left
|
||||
if fontsize_right is not base.UNSPECIFIED:
|
||||
if fontsize_right is not None:
|
||||
self.fontsize_right = fontsize_right
|
||||
if fontshadow is not base.UNSPECIFIED:
|
||||
if fontshadow is not None:
|
||||
self.fontshadow = fontshadow
|
||||
self.bar.draw()
|
||||
|
||||
|
@ -354,7 +356,8 @@ class MediaWidget(base.InLoopPollText):
|
|||
# logger.warning("{}")
|
||||
pass
|
||||
|
||||
def cmd_update_custom_player(self, player_name, data):
|
||||
@expose_command()
|
||||
def update_custom_player(self, player_name, data):
|
||||
# Update firefox player
|
||||
if player_name.startswith("firefox"):
|
||||
if data['playing'] and data['muted']:
|
||||
|
@ -538,7 +541,7 @@ class AudioVisualizerWidget(_Graph):
|
|||
|
||||
class KuroCurrentLayoutIcon(CurrentLayoutIcon):
|
||||
def _get_layout_names(self):
|
||||
names = super(KuroCurrentLayoutIcon, self)._get_layout_names()
|
||||
names = list(super(KuroCurrentLayoutIcon, self)._get_layout_names())
|
||||
|
||||
from kuro.utils import layouts as kuro_layouts
|
||||
from libqtile.layout.base import Layout
|
||||
|
@ -550,7 +553,7 @@ class KuroCurrentLayoutIcon(CurrentLayoutIcon):
|
|||
]
|
||||
names.extend(klayouts)
|
||||
|
||||
return list(set(names))
|
||||
return set(names)
|
||||
|
||||
|
||||
class KuroTaskList(TaskList):
|
||||
|
@ -1321,18 +1324,22 @@ class VolumeInfoWidget(DualPaneTextboxBase):
|
|||
|
||||
self.update()
|
||||
|
||||
def cmd_increase_vol(self):
|
||||
@expose_command()
|
||||
def increase_vol(self):
|
||||
# Emulate button press.
|
||||
self.button_press(0, 0, BUTTON_UP)
|
||||
|
||||
def cmd_decrease_vol(self):
|
||||
@expose_command()
|
||||
def decrease_vol(self):
|
||||
# Emulate button press.
|
||||
self.button_press(0, 0, BUTTON_DOWN)
|
||||
|
||||
def cmd_mute(self):
|
||||
@expose_command()
|
||||
def mute(self):
|
||||
# Emulate button press.
|
||||
self.button_press(0, 0, BUTTON_MUTE)
|
||||
|
||||
def cmd_run_app(self):
|
||||
@expose_command()
|
||||
def run_app(self):
|
||||
# Emulate button press.
|
||||
self.button_press(0, 0, BUTTON_RIGHT)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue