From c9eb76bfb5020191e08233f4a420faedc4197f5f Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Tue, 21 Feb 2023 18:22:32 -0800 Subject: 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. --- src/key.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/key.c b/src/key.c index 34af4f7..cf1be93 100644 --- a/src/key.c +++ b/src/key.c @@ -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; -- cgit v1.2.3