Trackpad Toggle Keybinding

- Add keybinding to toggle touchpad
This commit is contained in:
Sravan Balaji
2021-08-04 09:09:19 -04:00
parent 7691a25c19
commit 7e400024de
2 changed files with 6 additions and 0 deletions

View File

@@ -4147,6 +4147,7 @@ name - does nothing, intended for visual clue and for logging / debugging
static const char *playerprevcmd[] = { "/home/sravan/.scripts/playerctl.sh", "--prev", NULL }; static const char *playerprevcmd[] = { "/home/sravan/.scripts/playerctl.sh", "--prev", NULL };
static const char *flameshotcmd[] = { "flameshot", "gui", NULL }; static const char *flameshotcmd[] = { "flameshot", "gui", NULL };
static const char *forceclosewindowcmd[] = { "xkill", NULL }; static const char *forceclosewindowcmd[] = { "xkill", NULL };
static const char *trackpadtogglecmd[] = { "/home/sravan/.scripts/trackpad.sh", NULL };
#+end_src #+end_src
#+begin_src c :tangle config.def.h #+begin_src c :tangle config.def.h
@@ -4177,6 +4178,8 @@ name - does nothing, intended for visual clue and for logging / debugging
#endif // ON_EMPTY_KEYS_PATCH #endif // ON_EMPTY_KEYS_PATCH
#+end_src #+end_src
See [[https://cgit.freedesktop.org/xorg/proto/x11proto/tree/XF86keysym.h][X11 protocol header]] for list of key symbols.
#+begin_src c :tangle config.def.h #+begin_src c :tangle config.def.h
#include <X11/XF86keysym.h> #include <X11/XF86keysym.h>
static Key keys[] = { static Key keys[] = {
@@ -4202,6 +4205,7 @@ name - does nothing, intended for visual clue and for logging / debugging
{ 0, XF86XK_AudioPlay, spawn, {.v = playerplaypausecmd} }, { 0, XF86XK_AudioPlay, spawn, {.v = playerplaypausecmd} },
{ 0, XF86XK_AudioNext, spawn, {.v = playernextcmd} }, { 0, XF86XK_AudioNext, spawn, {.v = playernextcmd} },
{ 0, XF86XK_AudioPrev, spawn, {.v = playerprevcmd} }, { 0, XF86XK_AudioPrev, spawn, {.v = playerprevcmd} },
{ 0, XF86XK_TouchpadToggle, spawn, {.v = trackpadtogglecmd} },
{ 0, XK_Print, spawn, {.v = flameshotcmd} }, { 0, XK_Print, spawn, {.v = flameshotcmd} },
#if RIODRAW_PATCH #if RIODRAW_PATCH

View File

@@ -771,6 +771,7 @@ static const char *playernextcmd[] = { "/home/sravan/.scripts/playerctl.sh
static const char *playerprevcmd[] = { "/home/sravan/.scripts/playerctl.sh", "--prev", NULL }; static const char *playerprevcmd[] = { "/home/sravan/.scripts/playerctl.sh", "--prev", NULL };
static const char *flameshotcmd[] = { "flameshot", "gui", NULL }; static const char *flameshotcmd[] = { "flameshot", "gui", NULL };
static const char *forceclosewindowcmd[] = { "xkill", NULL }; static const char *forceclosewindowcmd[] = { "xkill", NULL };
static const char *trackpadtogglecmd[] = { "/home/sravan/.scripts/trackpad.sh", NULL };
#if BAR_STATUSCMD_PATCH #if BAR_STATUSCMD_PATCH
#if BAR_DWMBLOCKS_PATCH #if BAR_DWMBLOCKS_PATCH
@@ -820,6 +821,7 @@ static Key keys[] = {
{ 0, XF86XK_AudioPlay, spawn, {.v = playerplaypausecmd} }, { 0, XF86XK_AudioPlay, spawn, {.v = playerplaypausecmd} },
{ 0, XF86XK_AudioNext, spawn, {.v = playernextcmd} }, { 0, XF86XK_AudioNext, spawn, {.v = playernextcmd} },
{ 0, XF86XK_AudioPrev, spawn, {.v = playerprevcmd} }, { 0, XF86XK_AudioPrev, spawn, {.v = playerprevcmd} },
{ 0, XF86XK_TouchpadToggle, spawn, {.v = trackpadtogglecmd} },
{ 0, XK_Print, spawn, {.v = flameshotcmd} }, { 0, XK_Print, spawn, {.v = flameshotcmd} },
#if RIODRAW_PATCH #if RIODRAW_PATCH