summaryrefslogtreecommitdiff
path: root/scripts/.local/bin/maimpick
diff options
context:
space:
mode:
author--global <ik.boikov.public@protonmail.com>2021-08-09 20:42:29 +0200
committer--global <ik.boikov.public@protonmail.com>2021-08-09 20:42:29 +0200
commit78f2fb985a56c357cce7ad0d10432c784b7282b6 (patch)
tree772e3631546381889f22379bda7554f99216b894 /scripts/.local/bin/maimpick
parenta4aff15001464ac8e7a948e4ed98aa5af19663ad (diff)
forgot to color some dmenus
Diffstat (limited to 'scripts/.local/bin/maimpick')
-rwxr-xr-xscripts/.local/bin/maimpick4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/.local/bin/maimpick b/scripts/.local/bin/maimpick
index 7125e61..c8bccd5 100755
--- a/scripts/.local/bin/maimpick
+++ b/scripts/.local/bin/maimpick
@@ -4,7 +4,9 @@
# choose the kind of screenshot to take, including copying the image or even
# highlighting an area to copy. scrotcucks on suicidewatch right now.
-case "$(printf "a selected area\\ncurrent window\\nfull screen\\na selected area (copy)\\ncurrent window (copy)\\nfull screen (copy)" | dmenu -l 6 -i -p "Screenshot which area?")" in
+dmenu=cdmenu
+
+case "$(printf "a selected area\\ncurrent window\\nfull screen\\na selected area (copy)\\ncurrent window (copy)\\nfull screen (copy)" | cdmenu -l 6 -i -p "Screenshot which area?")" in
"a selected area") maim -s pic-selected-"$(date '+%y%m%d-%H%M-%S').png" ;;
"current window") maim -i "$(xdotool getactivewindow)" pic-window-"$(date '+%y%m%d-%H%M-%S').png" ;;
"full screen") maim pic-full-"$(date '+%y%m%d-%H%M-%S').png" ;;