From 277b00e316ad615c65d2c6175471bdee19e737c4 Mon Sep 17 00:00:00 2001 From: Frantisek Bohacek Date: Sat, 25 May 2024 12:24:23 +0200 Subject: [PATCH] feat(dwl): add possibility to launch foot-run, use foot --- home/modules/profiles/desktop/dwl/config.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/home/modules/profiles/desktop/dwl/config.h b/home/modules/profiles/desktop/dwl/config.h index 79d6b90..07b75c6 100644 --- a/home/modules/profiles/desktop/dwl/config.h +++ b/home/modules/profiles/desktop/dwl/config.h @@ -147,7 +147,8 @@ 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[] = { "alacritty", NULL }; +static const char *termcmd[] = { "foot", NULL }; +static const char *runcmd[] = { "foot", "--app-id", "foot-run", NULL }; static const char *menucmd[] = { "rofi", "-show", "drun", NULL }; /* named scratchpads - First arg only serves to match against key in rules*/ @@ -155,8 +156,8 @@ static const char *scratchpadcmd_spotify[] = { "s", "spotify", NULL, }; -static const char *scratchpadcmd_alacritty[] = { - "a", "alacritty", "-t", "scratchpad", NULL, +static const char *scratchpadcmd_foot[] = { + "a", "foot", "--app-id", "foot-scratchpad", NULL, }; /* static const char *scratchpadcmd_notes[] = { */ @@ -171,6 +172,7 @@ static const int monitor_order[] = { 3, 2, 1, 0 }; static const Key keys[] = { /* modifier key function argument */ { MODKEY, Key_semicolon, spawn, {.v = menucmd} }, + { MODKEY|WLR_MODIFIER_SHIFT, Key_semicolon, spawn, {.v = runcmd} }, { MODKEY|WLR_MODIFIER_SHIFT, Key_Return, spawn, {.v = termcmd} }, { MODKEY, Key_j, focusstack, {.i = +1} }, @@ -249,7 +251,7 @@ static const Modekey modekeys[] = { /* mode modifier key function argument */ { SCRATCHPADS, { 0, Key_s, focusortogglematchingscratch, {.v = scratchpadcmd_spotify} } }, { SCRATCHPADS, { 0, Key_s, entermode, {.i = NORMAL} } }, - { SCRATCHPADS, { 0, Key_t, focusortogglematchingscratch, {.v = scratchpadcmd_alacritty} } }, + { SCRATCHPADS, { 0, Key_t, focusortogglematchingscratch, {.v = scratchpadcmd_foot} } }, { SCRATCHPADS, { 0, Key_t, entermode, {.i = NORMAL} } }, { SCRATCHPADS, { 0, Key_p, entermode, {.i = PASSTHROUGH} } }, { SCRATCHPADS, { 0, Key_Escape, entermode, {.i = NORMAL} } }, -- 2.48.1