diff options
| author | gonzo <gonzo@toniatuh.com> | 2023-05-16 22:59:48 +0200 |
|---|---|---|
| committer | gonzo <gonzo@toniatuh.com> | 2023-05-16 22:59:48 +0200 |
| commit | 0ee091705fcefe048d7d6714b89d514c3b1ac328 (patch) | |
| tree | b8dbdd9c0b8fa04b0fbda9ee2054c82233d1c72b | |
| parent | 51b5750a9ae6134415c8c2157b08a0114e3ef29f (diff) | |
| download | dwm-0ee091705fcefe048d7d6714b89d514c3b1ac328.tar.gz | |
actualfullscreen patched
| -rw-r--r-- | config.h | 2 | ||||
| -rw-r--r-- | dwm.1 | 3 | ||||
| -rw-r--r-- | dwm.c | 8 |
3 files changed, 12 insertions, 1 deletions
@@ -77,7 +77,7 @@ static const Key keys[] = { { MODKEY, XK_Tab, view, {0} }, { MODKEY|ShiftMask, XK_q, killclient, {0} }, { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, - { MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, + { MODKEY, XK_f, togglefullscr, {0} }, { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, { MODKEY, XK_space, setlayout, {0} }, { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, @@ -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 @@ -212,6 +212,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); @@ -1723,6 +1724,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; |
