Last active
September 16, 2020 11:51
-
-
Save fredrikhl/e9a04e0f2f234b9af3a9b7f1cea1fcac to your computer and use it in GitHub Desktop.
caffeine-ng in a virtualenv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Install/update caffeine-ng in a virtualenv | |
# | |
CAFFEINE_ENV="${HOME}/.local/env/caffeine-ng" | |
set -x | |
set -e | |
# Install/update caffeine-ng | |
${CAFFEINE_ENV}/bin/pip install -U caffeine-ng | |
# Install passthrough packages for gi, dbus | |
${CAFFEINE_ENV}/bin/pip install -U vext | |
${CAFFEINE_ENV}/bin/pip install -U vext.dbus | |
${CAFFEINE_ENV}/bin/pip install -U vext.gi | |
# Update settings schema | |
glib-compile-schemas "${CAFFEINE_ENV}/share/glib-2.0/schemas" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# caffeine-ng wrapper script | |
# | |
CAFFEINE_ENV="${HOME}/.local/env/caffeine-ng" | |
export GSETTINGS_SCHEMA_DIR="${CAFFEINE_ENV}/share/glib-2.0/schemas" | |
${CAFFEINE_ENV}/bin/caffeine "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment