Options file
This commit is contained in:
parent
1aa926d5f0
commit
0fb3428db7
|
@ -0,0 +1,4 @@
|
||||||
|
return {
|
||||||
|
browser="optirun firefox",
|
||||||
|
terminal="terminator"
|
||||||
|
}
|
|
@ -12,7 +12,7 @@ local vicious = require('vicious')
|
||||||
naughty = require("naughty")
|
naughty = require("naughty")
|
||||||
local menubar = require("menubar")
|
local menubar = require("menubar")
|
||||||
local vicious = require("vicious")
|
local vicious = require("vicious")
|
||||||
local browser = require("browser")
|
local options = require("options")
|
||||||
|
|
||||||
home = os.getenv('HOME')
|
home = os.getenv('HOME')
|
||||||
|
|
||||||
|
@ -91,7 +91,7 @@ local battery = require("battery")
|
||||||
local calendar = require("calendar")
|
local calendar = require("calendar")
|
||||||
|
|
||||||
-- This is used later as the default terminal and editor to run.
|
-- This is used later as the default terminal and editor to run.
|
||||||
terminal = "urxvt"
|
terminal = options.terminal
|
||||||
editor = os.getenv("EDITOR") or "nano"
|
editor = os.getenv("EDITOR") or "nano"
|
||||||
editor_cmd = terminal .. " -e " .. editor
|
editor_cmd = terminal .. " -e " .. editor
|
||||||
|
|
||||||
|
@ -381,9 +381,9 @@ globalkeys = awful.util.table.join(
|
||||||
|
|
||||||
-- Chromium
|
-- Chromium
|
||||||
awful.key({ }, "XF86HomePage", function () os.execute('$BROWSER &') end),
|
awful.key({ }, "XF86HomePage", function () os.execute('$BROWSER &') end),
|
||||||
awful.key({ modkey}, "a", function () os.execute(browser .. '&')
|
awful.key({ modkey}, "a", function () os.execute(options.browser .. '&')
|
||||||
naughty.notify({
|
naughty.notify({
|
||||||
title = browser .. " starting...",
|
title = options.browser .. " starting...",
|
||||||
text = awesome.startup_errors })
|
text = awesome.startup_errors })
|
||||||
end
|
end
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in New Issue