1
0
mirror of https://github.com/Foltik/dotfiles synced 2024-12-11 05:52:21 -05:00
dotfiles/cfg/i3blocks/laptop/blocks/ip-address
2017-07-26 11:05:09 -07:00

9 lines
163 B
Bash
Executable File

#!/bin/bash
IP_ADDRESS=$(ip route get 1 | awk '{print $NF;exit}')
if [[ "${IP_ADDRESS}" != "" ]]; then
echo "${IP_ADDRESS}"
echo "${IP_ADDRESS}"
echo ""
fi