Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jafarlihi/connmap
connmap is an X11 desktop widget that shows location of your current network peers on a world map
https://github.com/jafarlihi/connmap
cairo desktop-widget geolocation i3 i3wm ip-geolocation libcairo linux-desktop tcp udp x11
Last synced: about 1 month ago
JSON representation
connmap is an X11 desktop widget that shows location of your current network peers on a world map
- Host: GitHub
- URL: https://github.com/jafarlihi/connmap
- Owner: jafarlihi
- License: mit
- Created: 2020-03-20T17:04:22.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-11T18:27:23.000Z (almost 2 years ago)
- Last Synced: 2024-02-17T06:36:26.311Z (9 months ago)
- Topics: cairo, desktop-widget, geolocation, i3, i3wm, ip-geolocation, libcairo, linux-desktop, tcp, udp, x11
- Language: C
- Homepage:
- Size: 34.8 MB
- Stars: 309
- Watchers: 9
- Forks: 14
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/jafarlihi/file-hosting/blob/1261f88826242ef96d40bf0ffc6ed57ecca241e5/connmap-demo.gif?raw=true)
## 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
```
- `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.
## Limitations
- Tested only with i3wm, might not work as expected in other DE/WM.- Only IPv4 is supported.