summaryrefslogtreecommitdiffstats
path: root/.scripts/i3cmds
diff options
context:
space:
mode:
authorxDroid <owen8877@users.noreply.github.com>2019-01-25 10:54:29 +0800
committerGitHub <noreply@github.com>2019-01-25 10:54:29 +0800
commita0906c68f33924a036c2b788e7f7febcf5b77b7d (patch)
treef33e2cceee055fa4b1deca9291a88f6aba36f055 /.scripts/i3cmds
parentf927057f3fbf420aba7411d1634adcea5896fbf7 (diff)
downloadeibhear-a0906c68f33924a036c2b788e7f7febcf5b77b7d.tar.gz
eibhear-a0906c68f33924a036c2b788e7f7febcf5b77b7d.tar.zst
eibhear-a0906c68f33924a036c2b788e7f7febcf5b77b7d.zip
Added window id from xdotool in mainpick.
Copied a similar parameter `"$(xdotool getactivewindow)"` from the second option (a.k.a "current window") to the fifth.
Diffstat (limited to '.scripts/i3cmds')
-rwxr-xr-x.scripts/i3cmds/maimpick2
1 files changed, 1 insertions, 1 deletions
diff --git a/.scripts/i3cmds/maimpick b/.scripts/i3cmds/maimpick
index f3f72fe..34eb1a3 100755
--- a/.scripts/i3cmds/maimpick
+++ b/.scripts/i3cmds/maimpick
@@ -4,6 +4,6 @@ case "$(printf "a selected area\\ncurrent window\\nfull screen\\na selected area
"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" ;;
"a selected area (copy)") maim -s | xclip -selection clipboard -t image/png ;;
- "current window (copy)") maim -i | xclip -selection clipboard -t image/png ;;
+ "current window (copy)") maim -i "$(xdotool getactivewindow)" | xclip -selection clipboard -t image/png ;;
"full screen (copy)") maim | xclip -selection clipboard -t image/png ;;
esac