This commit is contained in:
2026-02-24 17:15:18 +01:00
3 changed files with 94 additions and 203 deletions

View File

@@ -22,7 +22,7 @@ from popups.calendar import calendar
from popups.mpris2_layout import MPRIS2_LAYOUT
from popups.volume_notification import VOL_POPUP
from res.themes.colors import gruvbox_dark
from res.themes.colors import gruvbox_dark as THEME
# --------------------------------------------------------
@@ -31,14 +31,10 @@ from res.themes.colors import gruvbox_dark
def get_groupbox_rules(monitor_specific=True):
# Base rules applied to all GroupBoxes
rules = [
GroupBoxRule(text_colour=gruvbox_dark["bg3"]).when(
focused=False, occupied=True
),
GroupBoxRule(text_colour=gruvbox_dark["aqua"]).when(
focused=False, occupied=False
),
GroupBoxRule(text_colour=gruvbox_dark["fg3"]).when(focused=True),
GroupBoxRule(text_colour=gruvbox_dark["red"]).when(
GroupBoxRule(text_colour=THEME["bg3"]).when(focused=False, occupied=True),
GroupBoxRule(text_colour=THEME["aqua"]).when(focused=False, occupied=False),
GroupBoxRule(text_colour=THEME["fg3"]).when(focused=True),
GroupBoxRule(text_colour=THEME["red"]).when(
focused=False, occupied=True, urgent=True
),
GroupBoxRule(visible=False).when(focused=False, occupied=False),
@@ -56,7 +52,7 @@ def get_groupbox_rules(monitor_specific=True):
widget_defaults = dict(
font="Roboto Flex",
fontsize=20,
foreground=gruvbox_dark["fg1"],
foreground=THEME["fg1"],
)
extension_defaults = widget_defaults.copy()
@@ -79,7 +75,7 @@ screens = [
widget.TextBox(
text="",
fontsize=24,
foreground=gruvbox_dark["blue"],
foreground=THEME["blue"],
mouse_callbacks={"Button1": lazy.function(start_menu)},
),
widget.GroupBox2(
@@ -122,10 +118,17 @@ screens = [
popup_show_args={"relative_to": 8, "y": -70},
),
],
<<<<<<< HEAD
background=BACKGROUND,
opacity=OPACITY,
size=SIZE,
margin=MARGIN,
=======
background=THEME["bg0_hard"],
opacity=0.75,
size=32,
margin=[3, 3, 0, 3],
>>>>>>> unify_colors
),
),
Screen(
@@ -135,7 +138,7 @@ screens = [
widget.TextBox(
text="",
fontsize=24,
foreground=gruvbox_dark["blue"],
foreground=THEME["blue"],
mouse_callbacks={"Button1": lazy.function(start_menu)},
),
widget.GroupBox2(
@@ -174,10 +177,17 @@ screens = [
mouse_callbacks={"Button1": lazy.function(power_menu)},
),
],
<<<<<<< HEAD
background=BACKGROUND,
opacity=OPACITY,
size=SIZE,
margin=MARGIN,
=======
background=THEME["bg0_hard"],
opacity=0.75,
size=32,
margin=[3, 3, 0, 3],
>>>>>>> unify_colors
),
),
Screen(
@@ -187,7 +197,7 @@ screens = [
widget.TextBox(
text="",
fontsize=24,
foreground=gruvbox_dark["blue"],
foreground=THEME["blue"],
mouse_callbacks={"Button1": lazy.function(start_menu)},
),
widget.GroupBox2(
@@ -212,7 +222,7 @@ screens = [
width=350,
scroll=True,
scroll_clear=True,
foreground=gruvbox_dark["fg1"],
foreground=THEME["fg1"],
format="{xesam:title} - {xesam:artist}",
paused_text="{track} ",
popup_layout=MPRIS2_LAYOUT,
@@ -229,10 +239,17 @@ screens = [
mouse_callbacks={"Button1": lazy.function(power_menu)},
),
],
<<<<<<< HEAD
background=BACKGROUND,
opacity=OPACITY,
size=SIZE,
margin=MARGIN,
=======
background=THEME["bg0_hard"],
opacity=0.75,
size=32,
margin=[3, 3, 0, 3],
>>>>>>> unify_colors
),
),
]
@@ -242,12 +259,17 @@ notifier = Notifier(
width=350,
height=80,
format="<b>{summary}</b>\n{app_name}\n{body}",
<<<<<<< HEAD
# file_name="/home/cerberus/.config/qtile/res/images/normal.png", # Not working
foreground=gruvbox_dark["fg1"],
=======
# file_name='/home/cerberus/.config/qtile/normal.png', # Not working
foreground=THEME["fg1"],
>>>>>>> unify_colors
background=(
gruvbox_dark["bg0_hard"],
gruvbox_dark["bg0_hard"],
gruvbox_dark["orange"],
THEME["bg0_hard"],
THEME["bg0_hard"],
THEME["orange"],
),
horizontal_padding=10,
vertical_padding=10,