Replace synclient by xinput

Synaptic has been deprecated for libinput
master
Pierre Neidhardt 2017-05-19 14:36:47 +02:00
parent 82f9c694fc
commit 8f8091172e
2 changed files with 4 additions and 4 deletions

View File

@ -333,11 +333,11 @@ globalkeys = awful.util.table.join(
{description="lock screen", group="awesome"}),
-- Touchpad control
awful.key({ }, "XF86TouchpadToggle", function () os.execute("synclient TouchpadOff=`synclient -l | grep -c 'TouchpadOff.*=.*0'`") end,
awful.key({ }, "XF86TouchpadToggle", function () os.execute('xinput list-props "SynPS/2 Synaptics TouchPad" | grep -q "Device Enabled [^:]*:[[:space:]]*1" && xinput disable "SynPS/2 Synaptics TouchPad" || xinput enable "SynPS/2 Synaptics TouchPad"') end,
{description="toggle touchpad", group="mouse"}),
awful.key({ }, "XF86Tools", function () os.execute("synclient TouchpadOff=`synclient -l | grep -c 'TouchpadOff.*=.*0'`") end,
awful.key({ }, "XF86Tools", function () os.execute('xinput list-props "SynPS/2 Synaptics TouchPad" | grep -q "Device Enabled [^:]*:[[:space:]]*1" && xinput disable "SynPS/2 Synaptics TouchPad" || xinput enable "SynPS/2 Synaptics TouchPad"') end,
{description="toggle touchpad", group="mouse"}),
awful.key({ modkey, "Control" }, "m", function () os.execute("synclient TouchpadOff=`synclient -l | grep -c 'TouchpadOff.*=.*0'`") end,
awful.key({ modkey, "Control" }, "m", function () os.execute('xinput list-props "SynPS/2 Synaptics TouchPad" | grep -q "Device Enabled [^:]*:[[:space:]]*1" && xinput disable "SynPS/2 Synaptics TouchPad" || xinput enable "SynPS/2 Synaptics TouchPad"') end,
{description="toggle touchpad", group="mouse"}),
awful.key({ modkey, "Shift" }, "m", move_mouse_away,
{description="move mouse away", group="mouse"}),

View File

@ -24,7 +24,7 @@ EOF
## Load custom keymap and configure input devices.
xkbcomp -I"$HOME/.xkb" "$HOME/.xkb/usim.xkb" $DISPLAY
numlockx on
synclient TouchpadOff=1
# xinput disable "SynPS/2 Synaptics TouchPad"
## This env variable is used by some program configs (e.g. ranger, awesome) to
## get the terminal executable name.