aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2023-03-21 22:16:27 -0700
committerXiao Pan <gky44px1999@gmail.com>2023-03-21 22:16:27 -0700
commit28b6fffbbd1b794522069867e44432dab5969588 (patch)
tree611dc2cb06623df701ba921009ba189098c43aea
parenta187c643a0dcd5de6ca6687f2a2c723591ea99db (diff)
screenshot switch to jxl
-rw-r--r--config.def.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h
index f4f61a8..35742f3 100644
--- a/config.def.h
+++ b/config.def.h
@@ -114,9 +114,9 @@ static const Key keys[] = {
{ 0, XF86XK_MonBrightnessUp, spawn, SHCMD("backlight -u") },
{ 0, XF86XK_MonBrightnessDown, spawn, SHCMD("backlight -d") },
// mod-shift-prtsc and mod-ctrl-prtsc does not work well, maybe because of sysrq? but mod-prtsc works well tho
- { 0, XK_Print, spawn, SHCMD("ffmpeg -f x11grab -i \"$DISPLAY\" -vframes 1 \"$XDG_PICTURES_DIR/screenshots/$(time.uuid).png\" && notify-send 'Screenshot Finished'") },
+ { 0, XK_Print, spawn, SHCMD("ffmpeg -f x11grab -i \"$DISPLAY\" -vframes 1 \"$XDG_PICTURES_DIR/screenshots/$(time.uuid).jxl\" && notify-send 'Screenshot Finished'") },
{ MODKEY, XF86XK_AudioMute, spawn, SHCMD("amixer set Capture toggle; kill -RTMIN $(pidof -x sbar)") },
- { MODKEY, XK_g, 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_g, 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).jxl\"' shell && notify-send 'Screenshot Finished'") },
{ MODKEY, XK_n, spawn, SHCMD("dunstctl close") },
// `xsel -cb` because there's a small delay before reading password into clipboard, so clear it beforehand to prevent pasting old clipboard
{ MODKEY, XK_o, spawn, SHCMD("xsel -cb; pass otp duolibre | tail -n1 | xsel -ibt 3000") },