From 51844c7fc948f1de7d086bca4050524140f3d42a Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Tue, 20 May 2025 21:15:45 +0100 Subject: [PATCH] docs/autostart: add example for delayed start --- docs/autostart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/autostart b/docs/autostart index f09ceb78..6046f18e 100644 --- a/docs/autostart +++ b/docs/autostart @@ -15,6 +15,11 @@ kanshi >/dev/null 2>&1 & # Launch a panel such as yambar or waybar. waybar >/dev/null 2>&1 & +# To delay the launch of a particular client it is suggested that the following +# syntax is used: ( sleep X ; foo ) & +# For example, with waybar a three second delay could be achieved with: +# ( sleep 3 ; waybar >/dev/null 2>&1 ) & + # Enable notifications. Typically GNOME/KDE application notifications go # through the org.freedesktop.Notifications D-Bus API and require a client such # as mako to function correctly. Thunderbird is an example of this. @@ -32,3 +37,4 @@ swayidle -w \ timeout 600 'wlopm --off \*' \ resume 'wlopm --on \*' \ before-sleep 'swaylock -f -c 000000' >/dev/null 2>&1 & +