aboutsummaryrefslogtreecommitdiff
path: root/i3/blocks/ip-address
blob: d91ab5660a1bc81d81c88646ac4491c23db627e2 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash

IP_ADDRESS=$(ip route get 1 | awk '{print $NF;exit}')

if [[ "${IP_ADDRESS}" != "" ]]; then
  echo "${IP_ADDRESS}"
  echo "${IP_ADDRESS}"
  echo ""
fi