mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-09-18 18:43:06 +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
|
@ -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