From 27ce2cea129d95926cfc7676e37f48e2cf388aa2 Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Fri, 10 Sep 2021 20:30:29 -0400 Subject: Add in a fullscreen toggle hotkey to super+alt+f --- dwm.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'dwm.c') diff --git a/dwm.c b/dwm.c index 2e75b3a..cb4113f 100644 --- 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); @@ -2255,3 +2256,10 @@ centeredfloatingmaster(Monitor *m) tx += WIDTH(c); } } + +void +togglefullscr(const Arg *arg) +{ + if(selmon->sel) + setfullscreen(selmon->sel, !selmon->sel->isfullscreen); +} -- cgit v1.2.3