mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-21 10:02:53 +00:00
Modifications to bar.sh and localip
This commit is contained in:
parent
d5a6b65c28
commit
3587e006fa
2 changed files with 4 additions and 2 deletions
2
bar.sh
2
bar.sh
|
@ -47,7 +47,7 @@ run_module()
|
|||
fi
|
||||
|
||||
if [[ "$out" = " " ]]; then
|
||||
echo " " > "$OUTPUT_CACHE$module"
|
||||
echo "" > "$OUTPUT_CACHE$module"
|
||||
elif [[ ! "$out" = "" ]]; then
|
||||
out="$out$SEPARATOR."
|
||||
echo "$out" > "$OUTPUT_CACHE$module"
|
||||
|
|
|
@ -6,7 +6,9 @@ PREFIX='ﯱ '
|
|||
|
||||
get_local_ip()
|
||||
{
|
||||
echo "$PREFIX$(hostname -i)"
|
||||
IP=$(ip addr | grep -e "inet " | awk 'NR==2' | sed 's/^.*inet.//g; s/\/.*//g')
|
||||
|
||||
echo "$PREFIX$IP"
|
||||
}
|
||||
|
||||
get_local_ip
|
||||
|
|
Loading…
Reference in a new issue