Add dotfiles
This commit is contained in:
parent
49bfe1a4d3
commit
b6e01a720b
52 changed files with 4701 additions and 0 deletions
14
dwmbar/modules/localip
Executable file
14
dwmbar/modules/localip
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Prints out your local IP
|
||||
|
||||
PREFIX='ﯱ '
|
||||
|
||||
get_local_ip()
|
||||
{
|
||||
IP=$(ip addr | grep -e "inet " | awk 'NR==2' | sed 's/^.*inet.//g; s/\/.*//g')
|
||||
|
||||
echo "$PREFIX$IP"
|
||||
}
|
||||
|
||||
get_local_ip
|
Loading…
Add table
Add a link
Reference in a new issue