diff options
| author | Kumar Damani <me@kumardamani.net> | 2026-09-05 01:17:53 +0000 |
|---|---|---|
| committer | Kumar Damani <me@kumardamani.net> | 2026-09-05 01:17:53 +0000 |
| commit | 25cd46c66f589886733229fafcb2ad0e8d3f82c1 (patch) | |
| tree | 138376f141d47853d6fc3c3c1436958f4691cc8b | |
| parent | f0579f9fbd0ec14b3228bb8571f8cf11dbdd0d48 (diff) | |
screenshot annotate with print
| -rw-r--r-- | config.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 } }, |
