From 1957081c122fe231eb6120192489dd979d214317 Mon Sep 17 00:00:00 2001 From: mediocregopher Date: Sun, 13 Aug 2023 21:34:14 +0200 Subject: Update branch with all changes which could be brought in from private branches For a while I was keeping a private branch where there were a lot of non-public things included, and that became the de-facto branch while this one lagged. This one is now up-to-date, all private stuff is dealt with via config files which are not committed. --- awesome/share/theme.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 awesome/share/theme.lua (limited to 'awesome/share/theme.lua') diff --git a/awesome/share/theme.lua b/awesome/share/theme.lua new file mode 100644 index 0000000..c5ad11e --- /dev/null +++ b/awesome/share/theme.lua @@ -0,0 +1,22 @@ +function load_theme(avgcolor, comcolor) + + local theme = require("default/theme") + + if avgcolor then + theme.bg_normal = avgcolor + theme.bg_focus = theme.bg_normal + theme.bg_urgent = "#ff0000" -- TODO should be opposite of bg_normal + theme.bg_minimize = theme.bg_normal + theme.bg_systray = theme.bg_normal + end + + if comcolor then + theme.fg_normal = comcolor + theme.fg_focus = comcolor + theme.fg_urgent = "#ffffff" + theme.fg_minimize = comcolor + end + + return theme + +end -- cgit v1.2.3