1
0
mirror of https://github.com/Foltik/dotfiles synced 2025-04-24 02:21:19 -04:00
dotfiles/config/i3blocks/laptop/blocks/ip-address
2017-07-26 11:00:04 -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