mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 12:05:45 +00:00
Adding togglefullscreen patch
This commit is contained in:
parent
e681ab5dd9
commit
448f8db4c2
@ -11,7 +11,7 @@ Refer to [https://dwm.suckless.org/](https://dwm.suckless.org/) for details on t
|
|||||||
|
|
||||||
### Changelog:
|
### Changelog:
|
||||||
|
|
||||||
2019-09-05 - Alpha, systray, pertag and zoomswap patches added
|
2019-09-05 - Alpha, systray, togglefullscreen, pertag and zoomswap patches added
|
||||||
|
|
||||||
### Patches included:
|
### Patches included:
|
||||||
|
|
||||||
@ -24,6 +24,9 @@ Refer to [https://dwm.suckless.org/](https://dwm.suckless.org/) for details on t
|
|||||||
- [systray](https://dwm.suckless.org/patches/systray/)
|
- [systray](https://dwm.suckless.org/patches/systray/)
|
||||||
- adds system tray in the status bar
|
- adds system tray in the status bar
|
||||||
|
|
||||||
|
- [togglefullscreen](https://github.com/bakkeby/dwm-vanitygaps/blob/master/patches/dwm-togglefullscreen-6.2.diff)
|
||||||
|
- allows you to toggle fullscreen on and off using a single shortcut key
|
||||||
|
|
||||||
- [zoomswap](https://dwm.suckless.org/patches/zoomswap/)
|
- [zoomswap](https://dwm.suckless.org/patches/zoomswap/)
|
||||||
- allows a master and a stack window to swap places rather than every window on the screen changing position
|
- allows a master and a stack window to swap places rather than every window on the screen changing position
|
||||||
|
|
||||||
|
@ -93,6 +93,9 @@ static Key keys[] = {
|
|||||||
{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
|
{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
|
||||||
{ MODKEY, XK_space, setlayout, {0} },
|
{ MODKEY, XK_space, setlayout, {0} },
|
||||||
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
|
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
|
||||||
|
#if TOGGLEFULLSCREEN_PATCH
|
||||||
|
{ MODKEY, XK_y, togglefullscreen, {0} },
|
||||||
|
#endif // TOGGLEFULLSCREEN_PATCH
|
||||||
{ MODKEY, XK_0, view, {.ui = ~0 } },
|
{ MODKEY, XK_0, view, {.ui = ~0 } },
|
||||||
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
|
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
|
||||||
{ MODKEY, XK_comma, focusmon, {.i = -1 } },
|
{ MODKEY, XK_comma, focusmon, {.i = -1 } },
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
#include "systray.c"
|
#include "systray.c"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if TOGGLEFULLSCREEN_PATCH
|
||||||
|
#include "togglefullscreen.c"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if ZOOMSWAP_PATCH
|
#if ZOOMSWAP_PATCH
|
||||||
#include "zoomswap.c"
|
#include "zoomswap.c"
|
||||||
#endif // ZOOMSWAP_PATCH
|
#endif
|
||||||
|
@ -6,6 +6,10 @@
|
|||||||
#include "systray.h"
|
#include "systray.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if TOGGLEFULLSCREEN_PATCH
|
||||||
|
#include "togglefullscreen.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if ZOOMSWAP_PATCH
|
#if ZOOMSWAP_PATCH
|
||||||
#include "zoomswap.h"
|
#include "zoomswap.h"
|
||||||
#endif // ZOOMSWAP_PATCH
|
#endif
|
7
patch/togglefullscreen.c
Normal file
7
patch/togglefullscreen.c
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
void
|
||||||
|
togglefullscreen(const Arg *arg) {
|
||||||
|
if (!selmon->sel)
|
||||||
|
return;
|
||||||
|
|
||||||
|
setfullscreen(selmon->sel, !selmon->sel->isfullscreen);
|
||||||
|
}
|
1
patch/togglefullscreen.h
Normal file
1
patch/togglefullscreen.h
Normal file
@ -0,0 +1 @@
|
|||||||
|
static void togglefullscreen(const Arg *arg);
|
@ -28,6 +28,12 @@
|
|||||||
*/
|
*/
|
||||||
#define PERTAGBAR_PATCH 0
|
#define PERTAGBAR_PATCH 0
|
||||||
|
|
||||||
|
|
||||||
|
/* This patch allows you to toggle fullscreen on and off using a single shortcut key.
|
||||||
|
* https://github.com/bakkeby/dwm-vanitygaps/blob/master/patches/dwm-togglefullscreen-6.2.diff
|
||||||
|
*/
|
||||||
|
#define TOGGLEFULLSCREEN_PATCH 1
|
||||||
|
|
||||||
/* The zoomswap patch allows a master and a stack window to swap places
|
/* The zoomswap patch allows a master and a stack window to swap places
|
||||||
* rather than every window on the screen changing position.
|
* rather than every window on the screen changing position.
|
||||||
* https://dwm.suckless.org/patches/zoomswap/
|
* https://dwm.suckless.org/patches/zoomswap/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user