Merge branch 'frei-0xff-master'
This commit is contained in:
commit
0fc18ac866
4 changed files with 17 additions and 6 deletions
12
README.md
12
README.md
|
@ -12,16 +12,16 @@ I haven't kept `man dwm`/`dwm.1` updated though. PRs welcome on that, lol.
|
|||
|
||||
## Patches and features
|
||||
|
||||
- Clickable statusbar with my build of [dwmblocks](https://github.com/lukesmithxyz/dwmblocks).
|
||||
- Reads xresources colors/variables (i.e. works with `pywal`, etc.).
|
||||
- [Clickable statusbar](https://dwm.suckless.org/patches/statuscmd/) with my build of [dwmblocks](https://github.com/lukesmithxyz/dwmblocks).
|
||||
- Reads [xresources](https://dwm.suckless.org/patches/xresources/) colors/variables (i.e. works with `pywal`, etc.).
|
||||
- scratchpad: Accessible with mod+shift+enter.
|
||||
- New layouts: bstack, fibonacci, deck, centered master and more. All bound to keys `super+(shift+)t/y/u/i`.
|
||||
- True fullscreen (`super+f`) and prevents focus shifting.
|
||||
- Windows can be made sticky (`super+s`).
|
||||
- stacker: Move windows up the stack manually (`super-K/J`).
|
||||
- shiftview: Cycle through tags (`super+g/;`).
|
||||
- vanitygaps: Gaps allowed across all layouts.
|
||||
- swallow patch: if a program run from a terminal would make it inoperable, it temporarily takes its place to save space.
|
||||
- [stacker](https://dwm.suckless.org/patches/stacker/): Move windows up the stack manually (`super-K/J`).
|
||||
- [shiftview](https://dwm.suckless.org/patches/nextprev/): Cycle through tags (`super+g/;`).
|
||||
- [vanitygaps](https://dwm.suckless.org/patches/vanitygaps/): Gaps allowed across all layouts.
|
||||
- [swallow patch](https://dwm.suckless.org/patches/swallow/): if a program run from a terminal would make it inoperable, it temporarily takes its place to save space.
|
||||
|
||||
## Installation for newbs
|
||||
|
||||
|
|
1
config.h
1
config.h
|
@ -201,6 +201,7 @@ static Key keys[] = {
|
|||
{ MODKEY|ShiftMask, XK_semicolon, shifttag, { .i = 1 } },
|
||||
{ MODKEY, XK_apostrophe, togglescratch, {.ui = 1} },
|
||||
/* { MODKEY|ShiftMask, XK_apostrophe, spawn, SHCMD("") }, */
|
||||
{ MODKEY|ShiftMask, XK_apostrophe, togglesmartgaps, {0} },
|
||||
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
|
||||
{ MODKEY|ShiftMask, XK_Return, togglescratch, {.ui = 0} },
|
||||
|
||||
|
|
2
dwm.c
2
dwm.c
|
@ -1248,6 +1248,8 @@ manage(Window w, XWindowAttributes *wa)
|
|||
(unsigned char *) &(c->win), 1);
|
||||
XMoveResizeWindow(dpy, c->win, c->x + 2 * sw, c->y, c->w, c->h); /* some windows require this */
|
||||
setclientstate(c, NormalState);
|
||||
if(selmon->sel && selmon->sel->isfullscreen && !c->isfloating)
|
||||
setfullscreen(selmon->sel, 0);
|
||||
if (c->mon == selmon)
|
||||
unfocus(selmon->sel, 0);
|
||||
c->mon->sel = c;
|
||||
|
|
|
@ -8,6 +8,7 @@ static void incrgaps(const Arg *arg);
|
|||
/* static void incrihgaps(const Arg *arg); */
|
||||
/* static void incrivgaps(const Arg *arg); */
|
||||
static void togglegaps(const Arg *arg);
|
||||
static void togglesmartgaps(const Arg *arg);
|
||||
|
||||
/* Layouts */
|
||||
static void bstack(Monitor *m);
|
||||
|
@ -48,6 +49,13 @@ togglegaps(const Arg *arg)
|
|||
arrange(NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
togglesmartgaps(const Arg *arg)
|
||||
{
|
||||
smartgaps = !smartgaps;
|
||||
arrange(NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
defaultgaps(const Arg *arg)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue