feat(patches): add viewontag patche
This commit is contained in:
parent
685f756f3f
commit
16a1efc787
@ -5,6 +5,7 @@ static const unsigned int borderpx = 1; /* border pixel of windows */
|
|||||||
static const unsigned int snap = 32; /* snap pixel */
|
static const unsigned int snap = 32; /* snap pixel */
|
||||||
static const int showbar = 1; /* 0 means no bar */
|
static const int showbar = 1; /* 0 means no bar */
|
||||||
static const int topbar = 1; /* 0 means bottom bar */
|
static const int topbar = 1; /* 0 means bottom bar */
|
||||||
|
static const Bool viewontag = True;
|
||||||
static const char *fonts[] = {
|
static const char *fonts[] = {
|
||||||
"Hack Nerd Font Mono:size=12",
|
"Hack Nerd Font Mono:size=12",
|
||||||
"Noto Color Emoji:size=12"
|
"Noto Color Emoji:size=12"
|
||||||
|
2
dwm.c
2
dwm.c
@ -2040,6 +2040,8 @@ tag(const Arg *arg)
|
|||||||
selmon->sel->tags = arg->ui & TAGMASK;
|
selmon->sel->tags = arg->ui & TAGMASK;
|
||||||
focus(NULL);
|
focus(NULL);
|
||||||
arrange(selmon);
|
arrange(selmon);
|
||||||
|
if(viewontag)
|
||||||
|
view(arg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
23
patches/dwm-r1522-viewontag.diff
Normal file
23
patches/dwm-r1522-viewontag.diff
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
diff -r 0d86faf4b05c config.def.h
|
||||||
|
--- a/config.def.h Sun Jul 25 09:58:25 2010 +0100
|
||||||
|
+++ b/config.def.h Sun Jul 25 16:32:38 2010 +0200
|
||||||
|
@@ -12,6 +12,7 @@
|
||||||
|
static const unsigned int snap = 32; /* snap pixel */
|
||||||
|
static const Bool showbar = True; /* False means no bar */
|
||||||
|
static const Bool topbar = True; /* False means bottom bar */
|
||||||
|
+static const Bool viewontag = True; /* Switch view on tag switch */
|
||||||
|
|
||||||
|
/* tagging */
|
||||||
|
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
|
||||||
|
diff -r 0d86faf4b05c dwm.c
|
||||||
|
--- a/dwm.c Sun Jul 25 09:58:25 2010 +0100
|
||||||
|
+++ b/dwm.c Sun Jul 25 16:32:38 2010 +0200
|
||||||
|
@@ -1613,6 +1613,8 @@
|
||||||
|
if(selmon->sel && arg->ui & TAGMASK) {
|
||||||
|
selmon->sel->tags = arg->ui & TAGMASK;
|
||||||
|
arrange(selmon);
|
||||||
|
+ if(viewontag)
|
||||||
|
+ view(arg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user