mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-21 10:02:53 +00:00
Fix for internet module.
Internet module was not being loaded correctly. Also had spacing issues.
This commit is contained in:
parent
3562a69c23
commit
04a371f4b3
3 changed files with 6 additions and 6 deletions
10
bar.sh
10
bar.sh
|
@ -53,12 +53,12 @@ run_module()
|
|||
{
|
||||
if [[ -f "$CUSTOM_DIR$1" ]]
|
||||
then
|
||||
out="$(exec $CUSTOM_DIR$1)"
|
||||
out="$($CUSTOM_DIR$1)"
|
||||
else
|
||||
out="$(exec $MODULES_DIR$1)"
|
||||
out="$($MODULES_DIR$1)"
|
||||
fi
|
||||
|
||||
[[ ! "$out" = "" ]] && [[ ! "$module" = "NULL" ]] && out="$out$SEPARATOR."
|
||||
[[ ! "$out" = "" ]] && out="$out$SEPARATOR."
|
||||
echo "$out" > "$OUTPUT_CACHE$module"
|
||||
}
|
||||
|
||||
|
@ -67,10 +67,10 @@ run()
|
|||
get_internet
|
||||
for module in $MODULES; do
|
||||
pgrep $module &> /dev/null
|
||||
if [[ $INTERNET -eq 0 ]] && [[ $? -eq 1 ]]; then
|
||||
if [[ $? -eq 1 ]] && [[ $INTERNET -eq 0 ]]; then
|
||||
run_module $module &
|
||||
else
|
||||
[[ $ONLINE_MODULES != *"$module"* ]] && run_module $module
|
||||
[[ "$ONLINE_MODULES" != *"$module"* ]] && run_module $module
|
||||
fi
|
||||
done
|
||||
get_bar
|
||||
|
|
BIN
modules/internet
BIN
modules/internet
Binary file not shown.
|
@ -2,7 +2,7 @@
|
|||
|
||||
int main()
|
||||
{
|
||||
char *internet_icon = "";
|
||||
char *internet_icon = " ";
|
||||
|
||||
printf("%s\n", internet_icon);
|
||||
|
||||
|
|
Loading…
Reference in a new issue