View Single Post
laasonen's Avatar
Posts: 565 | Thanked: 618 times | Joined on Jun 2010 @ Finland
#13
Originally Posted by reinob View Post
I tried killing a single browser window with wmctrl -i -c <window id> but it closed all browser windows.
In that case I'm starting to run out of ideas, but you could try to use xdotool to bring the bookmark window on foreground and click alt+f4.

Code:
ID=`xdotool search --name "Web"`
xdotool windowactivate --sync $ID key --clearmodifiers --delay 100 alt+F4
I'm hoping that works, but I'm not sure, because I can't test. There are three things what might need modification:
  1. Search method/application's name
  2. Time given for the X server to bring the window to foreground
  3. Closing method? Does alt+F4 work? Do we need to use cursor instead?
__________________
Couple of my applications:
ConnLock - Advanced phone lock
Sanakirja.org - A Sanakirja.org dictionary client
Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers

Last edited by laasonen; 2012-11-23 at 19:53.
 

The Following 2 Users Say Thank You to laasonen For This Useful Post: