Return to repo list

suckless-gf-dwm

Gentoo-friendly patches for Suckless's dwm.
Return to HMagellan.com

commit 7abe2e61842af94b912a3739dff0184ef86d3b92
parent 2b21ad67ff20c528cdec3c1fc708b1aea4785834
Author: Erik Letson <hmagellan@hmagellan.com>
Date:   Tue, 11 Aug 2020 15:05:41 -0500

added actualfullscreen

Diffstat:
Aactualfullscreen/USAGE | 19+++++++++++++++++++
Aactualfullscreen/actualfullscreen.patch | 29+++++++++++++++++++++++++++++
Mfocusonclick/USAGE | 8++++----
3 files changed, 52 insertions(+), 4 deletions(-)

diff --git a/actualfullscreen/USAGE b/actualfullscreen/USAGE @@ -0,0 +1,19 @@ +actualfullscreen - Actually toggle a client to fullscreen +Source: https://dwm.suckless.org/patches/actualfullscreen/ +Original Authors: Sönke Lambert - soelam@live.de + +Description from source: + """ + Actually toggle fullscreen for a window, instead of toggling the status bar and the monocle layout. + """ + +== YOU MUST == +(1). Place the patch file in /etc/portage/patches/x11-wm/dwm/ and run 'emerge dwm' + +== YOU PROBABLY SHOULD == +(1). Add a key binding for togglefullscr to your savedconfig file, as in the example below: + + { MODKEY|ShiftMask, XK_f, togglefullscr, {0} }, + +== PATCH MODIFICATIONS == +(1). Removed lines relating to config.def.h diff --git a/actualfullscreen/actualfullscreen.patch b/actualfullscreen/actualfullscreen.patch @@ -0,0 +1,29 @@ +diff --git a/dwm.c b/dwm.c +index 4465af1..c1b899a 100644 +--- a/dwm.c ++++ b/dwm.c +@@ -211,6 +211,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); +@@ -1719,6 +1720,13 @@ togglefloating(const Arg *arg) + arrange(selmon); + } + ++void ++togglefullscr(const Arg *arg) ++{ ++ if(selmon->sel) ++ setfullscreen(selmon->sel, !selmon->sel->isfullscreen); ++} ++ + void + toggletag(const Arg *arg) + { +-- +2.17.1 + diff --git a/focusonclick/USAGE b/focusonclick/USAGE @@ -1,10 +1,10 @@ focusonclick - Switch focus only on mouse click Source: https://dwm.suckless.org/patches/focusonclick/ Original Authors: Wolfgang S. - ezzieyguywuf at gmail . com (added 6aa8e37 patch fix) - Markus P. - peters_mops at arcor . de - Eric Pruitt - added option to disable focus changing with the scroll wheel - Alessandro Di Martino - Maintainer of the 6.0 version. - Markus Teich - Update and fix + Markus P. - peters_mops at arcor . de + Eric Pruitt - added option to disable focus changing with the scroll wheel + Alessandro Di Martino - Maintainer of the 6.0 version. + Markus Teich - Update and fix Description from source: """