diff --git a/block-touchpad.desktop b/block-touchpad.desktop new file mode 100644 index 0000000..12fabe4 --- /dev/null +++ b/block-touchpad.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Type=Application +Exec=/home/michael/block_touchpad/block_touchpad +Comment=Blocks Touchpad While Typing +Name=Block Touchpad Autostart +X-MATE-Autostart-Phase=Applications +X-MATE-Autostart-Delay=2 +X-MATE-Autostart-enabled=true +X-GNOME-Autostart-Phase=Applications +X-GNOME-Autostart-Delay=2 +X-GNOME-Autostart-enabled=true diff --git a/main.c b/main.c index 0c394ae..ecec53b 100644 --- a/main.c +++ b/main.c @@ -92,7 +92,7 @@ void onExit() { int main(int argc, char* argv[]) { signal(SIGINT, onExit); int c; // Used for command line parsing. - double timeout = 1500.0; // Timeout between last keystroke and re-enabling the touchpad. + double timeout = 1000.0; // Timeout between last keystroke and re-enabling the touchpad. int keyboard_event_id = -1; // Keystroke event ID passed by the user. if (argc < 2)