diff options
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/config.def.h b/config.def.h index 24cc401..524c232 100644 --- a/config.def.h +++ b/config.def.h @@ -140,8 +140,8 @@ static const char *vmcmd[] = { "/config/dist/vm.sh", NULL }; static const char *lgcmd[] = { "looking-glass-client", "-m", "97", NULL }; static const char *filemanagercmd[] = { "pcmanfm", NULL }; static const char *lockcmd[] = { "swaylock", NULL }; -static const char screenshotcmd[] = "grim -g \"$(slurp)\" - | wl-copy"; -static const char swappycmd[] = "wl-paste | swappy -f -"; +static const char *screenshotcmd[] = { "sh", "-c", "grim -g \"$(slurp -d)\" - | wl-copy -t \"image/png\"", NULL }; +static const char *swappycmd[] = { "sh", "-c", "wl-paste | swappy -f -", NULL }; static const Key keys[] = { /* Note that Shift changes certain key codes: c -> C, 2 -> at, etc. */ @@ -152,8 +152,8 @@ static const Key keys[] = { { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_Return, spawn, {.v = termcmd} }, { MODKEY, XKB_KEY_x, spawn, {.v = lockcmd} }, { MODKEY, XKB_KEY_e, spawn, {.v = filemanagercmd} }, - { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_s, spawn, SHCMD(screenshotcmd) }, - { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_e, spawn, SHCMD(swappycmd) }, + { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_s, spawn, {.v = screenshotcmd} }, + { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_e, spawn, {.v = swappycmd} }, { MODKEY, XKB_KEY_b, togglebar, {0} }, { MODKEY, XKB_KEY_j, focusstack, {.i = +1} }, { MODKEY, XKB_KEY_k, focusstack, {.i = -1} }, |
