diff --git a/README.org b/README.org index 255567f..6757d5c 100644 --- a/README.org +++ b/README.org @@ -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 *flameshotcmd[] = { "flameshot", "gui", NULL }; static const char *forceclosewindowcmd[] = { "xkill", NULL }; + static const char *trackpadtogglecmd[] = { "/home/sravan/.scripts/trackpad.sh", NULL }; #+end_src #+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 #+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 #include 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_AudioNext, spawn, {.v = playernextcmd} }, { 0, XF86XK_AudioPrev, spawn, {.v = playerprevcmd} }, + { 0, XF86XK_TouchpadToggle, spawn, {.v = trackpadtogglecmd} }, { 0, XK_Print, spawn, {.v = flameshotcmd} }, #if RIODRAW_PATCH diff --git a/config.def.h b/config.def.h index 2e5b049..77f658b 100644 --- a/config.def.h +++ b/config.def.h @@ -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 *flameshotcmd[] = { "flameshot", "gui", NULL }; static const char *forceclosewindowcmd[] = { "xkill", NULL }; +static const char *trackpadtogglecmd[] = { "/home/sravan/.scripts/trackpad.sh", NULL }; #if BAR_STATUSCMD_PATCH #if BAR_DWMBLOCKS_PATCH @@ -820,6 +821,7 @@ static Key keys[] = { { 0, XF86XK_AudioPlay, spawn, {.v = playerplaypausecmd} }, { 0, XF86XK_AudioNext, spawn, {.v = playernextcmd} }, { 0, XF86XK_AudioPrev, spawn, {.v = playerprevcmd} }, + { 0, XF86XK_TouchpadToggle, spawn, {.v = trackpadtogglecmd} }, { 0, XK_Print, spawn, {.v = flameshotcmd} }, #if RIODRAW_PATCH