From 8b9fb9a9f4f6587cda018d69728a045998f02119 Mon Sep 17 00:00:00 2001 From: "Archie Hilton (thytom)" Date: Wed, 6 Nov 2019 14:50:04 +0000 Subject: Dwmbar changes for install to work out of the box --- bar.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'bar.sh') diff --git a/bar.sh b/bar.sh index 05a2056..f74655f 100755 --- a/bar.sh +++ b/bar.sh @@ -14,19 +14,17 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see . - -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 -- cgit v1.2.3