Results 1 to 3 of 3

Thread: conky - display my external address

  1. #1
    Join Date
    Jul 2014
    Beans
    279

    Question conky - display my external address

    Hi all,

    I got dynamic external IP address and I would like to display it in conky ( I check it using $ curl ipinfo.io/ip in console so far).
    How do I perform it?

  2. #2
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!

    Re: conky - display my external address

    You need to use the variable ${addr enp4s0} in your .conkyrc or whatever file you use for configuration of the display; here's what I have in mine with the up and down speed-graph boxes which you may find useful as well
    Code:
    NETWORK IP: $alignr enp4s0 -  ${addr enp4s0}
    DOWN: ${downspeed enp4s0}/s$alignr UP: ${upspeed enp4s0}/s
    ${color #FFA500}${downspeedgraph enp4s0 40,158}$alignr${upspeedgraph enp4s0 40,158}
    The screenshot is of the output this gives me.

    EDIT:
    Sorry; just noticed this is about external IP.

    I think your command will do this and you need to run it and extract the output to the conky display with
    Code:
    PUBLIC IP ${alignr}${execi 60 curl  ipinfo.io/ip}
    Attached Images Attached Images
    Last edited by ajgreeny; May 29th, 2017 at 12:30 PM.
    DISTRO: Xubuntu 18.04-64bit --- Code-tags --- Boot-Repair --- Grub2 wiki & Grub2 Basics --- RootSudo --- Wireless-Info --- SolvedThreads

  3. #3
    Join Date
    Jul 2014
    Beans
    279

    Re: conky - display my external address

    ajgreeny, does work, thx.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •