diff options
Diffstat (limited to 'awesome/util')
-rw-r--r-- | awesome/util/seasonalwallpaper.lua | 26 | ||||
-rw-r--r-- | awesome/util/widgets.lua | 19 |
2 files changed, 0 insertions, 45 deletions
diff --git a/awesome/util/seasonalwallpaper.lua b/awesome/util/seasonalwallpaper.lua deleted file mode 100644 index 4ec3bb3..0000000 --- a/awesome/util/seasonalwallpaper.lua +++ /dev/null @@ -1,26 +0,0 @@ -local gears = require("gears") -local beautiful = require("beautiful") - -local wallpapers_directory = gears.get_xdg_data_home() .. "wallpaper" -local spring = wallpapers_directory .. "/spring" -local summer = wallpapers_directory .. "/summer" -local fall = wallpapers_directory .. "/fall" -local winter = wallpapers_directory .. "/winter" - - - ---local function set_wallpaper(s) --- -- Wallpaper --- if beautiful.wallpaper then --- local wallpaper = beautiful.wallpaper --- -- If wallpaper is a function, call it with the screen --- if type(wallpaper) == "function" then --- wallpaper = wallpaper(s) --- end --- gears.wallpaper.maximized(wallpaper, s, true) --- end ---end - -function set_wallpaper() - gt -end diff --git a/awesome/util/widgets.lua b/awesome/util/widgets.lua deleted file mode 100644 index 301f25b..0000000 --- a/awesome/util/widgets.lua +++ /dev/null @@ -1,19 +0,0 @@ -local wibox = require("wibox") -local gears = require("gears") - -local widgets = {} - -function widgets.watchfn(callback, timeout, base_widget) - local widget = (base_widget or wibox.widget.textbox)() - gears.timer({ - timeout = timeout or 5, - call_now = true, - autostart = true, - callback = function() - callback(widget) - end - }) - return widget -end - -return widgets |