summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-10-19 00:11:52 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-10-19 00:11:52 -0700
commiteb42707bce381cd7501a246629604fdeb8728445 (patch)
tree5e3ba03a5968747ed647b053594a1633723c4ccf
parent129bf54ad38c4560c4154a9794dc1949a23aa667 (diff)
key: trivial whitespace/formatting fixup
-rw-r--r--src/key.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/key.c b/src/key.c
index cf1be93..07b3abf 100644
--- a/src/key.c
+++ b/src/key.c
@@ -107,12 +107,12 @@ void vwm_key_released(vwm_t *vwm, Window win, XKeyReleasedEvent *keyrelease)
/* Called in response to KeyPress events, I currenly only grab Mod1 keypress events */
void vwm_key_pressed(vwm_t *vwm, Window win, XKeyPressedEvent *keypress)
{
- vwm_window_t *vwin;
- KeySym sym;
- static KeySym last_sym;
- static typeof(keypress->state) last_state;
- static int repeat_cnt = 0;
- int do_grab = 0;
+ vwm_window_t *vwin;
+ KeySym sym;
+ static KeySym last_sym;
+ static typeof(keypress->state) last_state;
+ static int repeat_cnt = 0;
+ int do_grab = 0;
sym = XLookupKeysym(keypress, 0);
@@ -128,12 +128,12 @@ void vwm_key_pressed(vwm_t *vwm, Window win, XKeyPressedEvent *keypress)
switch (sym) {
#define launcher(_sym, _label, _argv)\
- case _sym: \
- { \
+ case _sym: { \
char *args[] = {"/bin/sh", "-c", "screen -dr " CONSOLE_SESSION_STRING " -X screen /bin/sh -i -x -c \"" _argv " || sleep 86400\"", NULL};\
vwm_launch(vwm, args, VWM_LAUNCH_MODE_BG);\
break; \
}
+
#include "launchers.def"
#undef launcher
case XK_Alt_L: /* transaction abort */
© All Rights Reserved