Skip to content

Latest commit

 

History

History
61 lines (39 loc) · 1.57 KB

README.md

File metadata and controls

61 lines (39 loc) · 1.57 KB

Location indicator

Shows your country flag, country ISO code, and IP address of your current location in the system tray.

For location detection requests to https://api.myip.com/ are sent each 15 seconds.

example of indicator

Requirements

  • python3

Installation

  1. Create a directory to store locindicator scripts. It could be any writable directory accessible by your user.

    mkdir -p $HOME/Bin
  2. Clone the repo.

    git clone https://github.com/icamys/locindicator.git $HOME/Bin/locindicator
  3. Install the dependencies.

    This script requires root privileges to install (jq, indicator-sysmonitor).

    sudo $HOME/Bin/locindicator/install.sh
  4. Bootstrap the indicator.

    Attention! Execute this command on behalf of the user, that is running the graphical interface. Otherwise, the indicator won't appear. Usually, it means that you should run it without sudo.

    The script adds sensors to indicator-sysmonitor, configures it to run on system start, and starts the indicator.

    $HOME/Bin/locindicator/bootstrap.sh

Uninstallation

The following script will stop and remove the currently running indicator, and remove its configuration file. The restart is still possible with after executing install.sh and bootstrap.sh scripts

$HOME/Bin/locindicator/uninstall.sh

Compatibility

Tested on:

  • Ubuntu 18.04
  • Ubuntu 20.04
  • Ubuntu 22.04