From 84e42e3f9c46592fbb5f9c376caa5ea082788ebf Mon Sep 17 00:00:00 2001 From: Kris Yotam <75515498+krisyotam@users.noreply.github.com> Date: Fri, 29 May 2026 16:42:05 -0500 Subject: [PATCH] Restore Mod+s/Print snip and record bindings Codex overwrote snip+record with screenshot+dread and uncommented the Mod+s swapfocus binding that conflicted with snip. Restored from the 2026-05-27 Hetzner backup snapshot. --- config.def.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/config.def.h b/config.def.h index b1fedafdb01f80c6a621356c4c05b0c579d40a54..bea84beaf45055b52a560567e249c63cea70c59d 100644 --- a/config.def.h +++ b/config.def.h @@ -1118,12 +1118,13 @@ static const Key keys[] = { { 0, XF86XK_MonBrightnessUp, spawn, {.v = (const char*[]){ "light", "-A", "5", NULL } } }, { 0, XF86XK_MonBrightnessDown,spawn, {.v = (const char*[]){ "light", "-U", "5", NULL } } }, - /* Screenshots */ - { 0, XK_Print, spawn, {.v = (const char*[]){ "screenshot", NULL } } }, - { ShiftMask, XK_Print, spawn, {.v = (const char*[]){ "screenshot", "select", NULL } } }, + /* Screenshots and recording */ + { 0, XK_Print, spawn, {.v = (const char*[]){ "snip", NULL } } }, + { ShiftMask, XK_Print, spawn, {.v = (const char*[]){ "snip", "full", NULL } } }, { MODKEY, XK_Print, spawn, {.v = (const char*[]){ "record", NULL } } }, { MODKEY|ShiftMask, XK_Print, spawn, {.v = (const char*[]){ "record", "-stop", NULL } } }, - { MODKEY|ShiftMask, XK_s, spawn, {.v = (const char*[]){ "screenshot", "select", NULL } } }, + { MODKEY, XK_s, spawn, {.v = (const char*[]){ "snip", NULL } } }, + { MODKEY|ShiftMask, XK_s, spawn, {.v = (const char*[]){ "snip", "full", NULL } } }, /* Applications */ { MODKEY, XK_slash, spawn, {.v = (const char*[]){ "dkymap", NULL } } }, @@ -1131,7 +1132,7 @@ static const Key keys[] = { { MODKEY, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_b, spawn, {.v = (const char*[]){ "dbrowse", NULL } } }, { MODKEY, XK_w, spawn, {.v = (const char*[]){ "tome", "-dmenu", "-edit", NULL } } }, - { MODKEY, XK_r, spawn, {.v = (const char*[]){ "dread", NULL } } }, + { MODKEY, XK_r, spawn, {.v = (const char*[]){ "record", NULL } } }, { MODKEY, XK_n, spawn, {.v = (const char*[]){ "dnotes", NULL } } }, { MODKEY, XK_e, spawn, {.v = (const char*[]){ "tome", "-dmenu", "-data", NULL } } }, { MODKEY, XK_c, spawn, {.v = (const char*[]){ "tome", "-dmenu", "-create", NULL } } }, @@ -1190,7 +1191,7 @@ static const Key keys[] = { { MODKEY|ControlMask, XK_Down, placedir, {.i = 3 } }, // down #endif // PLACEDIR_PATCH #if SWAPFOCUS_PATCH && PERTAG_PATCH - { MODKEY, XK_s, swapfocus, {.i = -1 } }, + /* { MODKEY, XK_s, swapfocus, {.i = -1 } }, */ // removed: conflicts with snip, unused #endif // SWAPFOCUS_PATCH #if SWITCHCOL_PATCH { MODKEY, XK_v, switchcol, {0} },