aboutsummaryrefslogtreecommitdiff
path: root/dwmbar
diff options
context:
space:
mode:
authorArchie Hilton (thytom) <archie.hilton1@gmail.com>2019-11-06 14:50:04 +0000
committerArchie Hilton (thytom) <archie.hilton1@gmail.com>2019-11-06 14:50:04 +0000
commit8b9fb9a9f4f6587cda018d69728a045998f02119 (patch)
tree035e17662a626c072490ddc2a8ec78db5211dc66 /dwmbar
parentfe6553a1342951d857e9d4fa8e83d001f64f2637 (diff)
Dwmbar changes for install to work out of the box
Diffstat (limited to 'dwmbar')
-rwxr-xr-xdwmbar13
1 files changed, 13 insertions, 0 deletions
diff --git a/dwmbar b/dwmbar
index 0333228..5e5ce4f 100755
--- a/dwmbar
+++ b/dwmbar
@@ -16,13 +16,26 @@
VERSION="0.2"
DEFAULT_CONFIG_DIR="/usr/share/dwmbar"
+export DEFAULT_CONFIG_DIR
DEFAULT_MODULES_DIR="$DEFAULT_CONFIG_DIR/modules"
+export DEFAULT_MODULES_DIR
DEFAULT_BAR_LOCATION="$DEFAULT_CONFIG_DIR/bar.sh"
+export DEFAULT_BAR_LOCATION
DEFAULT_CONFIG_LOCATION="$DEFAULT_CONFIG_DIR/config"
+export DEFAULT_CONFIG_LOCATION
CONFIG_DIR="/home/$USER/.config/dwmbar"
+export CONFIG_DIR
+
CUSTOM_DIR="$CONFIG_DIR/custom"
+export CUSTOM_DIR
+
CONFIG_FILE="$CONFIG_DIR/config"
+if [[ ! -f "$CONFIG_FILE" ]]; then
+ CONFIG_FILE=$DEFAULT_CONFIG_LOCATION
+fi
+export CONFIG_FILE
+
CACHE_DIR="$HOME/.cache/dwmbar/"
export CACHE_DIR