From 77c829525c98cc2062cdb40d9aba03514f3b155d Mon Sep 17 00:00:00 2001 From: ChUrl Date: Fri, 16 Jun 2023 17:50:49 +0200 Subject: [PATCH] Delay for autostart to launch tray icons after waybar --- home/christoph/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/home/christoph/default.nix b/home/christoph/default.nix index ea20913c..ac2d87fe 100644 --- a/home/christoph/default.nix +++ b/home/christoph/default.nix @@ -106,9 +106,11 @@ rec { }; autostart = [ - "kdeconnect-indicator" - "nextcloud --background" - "keepassxc" + # NOTE: The sleep 15s is a hack for tray icons, + # they need to be launched after waybar + "hyprctl dispatch exec \"sleep 15s && kdeconnect-indicator\"" + "hyprctl dispatch exec \"sleep 15s && nextcloud --background\"" + "hyprctl dispatch exec \"sleep 15s && keepassxc\"" # "alacritty -o font.size=12 -e tmux" "kitty" # "md.obsidian.Obsidian"