aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2021-01-23 11:46:45 -0500
committerMitchell Riedstra <mitch@riedstra.dev>2021-01-23 11:46:45 -0500
commit9a1020f4057ef95a7e24490a6e1ff9ed3cb3132a (patch)
treecdd386ced59365417b2fdaa0599558ce8019e990 /config.h
parent9c5d1b3220e85385bf322639dacf04842b120ed6 (diff)
downloaddwm-systray.tar.gz
dwm-systray.tar.xz
systraysystray
Diffstat (limited to 'config.h')
-rw-r--r--config.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/config.h b/config.h
index 3bd1192..febf52d 100644
--- a/config.h
+++ b/config.h
@@ -9,6 +9,10 @@
/* appearance */
static const unsigned int borderpx = 1; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */
+static const unsigned int systraypinning = 0; /* 0: sloppy systray follows selected monitor, >0: pin systray to monitor X */
+static const unsigned int systrayspacing = 2; /* systray spacing */
+static const int systraypinningfailfirst = 1; /* 1: if pinning fails, display systray on the first monitor, False: display systray on the last monitor*/
+static const int showsystray = 1; /* 0 means no systray */
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
static const char *fonts[] = { FONT_SCIENTIFICA };
@@ -81,15 +85,18 @@ static const Layout layouts[] = {
/* commands */
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
static const char *dmenucmd[] = { "dmenu_run", DMENU_FLAGS, NULL };
-static const char *termcmd[] = { "st", NULL };
+static const char *termcmd[] = { "xfce4-terminal", NULL };
static const char *termcmdLarge[] = { "st", "-f", PROFONT_LARGE, NULL };
static const char *termcmdYuge[] = { "st", "-f", ROBOTO_YUGE, NULL };
static const char *passcmd[] = { "passmenu", DMENU_FLAGS, NULL };
static const char *passcmd_type[] = { "passmenu", "--type", DMENU_FLAGS, NULL };
static const char *snip_cmd[] = { "snipmenu", DMENU_FLAGS, NULL };
-static const char *screenshot_cmd[] = { "xfce4-screenshooter", NULL };
+// static const char *screenshot_cmd[] = { "xfce4-screenshooter", NULL };
+static const char *screenshot_cmd[] = { "spectacle", NULL };
static const char *file_cmd[] = { "thunar", NULL };
-static const char *slock_cmd[] = { "slock", NULL };
+static const char *slock_cmd[] = { "slock", NULL };
+static const char *vol_up_cmd[] = { "volCtl", "up", NULL };
+static const char *vol_down_cmd[] = { "volCtl", "down", NULL };
static Key keys[] = {
/* modifier key function argument */
@@ -128,6 +135,8 @@ static Key keys[] = {
{ MODKEY, XK_period, focusmon, {.i = +1 } },
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
+ { MODKEY, XK_Up, spawn, {.v = vol_up_cmd } },
+ { MODKEY, XK_Down, spawn, {.v = vol_down_cmd } },
TAGKEYS( XK_1, 0)
TAGKEYS( XK_2, 1)
TAGKEYS( XK_3, 2)
@@ -137,7 +146,8 @@ static Key keys[] = {
TAGKEYS( XK_7, 6)
TAGKEYS( XK_8, 7)
TAGKEYS( XK_9, 8)
- { 0, XK_Scroll_Lock, spawn, {.v = slock_cmd } },
+ { 0, XK_Scroll_Lock, spawn, {.v = slock_cmd } },
+ { MODKEY|ShiftMask, XK_l, spawn, {.v = slock_cmd } },
{ MODKEY|ShiftMask, XK_r, self_restart, {0} },
{ MODKEY|ShiftMask, XK_e, quit, {0} },
};