Change conky configs to use $HOME/.dark file for theme selection
This commit is contained in:
parent
fcba777d99
commit
0ff16bc4c5
3 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,5 @@
|
|||
local dark = io.open(os.getenv("HOME").."/.dark")
|
||||
|
||||
-- vim: set filetype=lua :miv --
|
||||
conky.config = {
|
||||
monitor = 1,
|
||||
|
@ -36,7 +38,7 @@ conky.config = {
|
|||
show_graph_range = false,
|
||||
}
|
||||
|
||||
if os.getenv("DARK") then
|
||||
if dark then
|
||||
print("starting in dark mode")
|
||||
conky.config.default_color = '#ffffff'
|
||||
conky.config.color1 = "#ffffff"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
local dark = io.open(os.getenv("HOME").."/.dark")
|
||||
|
||||
-- vim: set tabstop=4 noexpandtab autoindent cindent syntax=lua nowrap :miv ---
|
||||
|
||||
conky.config = {
|
||||
|
@ -38,7 +40,7 @@ conky.config = {
|
|||
minimum_height = 0,
|
||||
};
|
||||
|
||||
if os.getenv("DARK") then
|
||||
if dark then
|
||||
conky.config.default_color = '#FFFFFF'
|
||||
conky.config.color1 = 'white'
|
||||
conky.config.color2 = '#FFFFFF'
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
local dark = io.open(os.getenv("HOME").."/.dark")
|
||||
|
||||
-- vim: set tabstop=4 noexpandtab autoindent cindent syntax=lua nowrap :miv ---
|
||||
|
||||
conky.config = {
|
||||
|
@ -44,7 +46,7 @@ conky.config = {
|
|||
gap_y = 20,
|
||||
};
|
||||
|
||||
if os.getenv("DARK") then
|
||||
if dark then
|
||||
conky.config.default_color = '#FFFFFF'
|
||||
else
|
||||
conky.config.default_color = '#525564'
|
||||
|
|
Loading…
Reference in a new issue