Skip to content

Instantly share code, notes, and snippets.

@blackhalt
Created August 30, 2017 09:35
Show Gist options
  • Save blackhalt/bc5046d97afa6c6209aa32d1084929d1 to your computer and use it in GitHub Desktop.
Save blackhalt/bc5046d97afa6c6209aa32d1084929d1 to your computer and use it in GitHub Desktop.
Zīmējam no komandrindas GIMPā
#!/bin/bash
sleep 3
x=800
for y in {0..900..50}
do
if ($y>0)
then
y=$((y + 10))
fi
xdotool search "Untitled" windowactivate --sync mousemove --window %1 830 230 #te jārēķina sava ekrāna izšķirtspējas izmēri.Peles sākumpunkts
sleep 0.1
xdotool mousedown 1
sleep 0.1
xdotool mousemove_relative --sync $x $y
sleep 0.1
xdotool mouseup 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment