aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2022-02-27 17:10:03 -0800
committerxyz <gky44px1999@gmail.com>2022-02-27 17:10:03 -0800
commit93beee1a24f3ae9eccfa2cd1b529706960410708 (patch)
tree08147b795d0042d8c68fb46c499d2635c1af0f49 /config.def.h
parent8dcab6b42a4be5173b4919204d073c3364267046 (diff)
notify me when screenshot finishedstudio
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h
index 490f726..8e3fc45 100644
--- a/config.def.h
+++ b/config.def.h
@@ -112,9 +112,9 @@ static Key keys[] = {
{ 0, XF86XK_AudioPrev, spawn, SHCMD("playerctl previous") },
{ 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("amixer set Master 5%+; kill -RTMIN+1 $(pidof -x sbar)") },
{ 0, XK_Caps_Lock,spawn, SHCMD("sleep 0.2; kill -RTMIN+3 $(pidof -x sbar)") },
- { 0, XK_Print, spawn, SHCMD("ffmpeg -f x11grab -i \"$DISPLAY\" -vframes 1 \"$XDG_PICTURES_DIR/screenshots/$(time.uuid).png\"") },
+ { 0, XK_Print, spawn, SHCMD("ffmpeg -f x11grab -i \"$DISPLAY\" -vframes 1 \"$XDG_PICTURES_DIR/screenshots/$(time.uuid).png\" && notify-send 'Screenshot Finished'") },
{ MODKEY, XF86XK_AudioMute, spawn, SHCMD("amixer set Capture toggle; kill -RTMIN $(pidof -x sbar)") },
- { MODKEY, XK_Print, spawn, SHCMD("xrectsel '%w %h %x %y' | xargs sh -c 'ffmpeg -f x11grab -s \"$1x$2\" -i \"$DISPLAY+$3,$4\" -vframes 1 \"$XDG_PICTURES_DIR/screenshots/$(time.uuid).png\"' shell") },
+ { MODKEY, XK_Print, spawn, SHCMD("xrectsel '%w %h %x %y' | xargs sh -c 'ffmpeg -f x11grab -s \"$1x$2\" -i \"$DISPLAY+$3,$4\" -vframes 1 \"$XDG_PICTURES_DIR/screenshots/$(time.uuid).png\"' shell && notify-send 'Screenshot Finished'") },
{ MODKEY, XK_n, spawn, SHCMD("dunstctl close") },
{ MODKEY, XK_q, spawn, SHCMD("qbittorrent") },
{ MODKEY, XK_r, spawn, SHCMD("xsel -ob | rev | xsel -ib") },