summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2010-03-29 19:06:56 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2010-03-29 19:06:56 +0200
commitab609c5480111b8ca81bc9faf932aaeba4e42eac (patch)
tree5fe00c540877408f4d0877f376d2813f99b35735
parentd02447043ea18453d2a3c6129de3bd9ae590474e (diff)
downloadawesome-configs-ab609c5480111b8ca81bc9faf932aaeba4e42eac.tar.xz
rc.lua: introduced home variable
-rw-r--r--rc.lua24
1 files changed, 10 insertions, 14 deletions
diff --git a/rc.lua b/rc.lua
index 39339bf..7942454 100644
--- a/rc.lua
+++ b/rc.lua
@@ -21,17 +21,14 @@ require("scratch")
-- {{{ Variable definitions
---
--- Beautiful theme
-beautiful.init(awful.util.getdir("config") .. "/zenburn.lua")
+local altkey = "Mod1"
+local modkey = "Mod4"
+local home = os.getenv("HOME")
+local exec = awful.util.spawn
+local sexec = awful.util.spawn_with_shell
--- Modifier keys
-altkey = "Mod1" -- Alt_L
-modkey = "Mod4" -- Super_L
-
--- Function aliases
-local exec = awful.util.spawn
-local sexec = awful.util.spawn_with_shell
+-- Beautiful theme
+beautiful.init(home .. "/.config/awesome/zenburn.lua")
-- Window management layouts
layouts = {
@@ -158,7 +155,7 @@ mailicon.image = image(beautiful.widget_mail)
-- Initialize widget
mailwidget = widget({ type = "textbox" })
-- Register widget
-vicious.register(mailwidget, vicious.widgets.mbox, "$1", 181, {"/home/anrxc/mail/Inbox", 15})
+vicious.register(mailwidget, vicious.widgets.mbox, "$1", 181, {home .. "/mail/Inbox", 15})
-- Register buttons
mailwidget:buttons(awful.util.table.join(
awful.button({ }, 1, function () exec("urxvt -T Alpine -e alpine_exp") end)
@@ -172,9 +169,8 @@ orgicon.image = image(beautiful.widget_org)
orgwidget = widget({ type = "textbox" })
-- Configure widget
local orgmode = {
- files = {
- "/home/anrxc/.org/work.org", "/home/anrxc/.org/index.org",
- "/home/anrxc/.org/personal.org", "/home/anrxc/.org/computers.org"
+ files = { home.."/.org/computers.org",
+ home.."/.org/index.org", home.."/.org/personal.org",
},
color = {
past = '<span color="'..beautiful.fg_urgent..'">',