beeper wrapper: mention and start gearlever if the appimage isn't installed

This commit is contained in:
Aminda Suomalainen 2024-08-05 07:59:36 +03:00
parent 908ed26235
commit 9dad4088c9
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -5,7 +5,10 @@ set -x
if [ -f ~/AppImages/beeper.appimage ]; then
~/AppImages/beeper.appimage --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
else
print "Beeper not found :("
notify-send "Beeper not found :("
print "~/AppImages/beeper.appimage not found. Please install it through gearlever (default locaiton) or symlink it there."
notify-send "~/AppImages/beeper.appimage not found. Please install it through gearlever (default locaiton) or symlink it there."
if hash gearlever 2> /dev/null; then
gearlever
fi
fi
set +x