1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2024-12-22 19:22:32 +00:00

#212 better implementation; closes #212

This commit is contained in:
Luca CPZ 2017-10-31 13:47:14 +01:00
parent d283ae03fe
commit e13e857804
2 changed files with 16 additions and 2 deletions

View file

@ -107,7 +107,7 @@ in ``rc.lua``, and
* configure widgets * configure widgets
* define wiboxes and screen settings * 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: Just do the following:

View file

@ -58,7 +58,21 @@ run_once({ "unclutter -root" }) -- entries must be comma-separated
-- }}} -- }}}
-- {{{ Variable definitions -- {{{ 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 modkey = "Mod4"
local altkey = "Mod1" local altkey = "Mod1"
local terminal = "xterm" local terminal = "xterm"