From f4ae492a2dc87e899e90969b4cdb93893738b467 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sun, 15 Jun 2025 15:18:12 +0900 Subject: modified dwm/config.def.h, modified st/config.def.h, modified st/x.c --- dwm/config.def.h | 2 +- st/config.def.h | 3 ++- st/x.c | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dwm/config.def.h b/dwm/config.def.h index 0c95250..b6ab9d2 100644 --- a/dwm/config.def.h +++ b/dwm/config.def.h @@ -316,7 +316,7 @@ static Keychord *keychords[] = { TAGKEYS( XK_8, 7) TAGKEYS( XK_9, 8) - // APPEARANCE + // APPEARANCES &((Keychord){1, {{WINKEY, XK_a}}, changefocusopacity, {.f = +0.025}}), &((Keychord){1, {{WINKEY, XK_s}}, changefocusopacity, {.f = -0.025}}), &((Keychord){1, {{WINMOD, XK_a}}, changeunfocusopacity, {.f = +0.025}}), diff --git a/st/config.def.h b/st/config.def.h index fa6d1a6..aab0d0f 100644 --- a/st/config.def.h +++ b/st/config.def.h @@ -301,6 +301,7 @@ static MouseShortcut mshortcuts[] = { #define WINULTRA (WINKEY|ControlMask|ShiftMask) #define EXTRAMOD (ControlMask|ShiftMask) +#define OPENER "xdg-open" static char *openurlcmd[] = { "/bin/sh", "-c", "st-urlhandler -o", "externalpipe", NULL }; static char *copyurlcmd[] = { "/bin/sh", "-c", "st-urlhandler -c", "externalpipe", NULL }; static char *copyoutput[] = { "/bin/sh", "-c", "st-copyout", "externalpipe", NULL }; @@ -344,7 +345,7 @@ static Shortcut shortcuts[] = { { ALTKEY, XK_v, clippaste, {.i = 0} }, { ALTMOD, XK_V, selpaste, {.i = 0} }, { ShiftMask, XK_Insert, selpaste, {.i = 0} }, - { ALTMOD2, XK_v, opencopied, {.v = "xdg-open"} }, + { ALTMOD2, XK_v, opencopied, {.v = OPENER} }, { ALTKEY, XK_o, externalpipe, {.v = openurlcmd } }, // PRINTERS diff --git a/st/x.c b/st/x.c index d6067d7..45033b6 100644 --- a/st/x.c +++ b/st/x.c @@ -2208,7 +2208,7 @@ kpress(XEvent *ev) if (!( len == 0 && e -> state & ~ignoremod // ACMPL_ISSUE: I'm not sure that this is the right way - | ALTCTRL == ALTCTRL + | ALTMOD2 == ALTMOD2 )) autocomplete ((const Arg []) { ACMPL_DEACTIVATE }); -- cgit v1.2.3