make browser easier to change in pyload.lua

This commit is contained in:
gitolite
2016-05-15 15:46:50 +02:00
parent 947ceb3fe6
commit 2f82a22f1d

View File

@@ -14,6 +14,7 @@ local json = require("knorke.json")
local pyload = { mt = {} }
local thiswidget = wibox.widget.textbox()
local browser = "firefox"
-- all values in returned table are converted to string values
local function update_data(args)
@@ -51,7 +52,7 @@ local function update_data(args)
-- open firefox with onclick
thiswidget:buttons(awful.util.table.join(
awful.button({ }, 1, function()
awful.util.spawn("firefox " .. baseurl)
awful.util.spawn(browser .. " " .. baseurl)
end)))
end