diff options
author | Archie Hilton (thytom) <archie.hilton1@gmail.com> | 2019-10-22 21:50:28 +0100 |
---|---|---|
committer | Archie Hilton (thytom) <archie.hilton1@gmail.com> | 2019-10-22 21:50:28 +0100 |
commit | 8ba6ac420cda8c105650cb20795b2ebea6948baa (patch) | |
tree | 709161e1a80df0cd0ebe15ec164d3b0ee43eea2e | |
parent | a1641c8d09afc59f0977335d823a6bc896d8e1e2 (diff) |
Added padding functionality and option to remove last separator.
-rwxr-xr-x | dwmbarrc | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -6,7 +6,7 @@ DELAY=0.05 MODULES_DIR="/home/$USER/.config/dwmbar/modules/" CUSTOM_DIR="/home/$USER/.config/dwmbar/modules/custom/" SEPARATOR=" | " -PADDING=" " +PADDING="$USER@$HOSTNAME " OUTPUT_CACHE="/home/$USER/.config/dwmbar/.cache/" OUTPUT="" @@ -18,7 +18,9 @@ get_bar(){ module_out=$(cat $OUTPUT_CACHE$module | sed 's/\.$//g') bar=$bar$module_out done - echo $bar | sed 's/.$//g' + # Uncomment to remove last separator + # bar=$(echo $bar | sed 's/.$//g') + echo "$bar$PADDING" } run_module(){ |