aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/data/scripts/uzbl-tabbed
diff options
context:
space:
mode:
authorGravatar Gustavo ChaĆ­n <g@0xff.cl>2010-08-25 17:41:47 +0200
committerGravatar Dieter Plaetinck <dieter@plaetinck.be>2010-08-25 17:43:30 +0200
commit86729383c1aa931b0793118eb5853955583e9391 (patch)
tree228110d6b6c6de26390a874c3821e9102eeae2dc /examples/data/scripts/uzbl-tabbed
parent9dbb122bd519e72afd14c3017a0323ec586dbe72 (diff)
add newbg command, to open a new tab in the background
Diffstat (limited to 'examples/data/scripts/uzbl-tabbed')
-rwxr-xr-xexamples/data/scripts/uzbl-tabbed8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/data/scripts/uzbl-tabbed b/examples/data/scripts/uzbl-tabbed
index 5bf802a..42837d3 100755
--- a/examples/data/scripts/uzbl-tabbed
+++ b/examples/data/scripts/uzbl-tabbed
@@ -847,6 +847,8 @@ class UzblTabbed:
# Commands ( [] = optional, {} = required )
# new [uri]
# open new tab and head to optional uri.
+ # newbg [uri]
+ # open a new tab in the background
# close [tab-num]
# close current tab or close via tab id.
# next [n-tabs]
@@ -875,6 +877,12 @@ class UzblTabbed:
else:
self.new_tab()
+ elif cmd[0] == "newbg":
+ if len(cmd) == 2:
+ self.new_tab(cmd[1], switch=False)
+ else:
+ self.new_tab(switch=False)
+
elif cmd[0] == "newfromclip":
uri = subprocess.Popen(['xclip','-selection','clipboard','-o'],\
stdout=subprocess.PIPE).communicate()[0]