mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-01-14 21:07:28 -08:00
remove toggletag
This commit is contained in:
parent
035bc3b1a1
commit
53ecb8ce9a
2 changed files with 5 additions and 23 deletions
10
config.def.h
10
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 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 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 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 bordercolor[] = COLOR(0x00000000);
|
||||||
static const float focuscolor[] = COLOR(0x7aa6daff);
|
static const float focuscolor[] = COLOR(0x7aa6daff);
|
||||||
static const float urgentcolor[] = COLOR(0xd54e53ff);
|
static const float urgentcolor[] = COLOR(0xd54e53ff);
|
||||||
|
@ -54,9 +52,11 @@ static const char *kblayout_cmd[] = {"pkill", "-RTMIN+1", "someblocks", NULL};
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static const Rule rules[] = {
|
static const Rule rules[] = {
|
||||||
/* app_id title tags mask isfloating opacity monitor */
|
/* app_id title tags mask isfloating monitor */
|
||||||
// { "firefox", NULL, 1 << 8, 0, -1, -1 },
|
/* examples:
|
||||||
{ "corectrl", NULL, 1 << 5, 0, 1, -1 },
|
{ "Gimp", NULL, 0, 1, -1 },
|
||||||
|
*/
|
||||||
|
{ "corectrl", NULL, 1 << 5, 0, -1 },
|
||||||
};
|
};
|
||||||
|
|
||||||
/* layout(s) */
|
/* layout(s) */
|
||||||
|
|
18
dwl.c
18
dwl.c
|
@ -342,7 +342,6 @@ static void vertile(Monitor *m);
|
||||||
static void togglebar(const Arg *arg);
|
static void togglebar(const Arg *arg);
|
||||||
static void togglefloating(const Arg *arg);
|
static void togglefloating(const Arg *arg);
|
||||||
static void togglefullscreen(const Arg *arg);
|
static void togglefullscreen(const Arg *arg);
|
||||||
static void toggletag(const Arg *arg);
|
|
||||||
static void toggleview(const Arg *arg);
|
static void toggleview(const Arg *arg);
|
||||||
static void unlocksession(struct wl_listener *listener, void *data);
|
static void unlocksession(struct wl_listener *listener, void *data);
|
||||||
static void unmaplayersurfacenotify(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);
|
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
|
void
|
||||||
toggleview(const Arg *arg)
|
toggleview(const Arg *arg)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue