refactor(hypr): launch waybar with a launcher script

This commit is contained in:
Price Hiller 2023-09-04 23:06:51 -05:00
parent 7a88dee6bf
commit a30b177bca
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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