Skip to content

Commit

Permalink
feat(packaging: bin-wrappers; pkgbuild): allow overriding SCREENLAYOU…
Browse files Browse the repository at this point in the history
…T_SCRIPT and CACHEDIR env vars in .profile
  • Loading branch information
actionless committed Dec 15, 2024
1 parent 2efda20 commit 978ee70
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ INSTALL_NO_ARGB_SHORTCUTS=${NOARGB:-n}
pkgname=actionless_awesome_config_meta
conflicts=(awesome_config_actionless_meta)
pkgver=0.5
pkgrel=10
pkgrel=11
pkgdesc="Awesome config dependencies"
arch=('any')
url="https://github.com/actionless/awesome_config"
Expand Down
5 changes: 3 additions & 2 deletions packaging/awesome_argb
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
#!/bin/bash

SCREENLAYOUT_SCRIPT=~/.screenlayout/default.sh
CACHEDIR="$HOME"/.cache
PROFILE_FILE=$HOME/.profile

if test -f "$PROFILE_FILE" ; then
# shellcheck disable=SC1090
. "$PROFILE_FILE"
fi

SCREENLAYOUT_SCRIPT=~/.screenlayout/default.sh
if test -f "$SCREENLAYOUT_SCRIPT" ; then
"$SCREENLAYOUT_SCRIPT"
fi

CACHEDIR="$HOME"/.cache
if test ! -d "${CACHEDIR}" ; then
mkdir -p "${CACHEDIR}"
fi
Expand Down
7 changes: 4 additions & 3 deletions packaging/awesome_composite
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
#!/bin/bash

SCREENLAYOUT_SCRIPT=~/.screenlayout/default.sh
CACHEDIR="$HOME"/.cache
PROFILE_FILE=$HOME/.profile

if test -f "$PROFILE_FILE" ; then
# shellcheck disable=SC1090
. "$PROFILE_FILE"
fi

SCREENLAYOUT_SCRIPT=~/.screenlayout/default.sh
if test -f "$SCREENLAYOUT_SCRIPT" ; then
"$SCREENLAYOUT_SCRIPT"
"$SCREENLAYOUT_SCRIPT"
fi

CACHEDIR="$HOME"/.cache
if test ! -d "${CACHEDIR}" ; then
mkdir -p "${CACHEDIR}"
fi
Expand Down
5 changes: 3 additions & 2 deletions packaging/awesome_no_argb
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
#!/bin/bash

SCREENLAYOUT_SCRIPT=~/.screenlayout/default.sh
CACHEDIR="$HOME"/.cache
PROFILE_FILE=$HOME/.profile

if test -f "$PROFILE_FILE" ; then
# shellcheck disable=SC1090
. "$PROFILE_FILE"
fi

SCREENLAYOUT_SCRIPT=~/.screenlayout/default.sh
if test -f "$SCREENLAYOUT_SCRIPT" ; then
"$SCREENLAYOUT_SCRIPT"
fi

CACHEDIR="$HOME"/.cache
if test ! -d "${CACHEDIR}" ; then
mkdir -p "${CACHEDIR}"
fi
Expand Down

0 comments on commit 978ee70

Please sign in to comment.