Fix initial null configuration; Fix doc compilation errors

This commit is contained in:
Martynas Maciulevičius
2025-03-07 07:45:11 +02:00
parent 125b59e23b
commit 7463be9b6a
2 changed files with 5 additions and 5 deletions

View File

@ -124,8 +124,8 @@ class Bar : public sigc::trackable {
#endif
std::vector<std::shared_ptr<waybar::AModule>> modules_all_;
waybar::util::KillSignalAction onSigusr1;
waybar::util::KillSignalAction onSigusr2;
waybar::util::KillSignalAction onSigusr1 = util::SIGNALACTION_DEFAULT_SIGUSR1;
waybar::util::KillSignalAction onSigusr2 = util::SIGNALACTION_DEFAULT_SIGUSR2;
};
} // namespace waybar

View File

@ -230,8 +230,8 @@ For example, to toggle the bar programmatically, you can invoke `killall -SIGUSR
## User signal configuration
Config parameters `on_sigusr1` and `on_sigusr2` change what happens when bars receive
`SIGUSR1` and `SIGUSR2` signals.
Config parameters *on_sigusr1* and *on_sigusr2* change what happens when bars receive
*SIGUSR1* and *SIGUSR2* signals.
This means that commands `killall -SIGUSR1 waybar` and `killall -SIGUSR2 waybar`
can perform user-configured action.
@ -241,7 +241,7 @@ perform more complex `show`/`hide`/`reload` logic for each instance of Waybar.
One can find the PID e.g. by doing `pgrep -a waybar` which could then match
by config name or other parameters.
### Kill parameter meanings
## Kill parameter meanings
*show* Switches state to visible (per bar).
*hide* Switches state to hidden (per bar).