summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-02-21 18:22:32 -0800
committerVito Caputo <vcaputo@pengaru.com>2023-02-21 18:22:32 -0800
commitc9eb76bfb5020191e08233f4a420faedc4197f5f (patch)
treeb79f9d6852e08ed4b5747c63196e128ee789b243
parentfa698f81cb46db0a2f8f658e8f88e62f816d2daf (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.c4
1 files changed, 4 insertions, 0 deletions
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;
© All Rights Reserved