Float out the bar a little bit if there are no windows, or multiple windows. Make single windows always fullscreen with no margins. Make bar transparent except when hovered over.

This commit is contained in:
Kevin Alberts 2026-02-08 22:36:33 +01:00
parent fa5bbee56e
commit d6870c56b0
6 changed files with 178 additions and 10 deletions

View file

@ -16,10 +16,44 @@ from libqtile.widget.wlan import get_status
from libqtile.widget.groupbox import GroupBox
from libqtile.command.base import expose_command
from qtile_extras.widget.decorations import RectDecoration
from kuro.utils.general import notify, BUTTON_LEFT, BUTTON_MIDDLE, BUTTON_RIGHT, BUTTON_DOWN, BUTTON_UP, BUTTON_MUTE, \
call_process, execute
def get_widget_style(config):
# active=Config.get('colour_groupbox_icon_active', '#ffffff'),
# borderwidth=Config.get('width_groupbox_border', 1),
# disable_drag=Config.get('bool_groupbox_disable_drag', False),
# font=Config.get('font_groupbox', 'Arial'),
# fontsize=Config.get('fontsize_groupbox', 15),
# highlight_color=Config.get("colour_groupbox_border_normal", '#444444'),
# inactive=Config.get('colour_groupbox_icon_inactive', '#444444'),
# rounded=Config.get('bool_groupbox_rounded_borders', True),
# this_current_screen_border=Config.get('colour_groupbox_border_focus', '#ffffff'),
# this_screen_border=Config.get('colour_groupbox_border_focus', '#ffffff'),
# margin=Config.get('margin_groupbox', 0),
# Config.foreground = colors['color15']
# Config.background = colors['color0']
# Config.highlight = colors['color3']
# Config.inactive_light = colors['color4']
# Config.inactive_dark = colors['color5']
# Config.bar_background = colors['color1']
return {
"foreground": "#ffffff",
"decorations": [
RectDecoration(
colour=config.background,
radius=12,
filled=True,
group=True,
) # type: ignore
],
}
class DualPaneTextboxBase(base._Widget):
"""
Base class for widgets that are two boxes next to each other both containing text.