From 25cd46c66f589886733229fafcb2ad0e8d3f82c1 Mon Sep 17 00:00:00 2001 From: Kumar Damani Date: Fri, 4 Sep 2026 21:17:53 -0400 Subject: screenshot annotate with print --- config.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'config.h') diff --git a/config.h b/config.h index ec6a80b..29d1d13 100644 --- a/config.h +++ b/config.h @@ -31,6 +31,7 @@ static const Rule rules[] = { /* class instance title tags mask isfloating monitor */ { "firefox", NULL, NULL, 1 << 7, 0, -1 }, { NULL, "neomutt", NULL, 1 << 8, 0, -1 }, + { "satty", NULL, NULL, 0, 1, -1 }, }; /* layout(s) */ @@ -68,8 +69,8 @@ static const char *voldowncmd[] = { "/bin/sh", "-c", "pactl set-sink-mute @DEFAU static const char *volmutecmd[] = { "/bin/sh", "-c", "pactl set-sink-mute @DEFAULT_SINK@ toggle", NULL }; static const char *micmutecmd[] = { "/bin/sh", "-c", "pactl set-source-mute @DEFAULT_SOURCE@ toggle", NULL }; static const char *mixercmd[] = { "st", "-e", "pulsemixer", NULL }; -static const char *shotselexec[] = { "/bin/sh", "-c", "mkdir -p ~/pics/screenshots; f=~/pics/screenshots/$(date +%Y-%m-%d_%H-%M-%S).png; maim -s \"$f\" && xclip -selection clipboard -t image/png < \"$f\" && dunstify -i \"$f\" \"Screenshot saved\" \"$f\"", NULL }; static const char *shotfullexec[] = { "/bin/sh", "-c", "mkdir -p ~/pics/screenshots; f=~/pics/screenshots/$(date +%Y-%m-%d_%H-%M-%S).png; maim \"$f\" && xclip -selection clipboard -t image/png < \"$f\" && dunstify -i \"$f\" \"Screenshot saved\" \"$f\"", NULL }; +static const char *shotannotexec[] = { "/bin/sh", "-c", "$HOME/.config/home-manager/common/scripts/screenshot-annotate", NULL }; static const char *screenlock[] = { "/bin/sh", "-c", "dm-tool lock", NULL }; static const Key keys[] = { @@ -79,7 +80,7 @@ static const Key keys[] = { { 0, XF86XK_AudioLowerVolume, spawn, {.v = voldowncmd } }, { 0, XF86XK_AudioMute, spawn, {.v = volmutecmd } }, { 0, XF86XK_AudioMicMute, spawn, {.v = micmutecmd } }, - { 0, XK_Print, spawn, {.v = shotselexec } }, + { 0, XK_Print, spawn, {.v = shotannotexec } }, { ShiftMask, XK_Print, spawn, {.v = shotfullexec } }, { MODKEY, XK_Delete, spawn, {.v = screenlock } }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, -- cgit v1.2.3