aboutsummaryrefslogtreecommitdiff
path: root/src/wallpaper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wallpaper.cpp')
-rw-r--r--src/wallpaper.cpp23
1 files changed, 0 insertions, 23 deletions
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