mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2025-02-05 04:50:02 +00:00
Added padding functionality and option to remove last separator.
This commit is contained in:
parent
a1641c8d09
commit
8ba6ac420c
1 changed files with 4 additions and 2 deletions
6
dwmbarrc
6
dwmbarrc
|
@ -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(){
|
||||
|
|
Loading…
Reference in a new issue