From 0ff16bc4c5a9c82fc90c47eaf00659b71b118be8 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Tue, 21 Jul 2020 19:28:13 +0200 Subject: [PATCH] Change conky configs to use $HOME/.dark file for theme selection --- conky.conf | 4 +++- conky/clock.conf | 4 +++- conky/music.conf | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/conky.conf b/conky.conf index e088b8f..3a7c41d 100644 --- a/conky.conf +++ b/conky.conf @@ -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" diff --git a/conky/clock.conf b/conky/clock.conf index 57cea4d..aeeafd3 100644 --- a/conky/clock.conf +++ b/conky/clock.conf @@ -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' diff --git a/conky/music.conf b/conky/music.conf index 0c484f4..4bdf54a 100644 --- a/conky/music.conf +++ b/conky/music.conf @@ -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'