From ed419140280553b070943b7ba539120a26ff5686 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Tue, 11 Dec 2018 07:42:05 +0100 Subject: wanda: restructure directory hierarchy --- src/wallpaper.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 src/wallpaper.cpp (limited to 'src/wallpaper.cpp') diff --git a/src/wallpaper.cpp b/src/wallpaper.cpp deleted file mode 100644 index b4e0b76..0000000 --- a/src/wallpaper.cpp +++ /dev/null @@ -1,23 +0,0 @@ -#include "logging.hpp" -#include "optional.hpp" -#include "setting.hpp" -#include "wallpaper.hpp" - -namespace wanda -{ - void set_wallpaper(std::filesystem::path wallpaper) - { - using namespace wanda::literals; - using namespace wanda::std_ext; - using namespace std::string_literals; - - with("org.gnome.desktop.background"_setting, [&](auto & setting) { - with(setting["picture-uri"_key], [&](auto & value) { - value = "file://" + wallpaper.native(); - }) || - [&] { get_logger()->error("invalid settings key"); }; - }) || - [&] { get_logger()->error("invalid setting"); }; - } - -} // namespace wanda \ No newline at end of file -- cgit v1.2.3