summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@gmail.com>2019-09-03 22:01:51 -0400
committerstreetturtle <streetturtle@gmail.com>2019-09-03 22:01:51 -0400
commitbcd001e487d4d1a9c0ec5335b662d67496e10a4e (patch)
treea005c8045bbee2998642c55fd5edadb258ea87de
parent0999de2bfd2e9f7ccd5d0e04eb1f63c3803449ae (diff)
delete secrets.lua
-rw-r--r--secrets.lua32
1 files changed, 0 insertions, 32 deletions
diff --git a/secrets.lua b/secrets.lua
deleted file mode 100644
index 5e3b988..0000000
--- a/secrets.lua
+++ /dev/null
@@ -1,32 +0,0 @@
--------------------------------------------------
--- Allows to store client specific settings in one place
---
--- @author Pavel Makhov
--- @copyright 2019 Pavel Makhov
---------------------------------------------
-
-local function getenv_bool(var_name, default_val)
- val = os.getenv(var_name)
- if val ~= nil then
- return val:lower() == 'true'
- else
- return default_val
- end
-end
-
-local secrets = {
- -- See volume-widget/README.md
- volume_audio_controller = os.getenv('AWW_VOLUME_CONTROLLER') or 'pulse', -- 'pulse' or 'alsa_only'
-
- -- Yandex.Translate API key - https://tech.yandex.com/translate/
- translate_widget_api_key = os.getenv('AWW_TRANSLATE_API_KEY') or 'API_KEY',
-
- -- OpenWeatherMap API key - https://openweathermap.org/appid
- weather_widget_api_key = os.getenv('AWW_WEATHER_API_KEY') or 'c3d7320b359da4e48c2d682a04076576',
- weather_widget_city = os.getenv('AWW_WEATHER_CITY') or 'Montreal,ca',
- weather_widget_units = os.getenv('AWW_WEATHER_UNITS') or 'metric', -- for celsius, or 'imperial' for fahrenheit
- weather_both_temp_units_widget = getenv_bool('AWW_WEATHER_BOTH_UNITS_WIDGET', false), -- on widget, if true shows "22 C (72 F)", instead of only "22 C"
- weather_both_temp_units_popup = getenv_bool('AWW_WEATHER_BOTH_UNITS_POPUP', true) -- in the popup, if true shows "22.3 C (72.2 F)" instead of only "22.3 C"
-}
-
-return secrets