Merge pull request #24 from E-Almqvist/dev

Gap modes
pull/33/head
Elias Almqvist 3 years ago committed by GitHub
commit 143772cf93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/config.h
  2. 4
      src/dwm.c
  3. 4
      xsession/dwm-start

@ -3,7 +3,8 @@
/* appearance */ /* appearance */
static const unsigned int borderpx = 4; /* border pixel of windows */ static const unsigned int borderpx = 4; /* border pixel of windows */
static const unsigned int snap = 16; /* snap pixel (32)*/ static const unsigned int snap = 16; /* snap pixel (32)*/
static const unsigned int gappx = 40; static const unsigned int gappx = 0;
static const unsigned int gappx2 = 40;
static const int showbar = 1; /* 0 means no bar */ static const int showbar = 1; /* 0 means no bar */
static const int topbar = 0; /* 0 means bottom bar */ static const int topbar = 0; /* 0 means bottom bar */
static const int usealtbar = 1; /* 1 means use non-dwm status bar */ static const int usealtbar = 1; /* 1 means use non-dwm status bar */

@ -1841,10 +1841,10 @@ setgaps(const Arg *arg)
void void
togglegaps(const Arg *arg) togglegaps(const Arg *arg)
{ {
if (selmon->gappx == 0) if (selmon->gappx == gappx2)
selmon->gappx = gappx; selmon->gappx = gappx;
else else
selmon->gappx = 0; selmon->gappx = gappx2;
arrange(selmon); arrange(selmon);
} }

@ -11,7 +11,9 @@ $HOME/.config/picom/launch &
# Background # Background
nitrogen --restore & nitrogen --restore &
# wal -R
# conky
$HOME/.config/conky/launch.sh &
# Anti sleep # Anti sleep
xset s off & xset s off &

Loading…
Cancel
Save