scripts/bash/usr-local-bin/beeper

19 lines
650 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
set -x
if [ "$(lsb_release -si)" == "Arch" ]; then
echo "Remember! sudo pacman -S fuse2"
fi
# This assumes the usage of GearLever with the default directory.
if [ -f ~/AppImages/beeper.appimage ]; then
~/AppImages/beeper.appimage --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@"
else
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