dwm

[fork] dynamic window manager
Log | Files | Refs | README | LICENSE

commit 93d0628840039da5930645dfe4f2bc601322892b
parent a735a84a9d1f87da40570d12637c1728a8832940
Author: Hayden Hamilton <hayden@haydenvh.com>
Date:   Sun,  1 Mar 2020 20:05:15 +0000

fullscreen

Diffstat:
A.config.def.h.rej.swp | 0
A.dwm.c.swp | 0
Mconfig.h | 1+
Mdwm.c | 8++++++++
4 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/.config.def.h.rej.swp b/.config.def.h.rej.swp Binary files differ. diff --git a/.dwm.c.swp b/.dwm.c.swp Binary files differ. diff --git a/config.h b/config.h @@ -95,6 +95,7 @@ static Key keys[] = { { MODKEY, XK_d, spawn, {.v = dmenucmd } }, { MODKEY, XK_e, spawn, {.v = tmux_ } }, { MODKEY|ControlMask, XK_e, spawn, {.v = rfeh_right } }, + { MODKEY, XK_f, togglefullscr, {0} }, { MODKEY, XK_h, setmfact, {.f = -0.05} }, { MODKEY, XK_i, incnmaster, {.i = +1 } }, { MODKEY, XK_j, focusstack, {.i = +1 } }, diff --git a/dwm.c b/dwm.c @@ -221,6 +221,7 @@ static void tagmon(const Arg *arg); static void tile(Monitor *); //static void togglebar(const Arg *arg); static void togglefloating(const Arg *arg); +static void togglefullscr(const Arg *arg); static void toggletag(const Arg *arg); static void toggleview(const Arg *arg); static void unfocus(Client *c, int setfocus); @@ -1687,6 +1688,13 @@ togglefloating(const Arg *arg) } void +togglefullscr(const Arg *arg) +{ + if(selmon->sel) + setfullscreen(selmon->sel, !selmon->sel->isfullscreen); +} + +void toggletag(const Arg *arg) { unsigned int newtags;