From 53ecb8ce9a98d095e8436e18573db8736cba078e Mon Sep 17 00:00:00 2001 From: korei999 Date: Wed, 29 Nov 2023 22:03:38 +0200 Subject: [PATCH] remove toggletag --- config.def.h | 10 +++++----- dwl.c | 18 ------------------ 2 files changed, 5 insertions(+), 23 deletions(-) diff --git a/config.def.h b/config.def.h index 28f6a77..cbe4b74 100644 --- a/config.def.h +++ b/config.def.h @@ -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) */ diff --git a/dwl.c b/dwl.c index d44c0ba..349e459 100644 --- a/dwl.c +++ b/dwl.c @@ -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) {