tagmon + focusmon

This commit is contained in:
Alexander Bocken 2024-06-26 06:26:36 +02:00
parent c1eea5c1a1
commit 78769f028f
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8
2 changed files with 7 additions and 1 deletions

View File

@ -208,7 +208,7 @@ static Key keys[] = {
{ MODKEY, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_Return, spawn, {.v = termcmd } },
{ MODKEY|ShiftMask, XK_Return, togglescratch, {.ui = 0 } }, { MODKEY|ShiftMask, XK_Return, togglescratch, {.ui = 0 } },
{ MODKEY, XK_z, spawn, SHCMD("st -e tremc --skip-version-check") }, { MODKEY, XK_z, spawn, SHCMD("st -e tremc --skip-version-check") },
/*{ MODKEY|ShiftMask, XK_z, spawn, SHCMD("st -e tremc") },*/ { MODKEY|ShiftMask, XK_z, tagfocusmon, {.i = -1}},
{ MODKEY, XK_x, spawn, SHCMD("slock & ( sleep 4; xset dpms force off; mpc pause ; pauseallmpv)") }, { MODKEY, XK_x, spawn, SHCMD("slock & ( sleep 4; xset dpms force off; mpc pause ; pauseallmpv)") },
{ MODKEY|ShiftMask, XK_x, spawn, SHCMD("prompt \"Shutdown computer?\" \"sudo -A shutdown -h now\"") }, { MODKEY|ShiftMask, XK_x, spawn, SHCMD("prompt \"Shutdown computer?\" \"sudo -A shutdown -h now\"") },
{ MODKEY, XK_c, togglescratch, {.ui = 1 } }, { MODKEY, XK_c, togglescratch, {.ui = 1 } },

6
dwm.c
View File

@ -219,6 +219,7 @@ static void spawn(const Arg *arg);
static void spiral(Monitor *mon); static void spiral(Monitor *mon);
static void tag(const Arg *arg); static void tag(const Arg *arg);
static void tagmon(const Arg *arg); static void tagmon(const Arg *arg);
static void tagfocusmon(const Arg *arg);
static void tile(Monitor *); static void tile(Monitor *);
static void togglebar(const Arg *arg); static void togglebar(const Arg *arg);
static void togglefloating(const Arg *arg); static void togglefloating(const Arg *arg);
@ -1791,6 +1792,11 @@ tagmon(const Arg *arg)
} }
} }
void
tagfocusmon(const Arg *arg){
tagmon(arg);
focusmon(arg);
}
void void
tile(Monitor *m) tile(Monitor *m)
{ {