setups my desktop environment from a debian netinst
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

59 lines
946 B

#!/usr/bin/fish
if test -z "$argv[1]"
cd ~/lab/orca/inject/templates
else
cd "$argv[1]"
end
# needed to hide the mouse pointer
xdotool mousemove 5000 5000
set INPUT (ls *.orca | rofi -dmenu -p "inject: " -theme ~/lab/orca/inject/extra/inject.rafi)
xclip -sel c -i $INPUT
# paste
xdotool key Control_L+v
# reduce selected area
xdotool key apostrophe
xdotool key Control_L+Left
xdotool key Control_L+Left
xdotool key Control_L+Up
xdotool key Control_L+Left
xdotool key Control_L+Left
xdotool key Control_L+Up
xdotool key Control_L+Left
xdotool key Control_L+Left
xdotool key Control_L+Up
xdotool key Up
xdotool key Up
xdotool key Up
xdotool key Up
xdotool key Left
xdotool key Left
xdotool key Left
xdotool key Left
xdotool key Up
xdotool key Up
xdotool key Up
xdotool key Up
xdotool key Left
xdotool key Left
xdotool key Left
xdotool key Left
# needed to avoid mixing it with the previous
sleep 0.05
xdotool key apostrophe
exit