config: Disable splash message by default (#123)

* Change default value of splash to false

* put splash and ipc options into example config in README
This commit is contained in:
Stephen Toth 2024-01-04 10:20:47 -05:00 committed by GitHub
parent c022069390
commit ce829bd51d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -73,6 +73,14 @@ wallpaper = monitor1,/path/to/image.png
#if more than one monitor in use, can load a 2nd image
wallpaper = monitor2,/path/to/next_image.png
# .. more monitors
#enable splash text rendering over the wallpaper
splash = true
#fully disable ipc
# ipc = off
```
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 for a wildcard (aka fallback). You can also use `desc:` followed by the monitor's description without the (PORT) at the end)

View file

@ -133,7 +133,7 @@ CConfigManager::CConfigManager() {
config = std::make_unique<Hyprlang::CConfig>(configPath.c_str(), Hyprlang::SConfigOptions{.allowMissingConfig = true});
config->addConfigValue("ipc", {1L});
config->addConfigValue("splash", {1L});
config->addConfigValue("splash", {0L});
config->addConfigValue("splash_offset", {2.F});
config->registerHandler(&handleWallpaper, "wallpaper", {.allowFlags = false});