diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2021-09-10 20:30:29 -0400 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2021-09-10 20:30:29 -0400 |
| commit | 27ce2cea129d95926cfc7676e37f48e2cf388aa2 (patch) | |
| tree | 8db079565dcc33585bba3b3586b3eff67b3b4f76 /dwm.c | |
| parent | 703cf5fcb0071d97af607f33dcae545bbfca710e (diff) | |
| download | dwm-27ce2cea129d95926cfc7676e37f48e2cf388aa2.tar.gz dwm-27ce2cea129d95926cfc7676e37f48e2cf388aa2.tar.xz | |
Add in a fullscreen toggle hotkey to super+alt+f
Diffstat (limited to 'dwm.c')
| -rw-r--r-- | dwm.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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); @@ -2255,3 +2256,10 @@ centeredfloatingmaster(Monitor *m) tx += WIDTH(c); } } + +void +togglefullscr(const Arg *arg) +{ + if(selmon->sel) + setfullscreen(selmon->sel, !selmon->sel->isfullscreen); +} |
