Skip to content

Commit 93eeb00

Browse files
committed
bring in actualfullscreen patch
1 parent 934c7a3 commit 93eeb00

File tree

5 files changed

+15
-2
lines changed

5 files changed

+15
-2
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ All included in the source. Listing here for future upgrade requirements.
100100
+ alpha - http://dwm.suckless.org/patches/alpha
101101
+ pertag - http://dwm.suckless.org/patches/pertag
102102
+ nextprevtag - http://dwm.suckless.org/patches/nextprevtag
103+
+ actualfullscreen - https://dwm.suckless.org/patches/actualfullscreen
103104

104105
### See also
105106
My original [source](http://holymonkey.com/dwm-with-gnome-guide.html) of the gnome-panel idea.

config.def.h

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ static Key keys[] = {
8080
{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
8181
{ MODKEY, XK_space, setlayout, {0} },
8282
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
83+
{ MODKEY|ShiftMask, XK_f, togglefullscr, {0} },
8384
{ MODKEY, XK_0, view, {.ui = ~0 } },
8485
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
8586
{ MODKEY, XK_comma, focusmon, {.i = -1 } },

config.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ static Key keys[] = {
9595
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
9696
{ MODKEY|ShiftMask, XK_p, spawn, {.v = roficmd } },
9797
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
98-
// firefox
99-
{ MODKEY|ShiftMask, XK_f, spawn, {.v = ffcmd } },
98+
// toggle full screen
99+
{ MODKEY|ShiftMask, XK_f, togglefullscr, {0} },
100100
// urxvt
101101
{ MODKEY|ShiftMask, XK_u, spawn, {.v = utermcmd } },
102102
// tmux prefix manager

dwm.1

+3
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ Zooms/cycles focused window to/from master area (tiled layouts only).
116116
.B Mod1\-Shift\-c
117117
Close focused window.
118118
.TP
119+
.B Mod1\-Shift\-f
120+
Toggle fullscreen for focused window.
121+
.TP
119122
.B Mod1\-Shift\-space
120123
Toggle focused window between tiled and floating state.
121124
.TP

dwm.c

+8
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ static void tagmon(const Arg *arg);
214214
static void tile(Monitor *);
215215
static void togglebar(const Arg *arg);
216216
static void togglefloating(const Arg *arg);
217+
static void togglefullscr(const Arg *arg);
217218
static void toggletag(const Arg *arg);
218219
static void toggleview(const Arg *arg);
219220
static void unfocus(Client *c, int setfocus);
@@ -1787,6 +1788,13 @@ togglefloating(const Arg *arg)
17871788
arrange(selmon);
17881789
}
17891790

1791+
void
1792+
togglefullscr(const Arg *arg)
1793+
{
1794+
if(selmon->sel)
1795+
setfullscreen(selmon->sel, !selmon->sel->isfullscreen);
1796+
}
1797+
17901798
void
17911799
toggletag(const Arg *arg)
17921800
{

0 commit comments

Comments
 (0)