summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorMike Crute <crutem@amazon.com>2019-05-20 21:25:41 +0200
committerMike Crute <crutem@amazon.com>2019-05-20 21:25:41 +0200
commit2ee5a1745ecab6ac17667781b1e428ba2bb1f4dd (patch)
tree55b9c0380ae9dbd1edf13be006f5594cd5bc4eef /.config
parent0b1870cd6e5a9057b157cb52c6b0a82be0f555b0 (diff)
downloaddotfiles-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.lua4
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")
27local battery = require("battery") 27local battery = require("battery")
28 28
29local timezone = "America/Los_Angeles" 29local timezone = "America/Los_Angeles"
30local tz_file = os.getenv("HOME") .. "/.timezone"
31if gears.filesystem.file_readable(tz_file) then
32 timezone = io.open(tz_file, "r"):read():gsub("^%s*(.-)%s*$", "%1")
33end
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
32local edp_zoom_modes = { 36local edp_zoom_modes = {