aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2023-05-19 22:53:23 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2023-05-19 22:53:23 +0200
commitff143426376be946fc69bf436d9cb718f1882068 (patch)
tree8f0b69f3841b64a1253fccb33a25f75bf25936a5
parentfcd14b59ef5eb34c8b107388a3fafe65119119f4 (diff)
add pointer constraints
-rw-r--r--config.h5
-rw-r--r--dwl.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/config.h b/config.h
index 757fd3c..e25e534 100644
--- a/config.h
+++ b/config.h
@@ -9,6 +9,7 @@ static const float focuscolor[] = {0.69, 0.38, 0.53, 1.0};
static const float fullscreen_bg[] = {0.1, 0.1, 0.1, 1.0};
/* tagging */
+static const int tagcount = 9;
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
static const Rule rules[] = {
@@ -107,7 +108,7 @@ static const enum libinput_config_tap_button_map button_map = LIBINPUT_CONFIG_TA
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
/* commands */
-static const char *termcmd[] = { "swt", NULL };
+static const char *termcmd[] = { "st", NULL };
static const char *menucmd[] = { "dmenu-wl_run", "-p", "Run", NULL };
static const Key keys[] = {
@@ -121,7 +122,7 @@ static const Key keys[] = {
{ 0, XKB_KEY_SunPrint_Screen, spawn, SHCMD("grimshot copy area") },
{ MODKEY, XKB_KEY_SunPrint_Screen, spawn, SHCMD("grimshot save area") },
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_P, spawn, SHCMD("passmenu --type") },
- { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_E, spawn, SHCMD("swt -e neomutt") },
+ { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_E, spawn, SHCMD("st -e neomutt") },
{ MODKEY, XKB_KEY_F12, spawn, SHCMD("keyusbctl -t && status -u")},
{ 0, XKB_KEY_XF86AudioLowerVolume, spawn, SHCMD("pactl set-sink-volume 0 -3% && status -u")},
{ 0, XKB_KEY_XF86AudioRaiseVolume, spawn, SHCMD("pactl set-sink-volume 0 +3% && status -u")},
diff --git a/dwl.c b/dwl.c
index 57024ca..443dbd6 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1,6 +1,9 @@
/*
* See LICENSE file for copyright and license details.
*/
+#ifndef POINTERCONSTRAINTS
+#define POINTERCONSTRAINTS
+#endif
#include <getopt.h>
#include <libinput.h>
#include <limits.h>