logo

inaban

Distrustful Wayland Compositor (inspired by XMonad and dwm) git clone https://hacktivis.me/git/inaban.git
commit: 0c53c371ec99c79bf7aae673e97be32b0026f2b9
parent 17d03ac37163cb110745a813d66a7e0cd75eeeb8
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun,  3 Jan 2021 05:16:57 +0100

Remove bemenu binding for now

It requires layer-shell which we don't have ATM

Diffstat:

Mconfig.h8++++----
Minaban.125+++++++++++++------------
Minaban.c5+++++
3 files changed, 22 insertions(+), 16 deletions(-)

diff --git a/config.h b/config.h @@ -1,8 +1,8 @@ #ifndef CONFIG_H #define CONFIG_H -static const char *menucmd[] = {"bemenu-run", NULL}; -static const char *termcmd[] = {"cage", "-d", "st", NULL}; +//static const char *menucmd[] = {"bemenu-run", NULL}; +static char *termcmd[] = {"svte", NULL}; static const float background_color[4] = {0.11f, 0.11f, 0.11f, 1.0f}; // approx. gruvbox hard-dark static const float border_color[4] = {0.25f, 0.25f, 0.50f, 1.0f}; @@ -16,8 +16,8 @@ static const float border_color[4] = {0.25f, 0.25f, 0.50f, 1.0f}; // clang-format off static Shortcut shortcuts[] = { /* modifier, keysym, function, argument */ - {ModMask, XKB_KEY_p, spawn, {.v = menucmd}}, - {ModMask | ShiftMask, XKB_KEY_Return, spawn, {.v = termcmd}}, +// {ModMask, XKB_KEY_p, spawn, {.v = menucmd}}, + {ModMask, XKB_KEY_Return, spawn, {.v = termcmd}}, {ModMask | ShiftMask, XKB_KEY_q, quit, {0}}, // {MODKEY | ShiftMask, XKB_KEY_c, killclient, {0}}, // {MODKEY, XKB_KEY_j, focusstack, {.i = +1}}, diff --git a/inaban.1 b/inaban.1 @@ -1,6 +1,6 @@ -./" inaban: Distrustful Wayland Compositor -./" Copyright © 2019-2021 Haelwenn (lanodan) Monnier <contact@hacktivis.me> -./" SPDX-License-Identifier: BSD-3-Clause +.\" inaban: Distrustful Wayland Compositor +.\" Copyright © 2019-2021 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +.\" SPDX-License-Identifier: BSD-3-Clause .Dd 2019-07-03 .Dt inaban 1 .Sh NAME @@ -12,24 +12,25 @@ .Op Fl s Ar startup command .Sh BINDINGS Mod defaults to Alt. -.Bl -width Ds -tag -.It Mod+Escape +.Bl -tag -width Ds +.It Mod+Shift+q Terminates the wayland session. -.It Mod+j -Switches to the next view. -.It Mod+p -Executes an application launcher (defaults to bemenu). .It Mod+Enter -Executes the terminal (defaults to wlterm). +Executes the terminal (defaults to svte). .It Mod+Button1 Moves the window under the cursor around. (ignores focus) .It Mod+Button2 Resizes the window under the cursor. (ignores focus) .El +.Sh ENVIRONMENT +.Bl -tag -width Ds +.It TERMINAL +Change the default terminal, no arguments allowed. +.El +.Sh AUTHORS +.An Haelwenn (lanodan) Monnier Aq Mt contact+badwolf@hacktivis.me .Sh BUGS You can submit contributions or tickets to .Mt contact+badwolf@hacktivis.me , with .Xr git-send-email 1 for patches. -.Sh AUTHORS -.An Haelwenn (lanodan) Monnier Aq Mt contact+badwolf@hacktivis.me diff --git a/inaban.c b/inaban.c @@ -705,6 +705,11 @@ main(int argc, char *argv[]) return 0; } + char *terminal = getenv("TERMINAL"); + if(NULL != terminal) { + termcmd[0] = terminal; + } + server.wl_display = wl_display_create(); if(!server.wl_display) {