Skip to content

Commit

Permalink
update readme and {}
Browse files Browse the repository at this point in the history
  • Loading branch information
gkdwoe committed Oct 24, 2024
1 parent 53652bb commit e6329bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 2 additions & 4 deletions src/config/ConfigManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit e6329bb

Please sign in to comment.