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