Remove shortcuts which select multiple tags

This commit is contained in:
Alex Kotov 2021-11-20 18:25:01 +05:00
parent 592bc54474
commit 03808f4937
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
2 changed files with 1 additions and 20 deletions

View File

@ -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)

View File

@ -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)
{