We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8c633f commit a6e0242Copy full SHA for a6e0242
laintools
@@ -231,6 +231,18 @@ copy_to_clipboard() {
231
fi
232
}
233
234
+open_last_screenshot() {
235
+ for file in ~/0files/imgs/screenshots/*.png; do :; done
236
+ if has nsxiv; then
237
+ nsxiv "${file}"
238
+ elif has sxiv; then
239
+ sxiv "${file}"
240
+ else
241
+ printf '%s\n' "Not found sxiv/nsxiv"
242
+ exit 1
243
+ fi
244
+}
245
+
246
# https://wiki.archlinux.org/title/List_of_applications/Multimedia#Console
247
optimize_image() {
248
if has oxipng; then
@@ -301,6 +313,10 @@ main() {
301
313
exit 0
302
314
303
315
316
+ elif [ "${1:-}" = "ss-open" ]; then
317
+ open_last_screenshot
318
+ exit 0
319
304
320
elif [ "${1:-}" = "drbtt" ]; then
305
321
drbttd
306
322
0 commit comments