From dbd120d535933aab240f4facf44283afbb2301d2 Mon Sep 17 00:00:00 2001 From: hesam-init Date: Mon, 12 Feb 2024 19:07:57 +0330 Subject: [PATCH] fix: auto start --- hyprland/.config/hypr/conf/autostart.conf | 4 ++-- hyprland/.config/hypr/scripts/dunst-launch.sh | 3 +++ hyprland/.config/hypr/scripts/waybar-launch.sh | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/hyprland/.config/hypr/conf/autostart.conf b/hyprland/.config/hypr/conf/autostart.conf index 47af094..a7dfd46 100644 --- a/hyprland/.config/hypr/conf/autostart.conf +++ b/hyprland/.config/hypr/conf/autostart.conf @@ -14,8 +14,8 @@ exec-once = swaybg -i ~/Wallpapers/macos.png & # exec-once = swww init; swww kill; swww init # idk why tbh # status bar : -exec-once = sleep 1 && $scr_path/waybar-launch.sh & -exec-once = sleep 1 && $scr_path/dunst-launch.sh & +exec-once = ~/.config/hypr/scripts/waybar-launch.sh +exec-once = ~/.config/hypr/scripts/dunst-launch.sh # exec-once = eww daemon && eww open bar # exec-once = swayidle -w timeout 300 'gtklock' before-sleep 'gtklock' & # exec-once = swayidle -w timeout 450 'pidof java || systemctl suspend' & # dont sleep if playing minecraft, else nvidia will fuck up diff --git a/hyprland/.config/hypr/scripts/dunst-launch.sh b/hyprland/.config/hypr/scripts/dunst-launch.sh index 00cae0d..7b03022 100755 --- a/hyprland/.config/hypr/scripts/dunst-launch.sh +++ b/hyprland/.config/hypr/scripts/dunst-launch.sh @@ -18,6 +18,9 @@ if [[ ! -d "$dunst_dir" ]]; then exit 1 fi +pkill dunst +sleep 1 + while true; do logger -i "$0: Starting dunst in the background..." dunst & diff --git a/hyprland/.config/hypr/scripts/waybar-launch.sh b/hyprland/.config/hypr/scripts/waybar-launch.sh index 5bb1d1e..42a6cc2 100755 --- a/hyprland/.config/hypr/scripts/waybar-launch.sh +++ b/hyprland/.config/hypr/scripts/waybar-launch.sh @@ -8,6 +8,7 @@ if [[ ! -d "$waybar_dir" ]]; then fi pkill waybar +sleep 1 while true; do logger -i "$0: Starting waybar in the background..."