diff options
author | Archie Hilton (thytom) <archie.hilton1@gmail.com> | 2019-11-06 14:50:04 +0000 |
---|---|---|
committer | Archie Hilton (thytom) <archie.hilton1@gmail.com> | 2019-11-06 14:50:04 +0000 |
commit | 8b9fb9a9f4f6587cda018d69728a045998f02119 (patch) | |
tree | 035e17662a626c072490ddc2a8ec78db5211dc66 /bar.sh | |
parent | fe6553a1342951d857e9d4fa8e83d001f64f2637 (diff) |
Dwmbar changes for install to work out of the box
Diffstat (limited to 'bar.sh')
-rwxr-xr-x | bar.sh | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -14,19 +14,17 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see <https://www.gnu.org/licenses/>. - -MODULES_DIR="/usr/share/dwmbar/modules/" - -if [[ -d $CACHE_DIR ]]; then +if [[ -z $CACHE_DIR ]]; then OUTPUT_CACHE="$CACHE_DIR" else OUTPUT_CACHE="/home/$USER/.config/dwmbar/.cache/" fi -OUTPUT="" CONFIG_FILE="/home/$USER/.config/dwmbar/config" source $CONFIG_FILE +OUTPUT="" + get_bar() { for module in $MODULES; do @@ -46,7 +44,7 @@ run_module() then out="$($CUSTOM_DIR$1)" else - out="$($MODULES_DIR$1)" + out="$($DEFAULT_MODULES_DIR$1)" fi if [[ ! "$out" = "" ]]; then |