Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- function dblcmd() {
- # clear clipboard
- xsel -cb
- # end clear clipboard
- eval $(xdotool getmouselocation --shell)
- dblcmd=$(xdotool search --sync --onlyvisible --name "Double Commander")
- xdotool windowactivate --sync $dblcmd
- xdotool mousemove 452 84 click 1
- xdotool mousemove $X $Y
- local fileLoc=$(xsel -b)
- fileLoc=$(echo "lxterminal --geometry=46x23 -e 'bash -c "'"mplayer \"'$fileLoc'\" 2>&1 | tee -a /media/ramdisk/server.log; bash"'"'")
- # echo $fileLoc
- bash -c "$fileLoc"
- }
- dblcmd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement