summaryrefslogtreecommitdiff
path: root/scr
diff options
context:
space:
mode:
authortsxv478 <atci39@rambler.ru>2023-11-26 13:35:53 +0300
committertsxv478 <atci39@rambler.ru>2023-11-26 13:35:53 +0300
commit31b01d930cd4e33eb52dab9d262a1e8c26954dc2 (patch)
tree02eaff8385686a3d3a1eb80fe2b7ee352cd663fa /scr
parent87e4ddcbe2f3da98ae1d57b21e9bdbb8b8eef13e (diff)
fixes
Diffstat (limited to 'scr')
-rwxr-xr-xscr14
1 files changed, 7 insertions, 7 deletions
diff --git a/scr b/scr
index efea410..4d069ff 100755
--- a/scr
+++ b/scr
@@ -3,11 +3,11 @@
output="$(date '+%y%m%d%H%M%S').png"
xclip_cmd="xclip -selection clipboard -t image/png"
-case "$(printf "selected area\\ncurrent window\\nfull screen\\nselected area (copy)\\ncurrent window (copy)\\nfull screen (copy)" | dmenu -i -c -l 6 -p "Screenshot area?")" in
- "selected area") maim -u -s img-sel-"${output}" ;;
- "current window") maim -u -B -q -d 0.2 -i "$(xdotool getactivewindow)" img-win-"${output}" ;;
- "full screen") maim -u -q -d 0.2 img-full-"${output}" ;;
- "selected area (copy)") maim -u -s | ${xclip_cmd} ;;
- "current window (copy)") maim -u -B -q -d 0.2 -i "$(xdotool getactivewindow)" | ${xclip_cmd} ;;
- "full screen (copy)") maim -u -q -d 0.2 | ${xclip_cmd} ;;
+case "$(printf "Selected area\\nCurrent window\\nFull screen\\nSelected area (copy)\\nCurrent window (copy)\\nFull screen (copy)" | dmenu -i -c -l 6 -p "Screenshot area?")" in
+ "Selected area") maim -u -s img-sel-"${output}" ;;
+ "Current window") maim -u -B -q -d 0.2 -i "$(xdotool getactivewindow)" img-win-"${output}" ;;
+ "Full screen") maim -u -q -d 0.2 img-full-"${output}" ;;
+ "Selected area (copy)") maim -u -s | ${xclip_cmd} ;;
+ "Current window (copy)") maim -u -B -q -d 0.2 -i "$(xdotool getactivewindow)" | ${xclip_cmd} ;;
+ "Full screen (copy)") maim -u -q -d 0.2 | ${xclip_cmd} ;;
esac