commit 7f449a05d93a90226d671c80768e2939b3a5792e
parent 8db915298ddb798ad6a3ca7ca417dae16e0317db
Author: Andrew Laack <andrew@laack.co>
Date: Fri, 17 Apr 2026 17:09:05 -0500
Updated bindings
Diffstat:
| M | config.h | | | 33 | +++++++++++++++++++++++++++++++-- |
1 file changed, 31 insertions(+), 2 deletions(-)
diff --git a/config.h b/config.h
@@ -124,11 +124,36 @@ static const char *mpvpastecmd[] = {"/home/andrew/bin/mpv.sh", "dwm", NULL};
static const char *termcmd[] = {"/home/andrew/bin/terminal.sh", NULL};
static const char *chatcmd[] = {"/home/andrew/bin/chat.sh", NULL};
+static const char *wiresharkcmd[] = {"wireshark", NULL};
//static const char *browsercmd[] = {"xclip -o -sel clipboard | xargs qutebrowser --target window", NULL};
-//static const char *webbrowsercmd[] = {"qutebrowser", NULL};
+static const char *mullvadcmd[] = {"mullvad", NULL};
+static const char *bravecmd[] = {"brave", NULL};
+//static const char *protoncmd[] = {"protonvpn-app", NULL};
#include "movestack.c"
+// === KEYBINDING RULES ===
+
+// 1. All desktop level keybindings start with the modkey
+// - I don't have an alt key and the ctrl key is used for keybindings within programs
+// 2. Mod + character bindings are reserved for:
+// - Window Navigation
+// - Dmenu
+// - Termnal programs
+// - Desktop related keybindings
+// - hiding system bar
+// - locking screen
+// - resizing stack proportion
+// 3. Mod + shift + character bindings are reserved for:
+// - Keybindings that will result in the creation or rotation of windows on screen,
+// excluding programs that only open a terminal window
+// - desktop level programs that don't feel tightly integrated with standard desktop usage
+// - screenshotting
+
+// === KEYBINDINGs ===
+
+// TODO: Make calls to scripts vs path stuff consistent.
+
static const Key keys[] = {
/* modifier key function argument */
{ MODKEY, XK_o, spawn, {.v = dmenucmd } },
@@ -170,7 +195,9 @@ static const Key keys[] = {
//{ MODKEY|ShiftMask, XK_l, spawn, {.v = openlibrewolfcmd } },
{ MODKEY, XK_l, spawn, {.v = lockcmd } },
{ MODKEY|ShiftMask, XK_p, spawn, {.v = mpvpastecmd } },
- //{ MODKEY|ShiftMask, XK_w, spawn, {.v = webbrowsercmd } },
+ { MODKEY|ShiftMask, XK_m, spawn, {.v = mullvadcmd } },
+ { MODKEY|ShiftMask, XK_b, spawn, {.v = bravecmd } },
+ { MODKEY|ShiftMask, XK_w, spawn, {.v = wiresharkcmd } },
//{ MODKEY|ShiftMask, XK_e, spawn, {.v = emacscmd } },
// this shouldn't really be used seriously.
@@ -179,6 +206,8 @@ static const Key keys[] = {
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
{ MODKEY|ShiftMask, XK_c, spawn, {.v = chatcmd } },
+ //This conflicts with play and play is cooler.
+ //{ MODKEY|ShiftMask, XK_p, spawn, {.v = protoncmd } },
{ MODKEY, XK_Down, focusstack, {.i = +1 } },