diff options
author | Mike Crute <crutem@amazon.com> | 2019-05-20 21:25:41 +0200 |
---|---|---|
committer | Mike Crute <crutem@amazon.com> | 2019-05-20 21:25:41 +0200 |
commit | 2ee5a1745ecab6ac17667781b1e428ba2bb1f4dd (patch) | |
tree | 55b9c0380ae9dbd1edf13be006f5594cd5bc4eef /.config | |
parent | 0b1870cd6e5a9057b157cb52c6b0a82be0f555b0 (diff) | |
download | dotfiles-2ee5a1745ecab6ac17667781b1e428ba2bb1f4dd.tar.bz2 dotfiles-2ee5a1745ecab6ac17667781b1e428ba2bb1f4dd.tar.xz dotfiles-2ee5a1745ecab6ac17667781b1e428ba2bb1f4dd.zip |
Allow user to override timezone
Diffstat (limited to '.config')
-rw-r--r-- | .config/awesome/mcrute.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.config/awesome/mcrute.lua b/.config/awesome/mcrute.lua index 84c72f2..7f1fa73 100644 --- a/.config/awesome/mcrute.lua +++ b/.config/awesome/mcrute.lua | |||
@@ -27,6 +27,10 @@ local wibox = require("wibox") | |||
27 | local battery = require("battery") | 27 | local battery = require("battery") |
28 | 28 | ||
29 | local timezone = "America/Los_Angeles" | 29 | local timezone = "America/Los_Angeles" |
30 | local tz_file = os.getenv("HOME") .. "/.timezone" | ||
31 | if gears.filesystem.file_readable(tz_file) then | ||
32 | timezone = io.open(tz_file, "r"):read():gsub("^%s*(.-)%s*$", "%1") | ||
33 | end | ||
30 | 34 | ||
31 | -- Good clear zoom stops for the Dell XPS 13 93{7,8}0 | 35 | -- Good clear zoom stops for the Dell XPS 13 93{7,8}0 |
32 | local edp_zoom_modes = { | 36 | local edp_zoom_modes = { |