From 214d8127f17a4037580f373f90979b540dc85982 Mon Sep 17 00:00:00 2001 From: Marty Sluijtman Date: Thu, 19 Jan 2023 15:42:59 +0100 Subject: [PATCH] Usage in script --- maim-utils | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/maim-utils b/maim-utils index 5c93905..07aec18 100755 --- a/maim-utils +++ b/maim-utils @@ -36,6 +36,18 @@ clip_focus(){ notify-send 'Maim utils' "Shot focussed window and sent it to the clipboard." } +usage(){ + cat >&2 < + fullscreen|full: take screenshot of entire screen + selection|sel: take screenshot of rectangular selection + focus: take screenshot of focussed window + clip-fullscreen|clip-full|full-clip: take screenshot of entire screen and output to clipboard + clip-selection|clip-sel|sel-clip: take screenshot of rectangular selection and output to clipboard + clip-focus|focus-clip: take screenshot of focussed window and output to clipboard + open|show|screenshots: open screenshot directory +EOF + case $1 in sel|selection) selection;; sel-clip|clip-sel|clip-selection) clip_selection;; @@ -44,4 +56,5 @@ case $1 in focus) foucs;; clip-focus|focus-clip) clip_focus;; open|show|screenshots) xdg-open $savedir;; + *) usage;; esac