mirror of
https://github.com/swaywm/sway.git
synced 2026-04-21 06:46:22 -04:00
swaybar: allow null status_command
Sway sets a default status_command which runs date every second. This patch removes this behaviour so the user can have a NULL status bar if desired. I had to swap swaybar's event_loop_poll and wl_display_flush so that it would map the initial surface.
This commit is contained in:
parent
b3b17280de
commit
41bfd8c790
3 changed files with 3 additions and 7 deletions
|
|
@ -99,10 +99,6 @@ struct bar_config *default_bar_config(void) {
|
|||
if (!(bar->bindings = create_list())) {
|
||||
goto cleanup;
|
||||
}
|
||||
if (!(bar->status_command =
|
||||
strdup("while date +'%Y-%m-%d %l:%M:%S %p'; do sleep 1; done"))) {
|
||||
goto cleanup;
|
||||
}
|
||||
// set default colors
|
||||
if (!(bar->colors.background = strndup("#000000ff", 9))) {
|
||||
goto cleanup;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue