dwm

my customized branch of dwm
git clone git://git.jakekoroman.com/dwm
Log | Files | Refs | README | LICENSE

commit a8efbdbd12eba0c7e9617deb1bd9fa3871772a85
parent 7ae70f2d58cfc7f00526bde8c50cdaaa0a89ab02
Author: Jake Koroman <jakekoroman@gmail.com>
Date:   Tue, 20 Aug 2024 21:41:06 -0400

add window fullscreening binding.

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

diff --git a/config.def.h b/config.def.h @@ -97,6 +97,7 @@ static const Key keys[] = { { MODKEY, XK_y, setlayout, {.v = &layouts[3]} }, { MODKEY, XK_space, setlayout, {0} }, { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, + { MODKEY|ShiftMask, XK_f, togglefullscr, {0} }, { MODKEY, XK_0, view, {.ui = ~0 } }, { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, { MODKEY, XK_comma, focusmon, {.i = -1 } }, diff --git a/dwm.c b/dwm.c @@ -222,6 +222,7 @@ static void tagmon(const Arg *arg); static void tile(Monitor *m); 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); @@ -1928,6 +1929,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;