compile_schemas() { glib-compile-schemas /usr/share/glib-2.0/schemas/ } instructions() { echo "Don't forget to restart GNOME Shell ([Alt]+[F2], r) and to enable extension with gnome-tweak-tool." } post_install() { compile_schemas instructions } post_upgrade() { compile_schemas instructions } post_remove() { compile_schemas }