Skip to content

Show modifiers only

Yuri D'Elia requested to merge nylen:update/modifiers-only into master

Created by: nylen

Hi, thanks for the nice program!

I wanted to use it for something a little bit different:

  • Only show modifier keys
  • Show the overlay window immediately when a modifier key is pressed
  • Hide the overlay window immediately when all modifier keys are released.

This PR isn't intended to be merged, but it shows how I achieved this. If there is interest, and someone can give me a bit of guidance on a decent way to pass "key released" events through the program's various layers, I could work on turning this into a set of options that enable this mode.

I also wanted to make the overlay window transparent except for the text, but I could not get this work (see notes under 5e0898fb for details). In fact the existing opacity setting does not work for me either, even though my WM supports transparency and the scr.get_rgba_colormap() operation succeeds.

Merge request reports