diff options
| author | Alexander Leonhardt <equinox.salexander@gmail.com> | |
|---|---|---|
| 2026-09-05 23:03:50 +0200 | ||
| committer | Alexander Leonhardt <equinox.salexander@gmail.com> | |
| 2026-09-05 23:03:50 +0200 | ||
| commit | 090ce35749142dfeb86c0f43098dcd3b2b6de6a5 (patch) | |
| tree | 61df7890324877eb08046c68e6dadffb0ccaa387 | |
| parent | 3a57e326867d7d7c1babb9bcaf9d70e7f66c1863 (diff) | |
| download | dwl-090ce35749142dfeb86c0f43098dcd3b2b6de6a5.tar.gz dwl-090ce35749142dfeb86c0f43098dcd3b2b6de6a5.tar.bz2 dwl-090ce35749142dfeb86c0f43098dcd3b2b6de6a5.zip | |
Added minimal changes to the used terminal emulator and configuration
| -rw-r--r-- | config.def.h | 6 | ||||
| -rw-r--r-- | dwl.c | 1 | ||||
| -rw-r--r-- | 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} }, @@ -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; -} |