aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-07-28 12:56:56 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2025-07-28 13:00:57 +0530
commit8376095c567b66428d11d878e18bea50db58585b (patch)
tree3992788abb61de3b922efe342b4fae2e26c4a14b
parent9b6d423e1e0ab2e1922bc4fccb75ea7a6c0d1d05 (diff)
add screenshot and swappy keybinds
-rw-r--r--config.def.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index 0e902c9..24cc401 100644
--- a/config.def.h
+++ b/config.def.h
@@ -140,6 +140,8 @@ static const char *vmcmd[] = { "/config/dist/vm.sh", NULL };
static const char *lgcmd[] = { "looking-glass-client", "-m", "97", NULL };
static const char *filemanagercmd[] = { "pcmanfm", NULL };
static const char *lockcmd[] = { "swaylock", NULL };
+static const char screenshotcmd[] = "grim -g \"$(slurp)\" - | wl-copy";
+static const char swappycmd[] = "wl-paste | swappy -f -";
static const Key keys[] = {
/* Note that Shift changes certain key codes: c -> C, 2 -> at, etc. */
@@ -150,6 +152,8 @@ static const Key keys[] = {
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_Return, spawn, {.v = termcmd} },
{ MODKEY, XKB_KEY_x, spawn, {.v = lockcmd} },
{ MODKEY, XKB_KEY_e, spawn, {.v = filemanagercmd} },
+ { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_s, spawn, SHCMD(screenshotcmd) },
+ { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_e, spawn, SHCMD(swappycmd) },
{ MODKEY, XKB_KEY_b, togglebar, {0} },
{ MODKEY, XKB_KEY_j, focusstack, {.i = +1} },
{ MODKEY, XKB_KEY_k, focusstack, {.i = -1} },