From 090ce35749142dfeb86c0f43098dcd3b2b6de6a5 Mon Sep 17 00:00:00 2001 From: Alexander Leonhardt Date: Sat, 5 Sep 2026 23:03:50 +0200 Subject: Added minimal changes to the used terminal emulator and configuration --- config.def.h | 6 +++--- dwl.c | 1 - simple_scratchpad.c | 13 +------------ 3 files changed, 4 insertions(+), 16 deletions(-) diff --git a/config.def.h b/config.def.h index 55a0130..44608ad 100644 --- a/config.def.h +++ b/config.def.h @@ -136,7 +136,7 @@ static const enum libinput_config_tap_button_map button_map = LIBINPUT_CONFIG_TA #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } /* commands */ -static const char *termcmd[] = { "ghostty", NULL }; +static const char *termcmd[] = { "alacritty", NULL }; static const char *menucmd[] = { "wmenu-run", "-b", NULL }; static const Key keys[] = { @@ -147,8 +147,8 @@ static const Key keys[] = { { MODKEY, XKB_KEY_b, togglebar, {0} }, { MODKEY, XKB_KEY_i, incnmaster, {.i = +1} }, { MODKEY, XKB_KEY_d, incnmaster, {.i = -1} }, - { MODKEY, XKB_KEY_plus, setmfact, {.f = -0.05f} }, - { MODKEY, XKB_KEY_minus, setmfact, {.f = +0.05f} }, + { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_d, setmfact, {.f = -0.05f} }, + { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_i, setmfact, {.f = +0.05f} }, { MODKEY, XKB_KEY_Return, zoom, {0} }, { MODKEY, XKB_KEY_Tab, view, {0} }, { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_c, killclient, {0} }, diff --git a/dwl.c b/dwl.c index 37e79a0..8983457 100644 --- a/dwl.c +++ b/dwl.c @@ -381,7 +381,6 @@ static void setlayout(const Arg *arg); static void setmfact(const Arg *arg); static void setmon(Client *c, Monitor *m, uint32_t newtags); static void setpsel(struct wl_listener *listener, void *data); -static void setscratchpad(const Arg *arg); static void setsel(struct wl_listener *listener, void *data); static void setup(void); static void spawn(const Arg *arg); diff --git a/simple_scratchpad.c b/simple_scratchpad.c index 271e72e..ee012e2 100644 --- a/simple_scratchpad.c +++ b/simple_scratchpad.c @@ -32,6 +32,7 @@ void draw_scratchpad(void) { } } + void addscratchpad(const Arg *arg) { @@ -87,15 +88,3 @@ removescratchpad(const Arg *arg) } } - -void -setscratchpad(const Arg *arg) -{ - int idx = arg->i; - - if (idx < 0) - idx = 0; - else if (idx >= SCRATCHPAD_COUNT) - idx = SCRATCHPAD_COUNT - 1; - scratchpad_sel = idx; -} -- cgit