diff options
author | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-10-24 15:31:03 +0100 |
---|---|---|
committer | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-10-24 15:31:03 +0100 |
commit | ac73412ccbdd3235d3943f18bce6931f2ce4324c (patch) | |
tree | 1118daf4034fa1fbfae1fdcb6cb71c4ff8f8a8a2 /bar.sh | |
parent | 63d1282294a6226e9dba2d5868c756376ca99ab2 (diff) |
Implemented different config file
Diffstat (limited to 'bar.sh')
-rwxr-xr-x | bar.sh | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -15,22 +15,22 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <https://www.gnu.org/licenses/>. -CONFIG_NAME="config" +CONFIG_FILE="/home/$USER/.config/dwmbar/config" -DELAY=$(cat $CONFIG_NAME | grep -E "DELAY" | cut -d '"' -f2) +DELAY=$(cat $CONFIG_FILE | grep -E "DELAY" | cut -d '"' -f2) MODULES_DIR="/home/$USER/.config/dwmbar/modules/" -CUSTOM_DIR=$(cat $CONFIG_NAME | grep -E "CUSTOM_DIR" | cut -d '"' -f2) -SEPARATOR=$(cat $CONFIG_NAME | grep -E "SEPARATOR" | cut -d '"' -f2) -PADDING=$(cat $CONFIG_NAME | grep -E "PADDING" | cut -d '"' -f2) +CUSTOM_DIR=$(cat $CONFIG_FILE | grep -E "CUSTOM_DIR" | cut -d '"' -f2) +SEPARATOR=$(cat $CONFIG_FILE | grep -E "SEPARATOR" | cut -d '"' -f2) +PADDING=$(cat $CONFIG_FILE | grep -E "PADDING" | cut -d '"' -f2) OUTPUT_CACHE="/home/$USER/.config/dwmbar/.cache/" OUTPUT="" # What modules, in what order -MODULES=$(cat $CONFIG_NAME | grep -E "MODULES" | cut -d '"' -f2) +MODULES=$(cat $CONFIG_FILE | grep -E "MODULES" | cut -d '"' -f2) # Modules that require an active internet connection -ONLINE_MODULES=$(cat $CONFIG_NAME | grep -E "ONLINE_MODULES" | cut -d '"' -f2) +ONLINE_MODULES=$(cat $CONFIG_FILE | grep -E "ONLINE_MODULES" | cut -d '"' -f2) INTERNET=1 #0 being true |