jafarlihi / connmap

connmap is an X11 desktop widget that shows location of your current network peers on a world map
MIT License
310 stars 12 forks source link
cairo desktop-widget geolocation i3 i3wm ip-geolocation libcairo linux-desktop tcp udp x11

connmap

connmap is an X11 desktop widget that shows location of your current network peers on a world map. (Works on Wayland as well!)

Demo

Installation

Clone the repository git clone https://github.com/jafarlihi/connmap --depth 1, install the dependencies (see below), run make install, then run the resulting executable ./connmap.elf.

If you want to run it without attaching it to the terminal then add ampersand at the end of the command: ./connmal.elf &.

You can also add it to your i3wm config to run at startup (make sure it is in the PATH):

exec --no-startup-id connmap.elf

Dependencies

Build dependencies: xlib, libxext, libxfixes, libcairo2

Installation dependencies: unzip

Runtime dependencies: iproute2

Installation for Arch Linux:

sudo pacman -S --needed iproute2 libx11 libxext libxfixes cairo unzip

Installation for Ubuntu:

sudo apt install iproute2 libx11-dev libxext-dev libxfixes-dev libcairo2-dev unzip

Config

Installation will create ~/.config/connmap/connmaprc. Default connmaprc looks like this:

location_x 20
location_y 500
small true
black false
update_interval 1