diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-02-21 18:22:32 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-02-21 18:22:32 -0800 |
commit | c9eb76bfb5020191e08233f4a420faedc4197f5f (patch) | |
tree | b79f9d6852e08ed4b5747c63196e128ee789b243 | |
parent | fa698f81cb46db0a2f8f658e8f88e62f816d2daf (diff) |
key: add Mod1+z for 0Hz (disabled) monitoring
Now you can explicitly set 0Hz for the monitoring, instead of
hitting a pile of Mod1+Left to get there. Leaving the blind
hammering on Mod1+Left to just lower the frequency to 1Hz rather
than disabling it.
-rw-r--r-- | src/key.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -471,6 +471,10 @@ void vwm_key_pressed(vwm_t *vwm, Window win, XKeyPressedEvent *keypress) vwm_charts_rate_decrease(vwm->charts); break; + case XK_z: /* zero sampling frequency (disables monitoring) */ + vwm_charts_rate_set(vwm->charts, 0); + break; + default: VWM_TRACE("Unhandled keycode: %x", (unsigned int)sym); break; |