From b042d98f227f0ff6a8ffe3adbcbb555325bbe215 Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Thu, 20 Aug 2020 09:41:56 +0200 Subject: [PATCH] resize of floating windows more comfortable via mouse --- config.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config.h b/config.h index cd7c528..a25a96c 100644 --- a/config.h +++ b/config.h @@ -68,7 +68,7 @@ static const Rule rules[] = { /* class instance title tags mask isfloating monitor */ { "Gimp", NULL, NULL, 0, 1, -1 }, { "Firefox", NULL, NULL, 1 << 8, 0, -1 }, - { NULL, "scratchpadterm", NULL, SPTAG(0), 1, -1 }, + { NULL, "scratchpadterm", NULL, SPTAG(0), 1, -1 }, { NULL, "scratchcalc", NULL, SPTAG(1), 1, -1 }, }; @@ -189,7 +189,7 @@ static Key keys[] = { { MODKEY|ShiftMask, XK_Return, togglescratch, {.ui = 0 } }, { MODKEY, XK_z, spawn, SHCMD("st -e tremc") }, /*{ MODKEY|ShiftMask, XK_z, incrgaps, {.i = -1 } },*/ - { MODKEY, XK_x, spawn, SHCMD("slock & xset dpms force off; mpc pause ; pauseallmpv") }, + { MODKEY, XK_x, spawn, SHCMD("slock & ( sleep 4; xset dpms force off; mpc pause ; pauseallmpv)") }, { MODKEY|ShiftMask, XK_x, spawn, SHCMD("prompt \"Shutdown computer?\" \"sudo -A shutdown -h now\"") }, { MODKEY, XK_c, togglescratch, {.ui = 1 } }, { MODKEY|ShiftMask, XK_c, spawn, SHCMD("mpv --no-osc --no-input-default-bindings --input-conf=/dev/null --title=mpvfloat /dev/video0") }, @@ -277,7 +277,7 @@ static Button buttons[] = { { ClkStatusText, 0, Button2, spawn, {.v = termcmd } }, { ClkClientWin, MODKEY, Button1, movemouse, {0} }, { ClkClientWin, MODKEY, Button2, togglefloating, {0} }, - { ClkClientWin, MODKEY, Button1, resizemouse, {0} }, + { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, { ClkTagBar, 0, Button1, view, {0} }, { ClkTagBar, 0, Button3, toggleview, {0} }, { ClkTagBar, MODKEY, Button1, tag, {0} },