summaryrefslogtreecommitdiffstats
path: root/makefu/5pkgs/awesomecfg/full.cfg
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2015-12-13 14:26:33 +0100
committermakefu <github@syntax-fehler.de>2015-12-13 14:26:33 +0100
commit4578f701ba01bfdf0745a8c73461070f0f7d2f0e (patch)
treefcd4ccb6ea09433ddea186825ecca42e544c74de /makefu/5pkgs/awesomecfg/full.cfg
parent6a07012a2f2ab8673c464256bd46efedf95366c3 (diff)
m 5 awesomecfg: beautiful was loaded too late
resulted in missing icons, colors for border. i just discovered this today, 2 months after i wrote the config hahah :D
Diffstat (limited to 'makefu/5pkgs/awesomecfg/full.cfg')
-rw-r--r--makefu/5pkgs/awesomecfg/full.cfg30
1 files changed, 17 insertions, 13 deletions
diff --git a/makefu/5pkgs/awesomecfg/full.cfg b/makefu/5pkgs/awesomecfg/full.cfg
index b3f94e65..15711a5d 100644
--- a/makefu/5pkgs/awesomecfg/full.cfg
+++ b/makefu/5pkgs/awesomecfg/full.cfg
@@ -12,6 +12,8 @@ local beautiful = require("beautiful")
local naughty = require("naughty")
local menubar = require("menubar")
+
+
-- {{{ Error handling
-- Check if awesome encountered an error during startup and fell back to
-- another config (This code will only ever execute for the fallback config)
@@ -90,6 +92,20 @@ vicious.register(batwidget, vicious.widgets.bat, "$2%", 61, "BAT0")
--
-- beautiful.init("/nix/store/qbx8r72yzaxpz41zq00902zwajl31b5h-awesome-3.5.6/share/awesome/themes/default/theme.lua")
+function find_default_theme()
+ -- find the default lua theme in the package path
+ for path in package.path:gmatch('([^;]+);') do
+ if path:match('awesome.*share') then
+ theme_path = path:match('^([^?]*)') .. '../themes/default/theme.lua'
+ if awful.util.file_readable(theme_path) then return theme_path end
+ end
+ end
+end
+
+beautiful.init(find_default_theme())
+client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)
+client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
+
-- This is used later as the default terminal and editor to run.
terminal = "urxvt"
editor = os.getenv("EDITOR") or "vim"
@@ -494,21 +510,9 @@ local os = {
date = os.date,
time = os.time
}
+
-- }}}
-function find_default_theme()
- -- find the default lua theme in the package path
- for path in package.path:gmatch('([^;]+);') do
- if path:match('awesome.*share') then
- theme_path = path:match('^([^?]*)') .. '../themes/default/theme.lua'
- if awful.util.file_readable(theme_path) then return theme_path end
- end
- end
-end
-
-beautiful.init(find_default_theme())
-client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)
-client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
-- }}}