summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Bensmann <johannesbensmann@gmx.de>2019-06-19 18:19:50 +0200
committerJohannes Bensmann <johannesbensmann@gmx.de>2019-06-19 18:19:50 +0200
commitbd911fb6c47660de3e87a2553ade5abc3ae3716f (patch)
tree6faa500bb02698d9ebb5bffc30f82f66ae776324
parent96fcc4c27c89f6f531af40426d768184dd0eb58a (diff)
changed move bindings
-rw-r--r--config.h7
-rw-r--r--xmouseless.c4
2 files changed, 4 insertions, 7 deletions
diff --git a/config.h b/config.h
index 49a671f..3c18ae3 100644
--- a/config.h
+++ b/config.h
@@ -13,16 +13,13 @@ static SpeedBindings speed_bindings[] = {
{ XK_Control_L, 10 },
};
+/* you can also add any other direction (e.g. diagonals) */
static MoveBinding move_bindings[] = {
/* key x y */
{ XK_j, -1, 0 },
{ XK_l, 1, 0 },
{ XK_i, 0, -1 },
- { XK_comma, 0, 1 },
- { XK_u, -1, -1 },
- { XK_o, 1, -1 },
- { XK_m, -1, 1 },
- { XK_period, 1, 1 },
+ { XK_k, 0, 1 },
};
/* 1: left
diff --git a/xmouseless.c b/xmouseless.c
index ab0ba19..edb9f04 100644
--- a/xmouseless.c
+++ b/xmouseless.c
@@ -49,8 +49,8 @@ static unsigned int speed = default_speed;
struct {
float x;
float y;
- int speed_x;
- int speed_y;
+ float speed_x;
+ float speed_y;
} mouseinfo;