logo

inaban

Unnamed repository; edit this file 'description' to name the repository.
commit: 69aec76fb15e67b9656d1964e1f50851bfe12eb8
parent: f95d6c310ce7ead71519ac7e8b3e3cd1e3224679
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon,  1 Jul 2019 09:58:07 +0200

Add keybind to launch the terminal

Diffstat:

Mconfig.h2++
Minaban.c3+++
2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/config.h b/config.h @@ -1,5 +1,7 @@ #define INABAN_BINDING_MOD WLR_MODIFIER_ALT #define INABAN_CMD_LAUNCHER "bemenu-run" +#define INABAN_CMD_TERMINAL "wlterm" #define INABAN_MODBIND_LAUNCHER XKB_KEY_p #define INABAN_MODBIND_SWITCH XKB_KEY_ht +#define INABAN_MODBIND_TERMINAL XKB_KEY_Return #define INABAN_MODBIND_TERMINATE XKB_KEY_Escape diff --git a/inaban.c b/inaban.c @@ -94,6 +94,9 @@ handle_keybinding(struct inaban_server *server, xkb_keysym_t sym) case INABAN_MODBIND_LAUNCHER: if(fork() == 0) execl("/bin/sh", "/bin/sh", "-c", INABAN_CMD_LAUNCHER, (void *)NULL); break; + case INABAN_MODBIND_TERMINAL: + if(fork() == 0) execl("/bin/sh", "/bin/sh", "-c", INABAN_CMD_TERMINAL, (void *)NULL); + break; default: return false; } return true;