diff --git a/dots/.config/hypr/hyprland.conf b/dots/.config/hypr/hyprland.conf index be7e3440..26b009a9 100644 --- a/dots/.config/hypr/hyprland.conf +++ b/dots/.config/hypr/hyprland.conf @@ -7,7 +7,7 @@ source = ~/.config/hypr/wm/window-rules.conf exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP QT_QPA_PLATFORMTHEME GTK_THEME exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP QT_QPA_PLATFORMTHEME GTK_THEME exec-once = ~/.config/hypr/scripts/launchers/events-monitor.bash -exec-once = GTK_THEME="THIS THEME DOESN'T EXIST" waybar +exec-once = ~/.config/hypr/scripts/launchers/launch-waybar.bash exec-once = mako --history 1 exec-once = udiskie --tray exec-once = blueman-applet diff --git a/dots/.config/hypr/scripts/launchers/launch-waybar.bash b/dots/.config/hypr/scripts/launchers/launch-waybar.bash index 06a36a35..bbd7d1b9 100755 --- a/dots/.config/hypr/scripts/launchers/launch-waybar.bash +++ b/dots/.config/hypr/scripts/launchers/launch-waybar.bash @@ -1,7 +1,9 @@ #!/usr/bin/env bash main() { - kill -9 "$(pidof waybar)" >/dev/null - GTK_THEME="THIS THEME DOESN'T EXIST" waybar & + kill -15 "$(pidof waybar)" >/dev/null + until GTK_THEME="THIS THEME DOESN'T EXIST" waybar; do + sleep 1 + done } main