summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h
index c8baa68..e759b34 100644
--- a/config.def.h
+++ b/config.def.h
@@ -1,5 +1,11 @@
/* See LICENSE file for copyright and license details. */
#include <X11/XF86keysym.h>
+
+
+/* Constants */
+#define TERMINAL "st"
+#define BROWSER "brave"
+
/* appearance */
static const unsigned int borderpx = 1; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */
@@ -59,14 +65,16 @@ static const Layout layouts[] = {
/* 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 *termcmd[] = { "st", "-e", "/bin/zsh", NULL };
+static const char *termcmd[] = { TERMINAL, "-e", "/bin/zsh", NULL };
+static const char *browsercmd[] = { BROWSER, NULL };
static const char *togglemutecmd[] = { "/usr/bin/wpctl", "set-mute", "@DEFAULT_AUDIO_SINK@", "toggle", NULL };
static const char *upvolcmd[] = { "/usr/bin/wpctl", "set-volume", "@DEFAULT_AUDIO_SINK@", "5%+", NULL };
static const char *downvolcmd[] = { "/usr/bin/wpctl", "set-volume", "@DEFAULT_AUDIO_SINK@", "5%-", NULL };
static const char *updisplaybrightnesscmd[] = { "/usr/bin/brightnessctl", "set", "10%+", NULL };
static const char *downdisplaybrightnesscmd[] = { "/usr/bin/brightnessctl", "set", "10%-", NULL };
static const char *keyboardbacklighttogglecmd[] = { "keyboard_backlight", NULL };
-static const char *fileexplorercmd[] = {"st", "-t lf", "lf", NULL };
+static const char *fileexplorercmd[] = { TERMINAL, "-e", "lfub", NULL };
+static const char *lockscreencmd[] = { "/bin/sh", "-c", "slock & xset dpms force off", NULL };
static const int attachbelow = 1; /* 1 means attach after the currently active window */
static const Key keys[] = {
@@ -79,6 +87,8 @@ static const Key keys[] = {
{ 0, XF86XK_MonBrightnessUp, spawn, {.v = updisplaybrightnesscmd} },
{ 0, XF86XK_MonBrightnessDown, spawn, {.v = downdisplaybrightnesscmd} },
{ MODKEY, XK_e, spawn, {.v = fileexplorercmd} },
+ { MODKEY, XK_w, spawn, {.v = browsercmd} },
+ { MODKEY|ShiftMask, XK_l, spawn, {.v = lockscreencmd} },
{ MOD2KEY, XK_space, spawn, {.v = keyboardbacklighttogglecmd} },
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },