Stop using avandu

Last time I tried one of the dependencies couldn't be loaded.
This commit is contained in:
Tom Willemse 2015-07-26 21:50:20 +02:00
parent 38c9454e2b
commit ceff401cc8

View file

@ -14,18 +14,10 @@ local lfs = require("lfs")
local posix = require("posix") local posix = require("posix")
local hostname = posix.uname("%n") local hostname = posix.uname("%n")
local avandu = nil
naughty.config.defaults.bg = "#3d3d3d" naughty.config.defaults.bg = "#3d3d3d"
naughty.config.defaults.icon_size = 32 naughty.config.defaults.icon_size = 32
if hostname == "drd" then
package.path =
'/home/slash/projects/avandu-lua/lua/?.lua;' .. package.path
avandu = require 'avandu'
end
local maildir_base = os.getenv("HOME") .. "/documents/mail/" local maildir_base = os.getenv("HOME") .. "/documents/mail/"
table.insert(menubar.menu_gen.all_menu_dirs, table.insert(menubar.menu_gen.all_menu_dirs,
@ -96,10 +88,6 @@ end
-- Themes define colours, icons, font and wallpapers. -- Themes define colours, icons, font and wallpapers.
beautiful.init(os.getenv("HOME") .. "/.config/awesome/themes/default/theme.lua") beautiful.init(os.getenv("HOME") .. "/.config/awesome/themes/default/theme.lua")
if avandu then
avandu.ttrss_url = "https://ryuslash.org/tt-rss/api/"
end
-- This is used later as the default terminal and editor to run. -- This is used later as the default terminal and editor to run.
terminal = "urxvtc" terminal = "urxvtc"
editor = "emacsclient" editor = "emacsclient"
@ -326,7 +314,7 @@ for s = 1, screen.count() do
local right_layout = wibox.layout.fixed.horizontal() local right_layout = wibox.layout.fixed.horizontal()
if s == 1 then if s == 1 then
right_layout:add(mykeyringlist) right_layout:add(mykeyringlist)
if avandu then right_layout:add(myrsslist) end if hostname == "drd" then right_layout:add(myrsslist) end
right_layout:add(mymailwidget) right_layout:add(mymailwidget)
-- for k, w in pairs(mailwidgets) do -- for k, w in pairs(mailwidgets) do