2026-02-23 17:56:46 +01:00
|
|
|
from libqtile import qtile
|
|
|
|
|
|
|
|
|
|
from qtile_extras import widget
|
|
|
|
|
from qtile_extras.popup.toolkit import (
|
|
|
|
|
PopupRelativeLayout,
|
|
|
|
|
PopupWidget,
|
|
|
|
|
)
|
|
|
|
|
|
2026-02-24 21:42:25 +01:00
|
|
|
from colors import gruvbox_dark
|
2026-02-23 17:56:46 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
def monitor(qtile):
|
|
|
|
|
layout = PopupRelativeLayout(
|
|
|
|
|
qtile,
|
|
|
|
|
rows=7,
|
|
|
|
|
cols=9,
|
|
|
|
|
width=600,
|
|
|
|
|
height=420,
|
|
|
|
|
opacity=0.8,
|
|
|
|
|
hide_on_mouse_leave=True,
|
|
|
|
|
close_on_click=False,
|
|
|
|
|
border_width=0,
|
|
|
|
|
background=gruvbox_dark["bg0_soft"],
|
|
|
|
|
controls=[],
|
|
|
|
|
)
|
|
|
|
|
layout.show(
|
|
|
|
|
relative_to=5,
|
|
|
|
|
relative_to_bar=True,
|
|
|
|
|
# y=3,
|
|
|
|
|
# x=-3,
|
|
|
|
|
)
|