dwm

My fork of dwm.
git clone git://git.alex.balgavy.eu/dwm.git
Log | Files | Refs | README | LICENSE

commit 4d91401f903c46057c477069dd23280673015cf1
parent 182d7b31b94210840a6464c315b5b1393fd9460f
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Fri,  8 Oct 2021 10:58:48 +0200

Patch actualfullscreen

Diffstat:
Mconfig.h | 1+
Mdwm.c | 8++++++++
2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/config.h b/config.h @@ -153,6 +153,7 @@ static Key keys[] = { { MODKEY|ShiftMask, XK_c, killclient, {0} }, { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, // tile { MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, // monocle + { MODKEY|ShiftMask, XK_f, togglefullscr, {0} }, { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, // spiral { MODKEY, XK_s, setlayout, {.v = &layouts[5]} }, // bstack { MODKEY, XK_space, setlayout, {0} }, diff --git a/dwm.c b/dwm.c @@ -251,6 +251,7 @@ static void tag(const Arg *arg); static void tagmon(const Arg *arg); 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); @@ -1942,6 +1943,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;