remove toggletag

This commit is contained in:
korei999 2023-11-29 22:03:38 +02:00
parent 035bc3b1a1
commit 53ecb8ce9a
2 changed files with 5 additions and 23 deletions

View file

@ -14,8 +14,6 @@ static const unsigned int gappih = 0; /* horiz inner gap between wind
static const unsigned int gappiv = 0; /* vert inner gap between windows */
static const unsigned int gappoh = 0; /* horiz outer gap between windows and screen edge */
static const unsigned int gappov = 0; /* vert outer gap between windows and screen edge */
static const char *cursortheme = "Adwaita"; /* theme from ${XCURSOR_PATH} or /usr/share/cursors/xorg-x11 if emtpy*/
static const char cursorsize[] = "24";
static const float bordercolor[] = COLOR(0x00000000);
static const float focuscolor[] = COLOR(0x7aa6daff);
static const float urgentcolor[] = COLOR(0xd54e53ff);
@ -54,9 +52,11 @@ static const char *kblayout_cmd[] = {"pkill", "-RTMIN+1", "someblocks", NULL};
*/
static const Rule rules[] = {
/* app_id title tags mask isfloating opacity monitor */
// { "firefox", NULL, 1 << 8, 0, -1, -1 },
{ "corectrl", NULL, 1 << 5, 0, 1, -1 },
/* app_id title tags mask isfloating monitor */
/* examples:
{ "Gimp", NULL, 0, 1, -1 },
*/
{ "corectrl", NULL, 1 << 5, 0, -1 },
};
/* layout(s) */

18
dwl.c
View file

@ -342,7 +342,6 @@ static void vertile(Monitor *m);
static void togglebar(const Arg *arg);
static void togglefloating(const Arg *arg);
static void togglefullscreen(const Arg *arg);
static void toggletag(const Arg *arg);
static void toggleview(const Arg *arg);
static void unlocksession(struct wl_listener *listener, void *data);
static void unmaplayersurfacenotify(struct wl_listener *listener, void *data);
@ -2824,23 +2823,6 @@ togglefullscreen(const Arg *arg)
setfullscreen(sel, !sel->isfullscreen);
}
void
toggletag(const Arg *arg)
{
uint32_t newtags;
Client *sel = focustop(selmon);
if (!sel)
return;
newtags = sel->tags ^ (arg->ui & TAGMASK);
if (!newtags)
return;
sel->tags = newtags;
focusclient(focustop(selmon), 1);
arrange(selmon);
printstatus();
}
void
toggleview(const Arg *arg)
{