Skip to content

Instantly share code, notes, and snippets.

View makiftasova's full-sized avatar

Mehmet Akif TAŞOVA makiftasova

  • Istanbul, Turkey
View GitHub Profile
#include <stdio.h> /* printf, fgets */
#include <stdlib.h> /* atoi */
#include <string.h>
/**
* atoi_r : a wrapper for atoi.
* atoi from stdlib.h has undefined behaviour if input does not contain
* a valid integer value. this function handles that undefined behaviour
* for non negative integers.
*
@makiftasova
makiftasova / 50-elantech-touchpad.conf
Last active June 18, 2020 11:57
[libinput] /usr/share/X11/xorg.conf.d/50-elantech-touchpad.conf file for configuring ETPS/2 Elantech touchpads
Section "InputClass"
Identifier "touchpad"
MatchIsTouchpad "on"
MatchProduct "ETPS/2|Elantech"
Driver "libinput"
Option "Tapping" "on"
Option "TappingButtonMap" "lmr"
Option "DisableWhileTyping" "on"
Option "DisableWhileTyping" "on"
Option "NaturalScrolling" "on"