connmap is an X11 desktop widget that shows location of your current network peers on a world map.
Clone the repository git clone https://github.com/jafarlihi/connmap --depth 1
, 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 i3 config to run at startup (make sure it is in the PATH):
exec --no-startup-id connmap.elf
Build dependencies: xlib, libxext, libcairo2
Runtime dependencies: ss
utility of iproute2
package
Installation for Arch Linux:
sudo pacman -S --needed iproute2 cairo libx11 libxext
Installation for Ubuntu:
sudo apt install iproute2 libx11-dev libxext-dev libcairo2-dev libxfixes-dev
Installation will create ~/.config/connmap/connmaprc
. Default connmaprc
looks like this:
location_x 20
location_y 500
small true
black false
update_interval 1
-
location_x
/location_y
specifies the widget location in your desktop. -
Setting
small
to false will resize widget from 500px/250px to 1000px/500px. -
Setting
black
to true will draw map outline in black instead of white. -
update_interval
is seconds the application will sleep for before fetching the updated list of network connections.
-
Tested only with i3wm, might not work as expected in other DE/WM.
-
Only IPv4 is supported.