Remove shortcuts which select multiple tags
This commit is contained in:
parent
592bc54474
commit
03808f4937
|
@ -43,8 +43,7 @@ static const Layout layouts[] = {
|
|||
#define TAGKEYS(KEY,TAG) \
|
||||
{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \
|
||||
{ MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
|
||||
{ MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
|
||||
{ MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
|
||||
{ MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} },
|
||||
|
||||
static Key keys[] = {
|
||||
// WM
|
||||
|
@ -56,8 +55,6 @@ static Key keys[] = {
|
|||
{ MODKEY|ShiftMask, XK_bracketright, tagmon, {.i = +1 } },
|
||||
// Tag
|
||||
{ MODKEY, XK_n, nametag, {0} },
|
||||
{ MODKEY, XK_0, view, {.ui = ~0 } },
|
||||
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
|
||||
TAGKEYS( XK_1, 0)
|
||||
TAGKEYS( XK_2, 1)
|
||||
TAGKEYS( XK_3, 2)
|
||||
|
|
16
src/dwm.c
16
src/dwm.c
|
@ -235,7 +235,6 @@ static void spawn_callback();
|
|||
static void tag(const Arg *arg);
|
||||
static void tagmon(const Arg *arg);
|
||||
static void togglefloating(const Arg *arg);
|
||||
static void toggletag(const Arg *arg);
|
||||
static void toggleview(const Arg *arg);
|
||||
static void unfocus(Client *c, int setfocus);
|
||||
static void unmanage(Client *c, int destroyed);
|
||||
|
@ -1786,21 +1785,6 @@ togglefloating(__attribute__((unused)) const Arg *arg)
|
|||
arrange(selmon);
|
||||
}
|
||||
|
||||
void
|
||||
toggletag(const Arg *arg)
|
||||
{
|
||||
unsigned int newtags;
|
||||
|
||||
if (!selmon->sel)
|
||||
return;
|
||||
newtags = selmon->sel->tags ^ (arg->ui & TAGS_MASK);
|
||||
if (newtags) {
|
||||
selmon->sel->tags = newtags;
|
||||
focus(NULL);
|
||||
arrange(selmon);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
toggleview(const Arg *arg)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue