From 4cdf759277f891d7dd2d9ca0be62bcd848f069fe Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Sun, 22 Nov 2020 15:19:11 +0100 Subject: [PATCH] Added actualfullscreen patch --- src/config.def.h | 1 + src/dwm.c | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/src/config.def.h b/src/config.def.h index 46d0595..342386f 100644 --- a/src/config.def.h +++ b/src/config.def.h @@ -83,6 +83,7 @@ static Key keys[] = { { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, { 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/src/dwm.c b/src/dwm.c index ff60ea4..6d82cba 100644 --- a/src/dwm.c +++ b/src/dwm.c @@ -242,6 +242,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); @@ -1964,6 +1965,13 @@ togglefloating(const Arg *arg) arrange(selmon); } +void +togglefullscr(const Arg *arg) +{ + if(selmon->sel) + setfullscreen(selmon->sel, !selmon->sel->isfullscreen); +} + void toggletag(const Arg *arg) {