Advertisement
Guest User

Untitled

a guest
Jan 1st, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.53 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. function dblcmd() {
  4.   # clear clipboard
  5.   xsel -cb
  6.   # end clear clipboard
  7.   eval $(xdotool getmouselocation --shell)
  8.   dblcmd=$(xdotool search --sync --onlyvisible --name "Double Commander")
  9.   xdotool windowactivate --sync $dblcmd
  10.   xdotool mousemove 452 84 click 1
  11.   xdotool mousemove $X $Y
  12.   local fileLoc=$(xsel -b)
  13.   fileLoc=$(echo "lxterminal --geometry=46x23 -e 'bash -c "'"mplayer \"'$fileLoc'\" 2>&1 | tee -a /media/ramdisk/server.log; bash"'"'")
  14.   # echo $fileLoc
  15.   bash -c "$fileLoc"
  16. }
  17.  
  18.   dblcmd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement