diff --git a/Wallpapers/terminal.jpg b/Wallpapers/terminal.jpg new file mode 100644 index 0000000..058ba12 Binary files /dev/null and b/Wallpapers/terminal.jpg differ diff --git a/launchbar.lua b/launchbar.lua deleted file mode 100644 index 89e9b29..0000000 --- a/launchbar.lua +++ /dev/null @@ -1,68 +0,0 @@ --- Quick launchbar widget for Awesome WM --- http://awesome.naquadah.org/wiki/Quick_launch_bar_widget/3.5 --- Put into your awesome/ folder and add the following to rc.lua: --- local launchbar = require('launchbar') --- local mylb = launchbar("/path/to/directory/with/shortcuts/") --- Then add mylb to the wibox. - -local naughty = require('naughty') -local layout = require("wibox.layout") -local util = require("awful.util") -local spawn = require('awful.spawn') -local launcher = require("command_launcher") - -local launchbar = {} - -local function getValue(t, key) - local _, _, res = string.find(t, key .. " *= *([^%c]+)%c") - return res -end - -local function find_icon(icon_name) - if string.sub(icon_name, 1, 1) == '/' then - if util.file_readable(icon_name) then - return icon_name - else - return nil - end - end - - if launchbar.icon_dirs then - for _, v in ipairs(launchbar.icon_dirs) do - if util.file_readable(v .. "/" .. icon_name) then - return v .. '/' .. icon_name - end - end - end - return nil -end - -function launchbar.new(filedir) - if not filedir then - error("Launchbar: filedir was not specified") - end - local items = {} - local widget = layout.fixed.horizontal() - local files = io.popen("ls " .. filedir .. "*.desktop") - for f in files:lines() do - local t = io.open(f):read("*all") - table.insert(items, { image = find_icon(getValue(t,"Icon")), - callback = function () - naughty.notify({ - title = "Starting " .. getValue(t, "Name"), - text = "" - }) - spawn(getValue(t,"Exec")) - end, - position = tonumber(getValue(t,"Position")) or 255 }) - end - table.sort(items, function(a,b) return a.position < b.position end) - for _, v in ipairs(items) do - if v.image then - widget:add(launcher(v)) - end - end - return widget -end - -return setmetatable(launchbar, { __call = function(_, ...) return launchbar.new(...) end }) diff --git a/rc.lua b/rc.lua index 39c3acb..cee3700 100644 --- a/rc.lua +++ b/rc.lua @@ -210,7 +210,6 @@ local tasklist_buttons = awful.util.table.join( awful.client.focus.byidx(-1) end)) -local launchbar = require('launchbar') -- local background = require('background_widget') local delimiter = wibox.widget.textbox(" | ") local delimiter2 = wibox.widget.textbox(" ") @@ -266,8 +265,6 @@ awful.screen.connect_for_each_screen(function(s) layout = wibox.layout.fixed.horizontal, mylauncher, s.mytaglist, - launchbar("~/Desktop/"), - delimiter, s.mypromptbox, }, s.mytasklist, -- Middle widget diff --git a/themes/default/theme.lua b/themes/default/theme.lua index ee252e9..9320d88 100644 --- a/themes/default/theme.lua +++ b/themes/default/theme.lua @@ -76,7 +76,7 @@ theme.titlebar_maximized_button_focus_inactive = "/usr/share/awesome/themes/def theme.titlebar_maximized_button_normal_active = "/usr/share/awesome/themes/default/titlebar/maximized_normal_active.png" theme.titlebar_maximized_button_focus_active = "/usr/share/awesome/themes/default/titlebar/maximized_focus_active.png" -theme.wallpaper = "/home/thomas/Pictures/Wallpapers/terminal.jpg" +theme.wallpaper = os.getenv('HOME') .. "/.config/awesome/Wallpapers/terminal.jpg" -- You can use your own layout icons like this: theme.layout_fairh = "/usr/share/awesome/themes/default/layouts/fairhw.png"