From 480cc873a3b059779c65fc4619511bd7b869240a Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Wed, 26 Jul 2023 18:43:53 -0400 Subject: [PATCH] hyprland(swww): Use shorter sleep for non-kvm This makes starting Hyprland more instantaneous on bare metal. --- home/hyprland.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/home/hyprland.nix b/home/hyprland.nix index e786730..120a7f9 100644 --- a/home/hyprland.nix +++ b/home/hyprland.nix @@ -33,7 +33,8 @@ in monitor=,preferred,auto,1 monitor=HDMI-A-1,preferred,auto,1,mirror,eDP-1 - exec-once = sleep 1; swww init && swww query | rg color && swww img ${../assets/wallpaper.png} + exec-once = sleep 0.1; swww init && swww query | rg color && swww img ${../assets/wallpaper.png} + exec-once = systemd-detect-virt && sleep 1 && swww img ${../assets/wallpaper.png} exec-once = wpctl set-volume @DEFAULT_AUDIO_SINK@ 20% exec-once = ironbar exec-once = fcitx5