~mil/sxmo-dwm

d272e34519f2243f4986dd6e5a62000f033d9fdf — Sam Bowlby 2 months ago 12f11d1
layout switching also using sxmo_gesturehandler.sh

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
1 files changed, 10 insertions(+), 10 deletions(-)

M config.def.h
M config.def.h => config.def.h +10 -10
@@ 85,18 85,18 @@ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont,
#include <X11/XF86keysym.h>
static Key keys[] = {
  /* PP */
	{1,  0,  XF86XK_AudioRaiseVolume, spawn, SHCMD("sxmo_appmenu.sh") },
	{2,  0,  XF86XK_AudioRaiseVolume, spawn, SHCMD("sxmo_appmenu.sh sys") },
	{3,  0,  XF86XK_AudioRaiseVolume, spawn, SHCMD("sxmo_lock.sh") },
	{1,  0,  XF86XK_AudioLowerVolume, cyclelayout , {.i = +1 } },
	{2,  0,  XF86XK_AudioLowerVolume, inplacerotate, {.i = +2} },
	{3,  0,  XF86XK_AudioLowerVolume, spawn, SHCMD("sxmo_blinkled.sh red & xdotool windowkill $(xdotool getactivewindow)") },
	{4,  0,  XF86XK_AudioLowerVolume, spawn, SHCMD("sxmo_blinkled.sh red & xdotool windowclose $(xdotool getactivewindow)") },
	{1,  0,  XF86XK_AudioRaiseVolume, spawn, SHCMD("sxmo_gesturehandler.sh volup_one") },
	{2,  0,  XF86XK_AudioRaiseVolume, spawn, SHCMD("sxmo_gesturehandler.sh volup_two") },
	{3,  0,  XF86XK_AudioRaiseVolume, spawn, SHCMD("sxmo_gesturehandler.sh volup_three") },
	{1,  0,  XF86XK_AudioLowerVolume, spawn, SHCMD("sxmo_gesturehandler.sh voldown_one") },
	{2,  0,  XF86XK_AudioLowerVolume, spawn, SHCMD("sxmo_gesturehandler.sh voldown_two") },
	{3,  0,  XF86XK_AudioLowerVolume, spawn, SHCMD("sxmo_gesturehandler.sh voldown_three") },
	{4,  0,  XF86XK_AudioLowerVolume, spawn, SHCMD("sxmo_gesturehandler.sh voldown_four") },
	//{3,  0,  XF86XK_AudioLowerVolume, killclient, {0} },

	{1,  0,  XF86XK_PowerOff, spawn, SHCMD("sxmo_powerbutton.sh") },
	{2,  0,  XF86XK_PowerOff, spawn, SHCMD("sxmo_blinkled.sh blue & $TERMCMD -e $SHELL") },
	{3,  0,  XF86XK_PowerOff, spawn, SHCMD("sxmo_blinkled.sh blue & $BROWSER") },
	{1,  0,  XF86XK_PowerOff, spawn, SHCMD("sxmo_gesturehandler.sh powerbutton_one") },
	{2,  0,  XF86XK_PowerOff, spawn, SHCMD("sxmo_gesturehandler.sh powerbutton_two") },
	{3,  0,  XF86XK_PowerOff, spawn, SHCMD("sxmo_gesturehandler.sh powerbutton_three") },

	/* Used by scripts via xdotool */
	{0,  MODKEY|ShiftMask,  XK_e, shiftview, {.i = -1} },