commit a61f5fe10e7ddefe2e23cefab59ba2e0ece36ac5
parent 824ebb2d3428f4050d06bb140c98c6e23f22b5bc
Author: Jake Koroman <jake@jakekoroman.com>
Date: Sat, 18 Oct 2025 10:03:25 -0400
patch: applied actualfullscreen.
Diffstat:
4 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/README b/README
@@ -12,6 +12,7 @@ cyclelayouts - https://dwm.suckless.org/patches/cyclelayouts/dwm-cyclelayout
alwayscenter - https://dwm.suckless.org/patches/alwayscenter/dwm-alwayscenter-20200625-f04cac6.diff
hide vacant tags - https://dwm.suckless.org/patches/hide_vacant_tags/dwm-hide_vacant_tags-6.2.diff
fix borders - https://dwm.suckless.org/patches/alpha/dwm-fixborders-6.2.diff
+actualfullscreen - https://dwm.suckless.org/patches/actualfullscreen/dwm-actualfullscreen-20211013-cb3f58a.diff
Requirements
------------
diff --git a/config.def.h b/config.def.h
@@ -140,6 +140,7 @@ static const Key keys[] = {
{ MODKEY|ControlMask, XK_period, cyclelayout, {.i = +1 } },
{ 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.1 b/dwm.1
@@ -122,6 +122,9 @@ Zooms/cycles focused window to/from master area (tiled layouts only).
.B Mod1\-Shift\-c
Close focused window.
.TP
+.B Mod1\-Shift\-f
+Toggle fullscreen for focused window.
+.TP
.B Mod1\-Shift\-space
Toggle focused window between tiled and floating state.
.TP
diff --git a/dwm.c b/dwm.c
@@ -219,6 +219,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);
@@ -1837,6 +1838,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;