Merge pull request #9 from E-Almqvist/dev

DMenu & other stuff
pull/10/head
Elias Almqvist 4 years ago committed by GitHub
commit e998380efd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      README.md
  2. 15
      src/config.h

@ -9,16 +9,16 @@ This is my version of dwm with applied patches. Feel free to use it but I recomm
## Features (patches) ## Features (patches)
- **[anybar](https://dwm.suckless.org/patches/anybar/)** - **[anybar](https://dwm.suckless.org/patches/anybar/)**
Use any bar. Polybar is default here. Use any bar. Polybar is default here. ( USING DMENU )
- **[IPC](https://dwm.suckless.org/patches/ipc/)** - **[IPC](https://dwm.suckless.org/patches/ipc/)**
Allows for inter-process communication via a socket. Allows for inter-process communication via a socket.
- **[fullgaps](https://dwm.suckless.org/patches/fullgaps/)** - **[fullgaps](https://dwm.suckless.org/patches/fullgaps/)**
Gaps between windows in tiled mode. Gaps between windows in tiled mode.
- **[actualfullscreen](https://dwm.suckless.org/patches/actualfullscreen/)** - **[actualfullscreen](https://dwm.suckless.org/patches/actualfullscreen/)**
Fullscreen windows with Super + Shift + f Fullscreen windows with Super + Shift + f
- **spawncenter** - **spawncenter**
Windows spawn in the center of the screen in floating mode. Windows spawn in the center of the screen in floating mode.

@ -25,7 +25,7 @@ static const char col_gray1[] = "#222222";
static const char col_gray2[] = "#444444"; static const char col_gray2[] = "#444444";
static const char col_gray3[] = "#bbbbbb"; static const char col_gray3[] = "#bbbbbb";
static const char col_gray4[] = "#eeeeee"; static const char col_gray4[] = "#eeeeee";
static const char col_cyan[] = "#005577"; static const char col_cyan[] = "#5f819d";
static const char *colors[][3] = { static const char *colors[][3] = {
/* fg bg border */ /* fg bg border */
[SchemeNorm] = { col_gray3, col_gray1, col_gray1 }, [SchemeNorm] = { col_gray3, col_gray1, col_gray1 },
@ -50,6 +50,8 @@ static const Rule rules[] = {
/* class instance title tags mask isfloating monitor */ /* class instance title tags mask isfloating monitor */
{ "Gimp", NULL, NULL, 0, 1, -1 }, { "Gimp", NULL, NULL, 0, 1, -1 },
{ "Firefox", NULL, NULL, 1 << 8, 0, -1 }, { "Firefox", NULL, NULL, 1 << 8, 0, -1 },
{ "discord", NULL, NULL, 0, 1, -1 },
{ "Steam", NULL, NULL, 0, 1, -1 },
}; };
/* layout(s) */ /* layout(s) */
@ -59,8 +61,8 @@ static const int resizehints = 1; /* 1 means respect size hints in tiled resi
static const Layout layouts[] = { static const Layout layouts[] = {
/* symbol arrange function */ /* symbol arrange function */
{ "><>", NULL }, /* first entry is default */ { "[]=", tile }, /* first entry is default */
{ "[]=", tile }, { "><>", NULL },
{ "[M]", monocle }, { "[M]", monocle },
}; };
@ -78,8 +80,7 @@ static const Layout layouts[] = {
/* commands */ /* commands */
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", bg_color, "-nf", text_color, "-sb", col_cyan, "-sf", col_gray4, "-p", "Run:", "-i", NULL };
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", bg_color, "-nf", text_color, "-sb", col_cyan, "-sf", col_gray4, NULL };
static const char *termcmd[] = { "urxvt", NULL }; static const char *termcmd[] = { "urxvt", NULL };
@ -103,8 +104,8 @@ static Key keys[] = {
{ MODKEY|ShiftMask, XK_Return, zoom, {0} }, { MODKEY|ShiftMask, XK_Return, zoom, {0} },
{ MODKEY, XK_Tab, view, {0} }, { MODKEY, XK_Tab, view, {0} },
{ MODKEY|ShiftMask, XK_q, killclient, {0} }, { MODKEY|ShiftMask, XK_q, killclient, {0} },
{ MODKEY, XK_t, setlayout, {.v = &layouts[1]} }, { MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
{ MODKEY, XK_f, setlayout, {.v = &layouts[0]} }, { MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
{ 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} },

Loading…
Cancel
Save