mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-25 13:24:35 +02:00
xss-dimmer: add an outline on countdown timer
This commit is contained in:
parent
1bf02421ea
commit
432149fd91
1 changed files with 5 additions and 0 deletions
|
@ -68,6 +68,11 @@ def on_draw(widget, event, options, elapsed):
|
|||
_, _, twidth, theight, _, _ = cctx.text_extents(remaining)
|
||||
cctx.move_to(wwidth // 2 - twidth // 2, wheight // 2 + theight // 2)
|
||||
cctx.show_text(remaining)
|
||||
cctx.set_source_rgba(0, 0, 0, opacity*2)
|
||||
cctx.move_to(wwidth // 2 - twidth // 2, wheight // 2 + theight // 2)
|
||||
cctx.text_path(remaining)
|
||||
cctx.set_line_width(4)
|
||||
cctx.stroke()
|
||||
|
||||
# Rearm timer
|
||||
if not once:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue