Skip to content

Commit

Permalink
config: Disable splash message by default (#123)
Browse files Browse the repository at this point in the history
* Change default value of splash to false

* put splash and ipc options into example config in README
  • Loading branch information
stephentoth authored Jan 4, 2024
1 parent c022069 commit ce829bd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/config/ConfigManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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});
Expand Down

0 comments on commit ce829bd

Please sign in to comment.