From e13e857804c906193439f38bccd60bdec2a8a48d Mon Sep 17 00:00:00 2001 From: Luca CPZ Date: Tue, 31 Oct 2017 13:47:14 +0100 Subject: [PATCH] #212 better implementation; closes #212 --- README.rst | 2 +- rc.lua.template | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 05dc409..2472bd7 100644 --- a/README.rst +++ b/README.rst @@ -107,7 +107,7 @@ in ``rc.lua``, and * configure widgets * define wiboxes and screen settings -in ``theme.lua``, so that you just need to change ``chosen_theme`` variable in ``rc.lua`` to preserve your preferences *and* switch the theme, instead of having N different ``rc.lua`` full of redundancy. +in ``theme.lua``, so that you just need to change ``chosen_theme`` variable in ``rc.lua`` to preserve your preferences *and* switch the theme, instead of having multiple redundant ``rc.lua``s. Just do the following: diff --git a/rc.lua.template b/rc.lua.template index cc39961..1783a7a 100644 --- a/rc.lua.template +++ b/rc.lua.template @@ -58,7 +58,21 @@ run_once({ "unclutter -root" }) -- entries must be comma-separated -- }}} -- {{{ Variable definitions -local chosen_theme = "multicolor" + +local themes = { + "blackburn", -- 1 + "copland", -- 2 + "dremora", -- 3 + "holo", -- 4 + "multicolor", -- 5 + "powerarrow", -- 6 + "powerarrow-dark", -- 7 + "rainbow", -- 8 + "steamburn", -- 9 + "vertex", -- 10 +} + +local chosen_theme = themes[5] local modkey = "Mod4" local altkey = "Mod1" local terminal = "xterm"