dwm

personal dwm configuration
git clone git://git.eonn.xyz/dwm.git
Log | Files | Refs | README | LICENSE

commit 336226c17cbb6da3ba732f62aa6da791b7180225
parent 6021f12c045d51fa456ecae8c2dbfa1e6a039098
Author: Ian Ressa <ian@eonn.xyz>
Date:   Wed, 30 Mar 2022 00:42:01 -0400

add actualfullscreen-20211013-cb3f58a

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

diff --git a/config.def.h b/config.def.h @@ -79,6 +79,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/dwm.1 b/dwm.1 @@ -116,6 +116,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 @@ -212,6 +212,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); @@ -1732,6 +1733,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;