Trackpad Toggle Keybinding
- Add keybinding to toggle touchpad
This commit is contained in:
@@ -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 <X11/XF86keysym.h>
|
||||
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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user