xflux

I’ve been staring at a monitor a lot lately and want to be able to do so with less eye fatigue.

Also, days of 18 hour darkness are approaching in Whitehorse, and I’d like to be able to work later without staring at the blue spectrum during the prolonged dark.

So I’m trying flux.

First, install xflux and autoxflux from AUR. autoxflux shown below

if [[ ! -d ~/build/auto-xflux ]]; then
  mkdir ~/build/auto-xflux
fi
cd ~/build/flux
curl -O https://aur.archlinux.org/cgit/aur.git/snapshot/auto-xflux.tar.gz
tar -xzf auto-xflux.tar.gz
cd auto-xflux
makepkg
sudo pacman -U auto<TAB>

Well, how does autoxflux it work?

It has a systemd service file

ls "$(pkg-config systemd --variable systemduserunitdir)" | grep xflux
auto-xflux.service

Kick it off

systemctl --user start auto-xflux

then we can see that it is running

systemctl --user status auto-xflux
auto-xflux.service - Inputless xflux daemon that geocodes based on your external IP address
   Loaded: loaded (/usr/lib/systemd/user/auto-xflux.service; disabled; vendor preset: enabled)
   Active: active (running) since Tue 2015-11-10 16:00:06 PST; 1min 39s ago
  Process: 21996 ExecStart=/usr/bin/auto-xflux (code=exited, status=0/SUCCESS)
 Main PID: 22010 (xflux)
   CGroup: /user.slice/user-1000.slice/user@1000.service/auto-xflux.service
           └─22010 /usr/sbin/xflux -l 55.7833 -g -120.9167

Nov 10 16:00:05 archLenFlex systemd[727]: Starting Inputless xflux daemon that geocodes based on your external IP address...
Nov 10 16:00:06 archLenFlex systemd[727]: Started Inputless xflux daemon that geocodes based on your external IP address.

Great, enable it at startup

systemctl --user enable auto-xflux
Created symlink from /home/joth/.config/systemd/user/graphical.target.wants/auto-xflux.service to /usr/lib/systemd/user/auto-xflux.service.

It’s a major improvement! Going back was an assault on my eyes after enabling auto-xflux.

Finally, it seems xflux has a few configuration options. But as far as I can tell they can only be specified when calling the binary. Urg.

As for a configuration file, it was easier to find how to do this with Redshift. Which is also open source.

Bollox. That sounds preferable. It’ll have to wait until next time I update. xflux will do for now!

Go Top
comments powered by Disqus