Skip to content

Instantly share code, notes, and snippets.

@deanrather
Last active February 2, 2021 11:44
Show Gist options
  • Save deanrather/b547e486d58612c87c6a2e2a0bc876b8 to your computer and use it in GitHub Desktop.
Save deanrather/b547e486d58612c87c6a2e2a0bc876b8 to your computer and use it in GitHub Desktop.
#!/bin/bash -e
# ubuntu-install-flux.sh
# installs [f.lux](https://justgetflux.com/)
# usage: wget https://gist.githubusercontent.com/deanrather/b547e486d58612c87c6a2e2a0bc876b8/raw/ubuntu-install-flux.sh -O - | sh
sudo apt-get update
apt-cache pkgnames | grep -Fx python-pip || sudo apt-get install -y python-pip
apt-cache pkgnames | grep -Fx python-gconf || sudo apt-get install -y python-gconf
apt-cache pkgnames | grep -Fx python-glade2 || sudo apt-get install -y python-glade2
apt-cache pkgnames | grep -Fx python-appindicator || sudo apt-get install -y python-appindicator
sudo -E pip install pexpect
tmpdir=$(mktemp -d)
git clone https://github.com/Kilian/f.lux-indicator-applet.git "$tmpdir"
cd "$tmpdir"
sudo python setup.py install
fluxgui &
echo "Flux is now installed."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment