Options file

This commit is contained in:
Thomas Forgione 2017-01-21 16:37:15 +01:00
parent 1aa926d5f0
commit 0fb3428db7
No known key found for this signature in database
GPG Key ID: 2B5C8A9986271A42
2 changed files with 8 additions and 4 deletions

4
awesome/options.lua Normal file
View File

@ -0,0 +1,4 @@
return {
browser="optirun firefox",
terminal="terminator"
}

View File

@ -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
), ),