dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 462642aef274be7d58cb50b849f5b59d77a9a916
parent 07bdb4c290138de8ed10eaac100eed5d1f969e13
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu, 11 Apr 2019 20:29:32 +0200

Hide cursor from non-full screen maim picks

Diffstat:
Mbin/maimpick | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/bin/maimpick b/bin/maimpick @@ -1,9 +1,9 @@ #!/bin/sh case "$(printf "a selected area\\ncurrent window\\nfull screen\\na selected area (copy)\\ncurrent window (copy)\\nfullscreen (copy)" | dmenu_themed -l 6 -i -p "Screenshot which area?")" in - "a selected area") maim -s ~/tmp/pic-selected-"$(date '+%y%m%d-%H%M-%S').png" ;; - "current window") maim -i "$(xdotool getactivewindow)" ~/tmp/pic-window-"$(date '+%y%m%d-%H%M-%S').png" ;; + "a selected area") maim --hidecursor -s ~/tmp/pic-selected-"$(date '+%y%m%d-%H%M-%S').png" ;; + "current window") maim --hidecursor -i "$(xdotool getactivewindow)" ~/tmp/pic-window-"$(date '+%y%m%d-%H%M-%S').png" ;; "full screen") maim ~/tmp/pic-full-"$(date '+%y%m%d-%H%M-%S').png" ;; - "a selected area (copy)") maim -s | xclip -selection clipboard -t image/png ;; - "current window (copy)") maim -i | xclip -selection clipboard -t image/png ;; + "a selected area (copy)") maim --hidecursor -s | xclip -selection clipboard -t image/png ;; + "current window (copy)") maim --hidecursor -i | xclip -selection clipboard -t image/png ;; "full screen (copy)") maim | xclip -selection clipboard -t image/png ;; esac