Making the touch keyboard to avoid getting screen focus.

Some keybindings were changed to better multimonitor integration.

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
Make threshold configurable with SXMO_THRESHOLD

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
Add inplacerotate back as MOD+x

This way we can call from sxmo_inputhandler.sh to rotate all clients
on double voldown tap fixing regression where that keybinding doesn't
rotate all clients.

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
Remove close window actions as it causes issues
dont focus virtual keyboard while using it

"focus" is bit ambiguous, as dwm keeps its own "selected client" apart from
x's inputfocus and active window. This change prevents dwm to select the
keyboard when pressing on it.
In effect the windowtitle in the bar doesn't get overwritten by the keyboard
and the bordercolors don't change, which i think is the correct behavior.
The inputfocus is already denied because svkbd reports WM_Hints->input->false
to the windowmanager, which is why the keyboard was working before.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
focus after an unmanaged and unswallowed window (like dmenu) is closed

solves Ticket #251

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Use Mod4 as MODKEY

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Fix cycling through layouts

I recently switched from pmOS + sxmo to using arch with Justine
Smithies' sxmo installer (which builds and installs sxmo based on the
latest master branches of the sxmo repos) and noticed that volume down
would only toggle between the tile and bstack layouts. After some
investigation I found that previously the dwm config was directly
calling `cyclelayout` and incrementing the currently selected layout
from `ppcyclelayouts[]`, but with d272e345, this was changed to have
the volume down button call out to a shell script, which then pressed
alt+Space, triggering the layout to be toggled. The problem is that
alt+Space was not properly set to cycle through the layouts, and instead
only toggled between (I believe) the 2 most recent layouts, which would
only ever be tile and bstack if you only ever use the volume down button
to change the current layout.

I also happened to notice that alt+Space was defined twice. So this
commit removes one of the instances where alt+Space is being defined,
and changes the other to increment the current layout from

To test this, I created a diff with my changes, and modified Justine's
installer script so that when it lands on the sxmo-dwm repo, it applies
my diff to the repo before copying the config into place and compiling
dwm. After the script completed and I rebooted the phone, I was able to
cycle through tile, bstack, and monocle layouts using the volume down
button as expected.

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
renamed gesturehandler to inputhandler
layout switching also using sxmo_gesturehandler.sh

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
Use icons for layouts and use the stack layout as the default instead of the tile layout
decoupling powerbutton from keyboard invocation by invoking a dedicated script instead
Do not run SHELL in login mode

As this mode is used on console and SSH login

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
close window on long voldown press, kill window on triple press
call sxmo_keyboard.sh toggle
Another fix to get rid of redundant second font
no need to distinguish fonts according to iswide() anymore
removed pinebook? specific font
Added missing free() for font and colors.

These were accidentally omitted when porting the Xresources
code from sxmo-dmenu.

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
minor style fixes after xresources patch