This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/wm/extras/bar/formatter.bash

33 lines
490 B
Bash
Raw Normal View History

2016-01-11 09:22:54 -06:00
#!/usr/bin/env bash
source "$DOTFILES_PATH/variables.bash"
source "$DOTFILES_PATH/wm/extras/bar/colors.bash"
ul="u"
if [ $BAR_UNDERLINE -eq 1 ]; then
:
else
ul="o"
fi
export $MODULE_MATCH=
export $MODULE_CALLBACK=
export $MODULE_DATA=
register_bar_module() {
:
}
export -f register_bar_module
source "$DOTFILES_PATH/wm/extras/bar/modules/*-bm.bash"
2016-01-11 09:22:54 -06:00
while read -r line; do
content=
for i in $MODULE_MATCH; do
content=$content$i
done
printf " %s \n" "$content"
2016-01-11 09:22:54 -06:00
done