/* See LICENSE file for copyright and license details. */
+#include <X11/XF86keysym.h>
/* appearance */
static const unsigned int borderpx = 1; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
-static const char *fonts[] = { "monospace:size=10" };
-static const char dmenufont[] = "monospace:size=10";
-static const char col_gray1[] = "#222222";
-static const char col_gray2[] = "#444444";
-static const char col_gray3[] = "#bbbbbb";
-static const char col_gray4[] = "#eeeeee";
-static const char col_cyan[] = "#005577";
+static const char *fonts[] = { "monospace:size=11" };
+static const char dmenufont[] = "monospace:size=11";
+static const char col_bg_sel[] = "#50a0e0";
+static const char col_fg_sel[] = "#000000";
+static const char col_fg_norm[] = "#d0d0ff";
+static const char col_bg_norm[] = "#505090";
static const char *colors[][3] = {
- /* fg bg border */
- [SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
- [SchemeSel] = { col_gray4, col_cyan, col_cyan },
+ /* fg bg border */
+ [SchemeNorm] = { col_fg_norm, col_bg_norm, col_bg_norm },
+ [SchemeSel] = { col_fg_sel, col_bg_sel, col_bg_sel },
};
/* tagging */
* WM_NAME(STRING) = title
*/
/* class instance title tags mask isfloating monitor */
- { "Gimp", NULL, NULL, 0, 1, -1 },
- { "Firefox", NULL, NULL, 1 << 8, 0, -1 },
+ { "discord", NULL, NULL, 1 << 8, 0, 0 },
};
/* layout(s) */
static const Layout layouts[] = {
/* symbol arrange function */
- { "[]=", tile }, /* first entry is default */
- { "><>", NULL }, /* no layout function means floating behavior */
+ { "[T]", tile }, /* first entry is default */
+ { "[F]", NULL }, /* no layout function means floating behavior */
{ "[M]", monocle },
};
/* key definitions */
-#define MODKEY Mod1Mask
+#define MODKEY Mod4Mask
#define TAGKEYS(KEY,TAG) \
{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
/* commands */
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
-static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
+static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_bg_norm, "-nf", col_fg_norm, "-sb", col_bg_sel, "-sf", col_fg_sel, NULL };
+static const char *roficmd[] = { "rofi", "-show", "drun" };
static const char *termcmd[] = { "st", NULL };
+static const char *lock[] = { "slock", NULL };
+static const char *screenshot[] = { "screenshot", NULL };
+
+static const char *upvol[] = {"pactl", "set-sink-volume", "0", "+2%", NULL };
+static const char *downvol[] = {"pactl", "set-sink-volume", "0", "-2%", NULL };
+static const char *mutevol[] = {"pactl", "set-sink-mute", "0", "toggle", NULL };
static const Key keys[] = {
/* modifier key function argument */
- { MODKEY, XK_p, spawn, {.v = dmenucmd } },
+ { MODKEY, XK_d, spawn, {.v = roficmd } },
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },
- { MODKEY, XK_i, incnmaster, {.i = +1 } },
- { MODKEY, XK_d, incnmaster, {.i = -1 } },
+ { MODKEY, XK_Next, incnmaster, {.i = +1 } },
+ { MODKEY, XK_Prior, incnmaster, {.i = -1 } },
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
{ MODKEY, XK_Return, zoom, {0} },
{ MODKEY, XK_Tab, view, {0} },
- { MODKEY|ShiftMask, XK_c, killclient, {0} },
+ { MODKEY|ShiftMask, XK_q, killclient, {0} },
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
{ MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
TAGKEYS( XK_7, 6)
TAGKEYS( XK_8, 7)
TAGKEYS( XK_9, 8)
- { MODKEY|ShiftMask, XK_q, quit, {0} },
+ { MODKEY|ShiftMask, XK_e, quit, {0} },
+ { 0, XF86XK_AudioRaiseVolume, spawn, {.v = upvol} },
+ { 0, XF86XK_AudioLowerVolume, spawn, {.v = downvol} },
+ { 0, XF86XK_AudioMute, spawn, {.v = mutevol} },
+ { MODKEY|ShiftMask, XK_s, spawn, {.v = screenshot} },
+ { MODKEY, XK_x, spawn, {.v = lock} },
};
/* button definitions */
{ ClkTagBar, MODKEY, Button3, toggletag, {0} },
};
+