From ff143426376be946fc69bf436d9cb718f1882068 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Fri, 19 May 2023 22:53:23 +0200 Subject: add pointer constraints --- config.h | 5 +++-- dwl.c | 3 +++ 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 #include #include -- cgit v1.2.3-70-g09d2