Styles not applied on start up
Closed this issue · 1 comments
I do not know if I am supposed to report this here or on ags repository but I just started using hyprpanel to save me the hassle of writing javascript/typescript. After installing, I wrote a script to launch AGS
#!/usr/bin/bash
# Check if waybar is running and kill it
if pgrep -x "waybar" >/dev/null; then
pkill waybar || {
echo "Failed to kill waybar"
exit 1
}
fi
# Check if swaync is running and kill it
if pgrep -x "swaync" >/dev/null; then
pkill swaync || {
echo "Failed to kill swaync"
exit 1
}
fi
# Start ags
if pgrep -x "ags" >/dev/null; then
pkill ags || {
echo "Failed to kill AGS"
exit 1
}
fi
/usr/bin/ags & # I have also tried just ags &
then I added the path to this script in Hyprland
exec-once = /path/to/ags-script.sh
this did not work and I ended up restarting it multiple times and it still did not work. But when I manually run the script in the terminal, it works. I do not know what is wrong
But eventually, I changed the exec-once to just ags
exec-once = ags
this still did not work until I used just exec
then this finally worked. This started ags but did not apply the styles and I had to kill the process and then restart ags manually.
this is what it looked like when I with the exec
this is what it is suppose to look like
I have bun and sass installed. I installed all the required packages listed on hyprpanel.
On starting my laptop now, I got notification saying the following dependencies are missing: sass
. But I have sass installed and then i ran which sass
which gave me the path for sass to be $HOME/.bun/bin/sass
and then I made a symlink to /usr/bin/sass/
I also made a symlink from $HOME/.bun/bin/bun
to /usr/bin/bun
and this fixed my issues.