summaryrefslogtreecommitdiff
path: root/st
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-15 15:18:12 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-15 15:18:12 +0900
commitf4ae492a2dc87e899e90969b4cdb93893738b467 (patch)
tree7601eb23c7a091b1650db98e60721746284d50fb /st
parent3a0541827b4451eb555e5b5ff61b83e9195e6eb4 (diff)
modified dwm/config.def.h, modified st/config.def.h, modified st/x.c
Diffstat (limited to 'st')
-rw-r--r--st/config.def.h3
-rw-r--r--st/x.c2
2 files changed, 3 insertions, 2 deletions
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 });