Skip to content

Inputless xflux daemon that geocodes based on your external IP address

License

Notifications You must be signed in to change notification settings

coeusite/auto-xflux

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

auto-xflux

Inputless xflux daemon that geocodes based on your external IP address.

This requires working systemd instance and X server for the user executing xflux. It requires an Internet connection to already be established and assumes that the following services are online:

  • [icanhazip.com]
  • [geocodeip.com]

This also obviously requires xflux (to be accessible in $PATH).

Modification

  • Only acquire IPv4 address.
  • Fix bug on negative lat/long
  • Modified for Debian Jessie KDE
    • Use /bin/bash instead of /bin/sh in order to support Debian KDE

Installation

Arch Linux

Installed the AUR package, auto-xflux. The PKGBUILD can be viewed here.

Other

Installed by downloading the files in this repository and running:

make [DESTDIR=DIRECTORY] install

and uninstalled by runnning:

make [DESTDIR=DIRECTORY] uninstall

DESTDIR is included for installing to a non-root (/) location.

Debian Jessie KDE

  • add /usr/bin/auto-xflux to startup scripts in order to start after boot
  • add kill $(ps aU $USER | pgrep 'xflux' | awk '{print $1}') to shutdown scripts to kill xflux after logout
  • Replace ```exec `which xflux```` by /path/to/xflux if the script does not work.

About

Inputless xflux daemon that geocodes based on your external IP address

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 75.6%
  • Makefile 24.4%