You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sphere-desktop-selector/scripts/detect.sh

23 lines
439 B

#!/bin/bash
export LANG=C
SCREEN=$1
if [[ "$SCREEN" = "gnome_classic" ]]; then
if gnome-extensions show dash-to-dock@gnome-shell-extensions.gcampax.github.com | grep -Eiq "State:\s+ENABLED"; then
exit 1
else
exit 0
fi
fi
if [[ "$SCREEN" = "gnome_shell" ]]; then
if gnome-extensions show dash-to-dock@gnome-shell-extensions.gcampax.github.com | grep -Eiq "State:\s+ENABLED"; then
exit 0
else
exit 1
fi
fi
exit 1