parent
82f9c694fc
commit
8f8091172e
|
@ -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"}),
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue