From e6329bb198978fbf613f396107579363ab47affb Mon Sep 17 00:00:00 2001 From: gkdwoe Date: Thu, 24 Oct 2024 16:07:44 -0700 Subject: [PATCH] update readme and {} --- README.md | 2 +- src/config/ConfigManager.cpp | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 1c6fec6..e60dd2d 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,7 @@ splash = true Preload will tell Hyprland to load a particular image (supported formats: png, jpg, jpeg, webp). Wallpaper will apply the wallpaper to the selected output (`monitor` is the monitor's name, easily can be retrieved with `hyprctl monitors`. You can leave it empty to set all monitors without an active wallpaper. You can also use `desc:` followed by the monitor's description without the (PORT) at the end) -You may add `contain:` before the file path in `wallpaper=` to set the mode to contain instead of cover: +You may add `contain:` or `tile:` before the file path in `wallpaper=` to set the mode to either contain or tile, respectively, instead of cover: ``` wallpaper = monitor,contain:/path/to/image.jpg diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 7b5cd7d..3d10616 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -25,10 +25,8 @@ static Hyprlang::CParseResult handleWallpaper(const char* C, const char* V) { bool tile = false; - if (WALLPAPER.find("tile:") == 0) { - WALLPAPER = WALLPAPER.substr(5); - tile = true; - } + if (WALLPAPER.find("tile:") == 0) + WALLPAPER = WALLPAPER.substr(5), tile = true; if (WALLPAPER[0] == '~') { static const char* const ENVHOME = getenv("HOME");