Skip to content

Commit

Permalink
Added autostart service
Browse files Browse the repository at this point in the history
  • Loading branch information
masskro0 committed Nov 16, 2023
1 parent 749f26e commit 6fee36b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions block-touchpad.desktop
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6fee36b

Please sign in to comment.