You are not logged in.
Pages: 1
I have a bash function[1] that opens a URL from the terminal. When I execute this function the terminal loses focus and the browser attains focus. When doing the same thing through dmenu or an xmonad key binding this doesn't happen. The currently focused window stays focused. Is there a way to execute firefox <URL> in a BASH script without the terminal losing focus? I have tried various combinations of sub-shells and backgrounding without luck. An, admittedly quick, goggle hasn't turned up anything. Will keep looking but if anyone has a solution...
Offline
try:
sh -c "firefox $url"
Edit: I find with plain `firefox $url' I don't lose focus, either. (With firefox already running, that is)
Last edited by lolilolicon (2009-12-27 11:07:59)
This silver ladybug at line 28...
Offline
Offline
Pages: 1