summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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