summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2019-02-01 19:46:04 -0800
committerMike Crute <mike@crute.us>2019-02-01 19:46:04 -0800
commit7edffb6d1dfc7d3f829deb9415b15638d984b7b9 (patch)
tree58369397c3f17c71a4e6a8c79c27525a46fd917e /.config
parentf4f002c50b33badf317c3957f41d5b009dd899eb (diff)
downloaddotfiles-7edffb6d1dfc7d3f829deb9415b15638d984b7b9.tar.bz2
dotfiles-7edffb6d1dfc7d3f829deb9415b15638d984b7b9.tar.xz
dotfiles-7edffb6d1dfc7d3f829deb9415b15638d984b7b9.zip
Handle different wallpaper locations
Diffstat (limited to '.config')
-rw-r--r--.config/awesome/mcrute.lua11
1 files changed, 10 insertions, 1 deletions
diff --git a/.config/awesome/mcrute.lua b/.config/awesome/mcrute.lua
index 0d0747d..4aef4c2 100644
--- a/.config/awesome/mcrute.lua
+++ b/.config/awesome/mcrute.lua
@@ -138,7 +138,16 @@ end
138function customize_theme() 138function customize_theme()
139 beautiful.bg_urgent = "#222222" 139 beautiful.bg_urgent = "#222222"
140 beautiful.border_width = dpi(0) 140 beautiful.border_width = dpi(0)
141 beautiful.wallpaper = os.getenv("HOME") .. "/Documents/personal/tux-minimal-bg.png" 141
142 wallpaper_path_1 = gears.filesystem.get_dir("config") .. "tux-minimal-bg.png"
143 wallpaper_path_2 = os.getenv("HOME") .. "/Documents/personal/tux-minimal-bg.png"
144
145 if gears.filesystem.file_readable(wallpaper_path_1) then
146 beautiful.wallpaper = wallpaper_path_1
147 elseif gears.filesystem.file_readable(wallpaper_path_1) then
148 beautiful.wallpaper = wallpaper_path_2
149 end
150
142 beautiful.layout_equalv = gears.filesystem.get_dir("config") .. "icons/equalvw.png" 151 beautiful.layout_equalv = gears.filesystem.get_dir("config") .. "icons/equalvw.png"
143 beautiful.layout_equalh = gears.filesystem.get_dir("config") .. "icons/equalhw.png" 152 beautiful.layout_equalh = gears.filesystem.get_dir("config") .. "icons/equalhw.png"
144 153