mirror of
https://github.com/don-philipe/knorke.git
synced 2025-11-08 14:57:02 +01:00
make browser easier to change in pyload.lua
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user