All Projects → xflux-gui → Fluxgui

xflux-gui / Fluxgui

Licence: other
Better lighting for Linux. Open source GUI for xflux

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Fluxgui

Redshift
Redshift adjusts the color temperature of your screen according to your surroundings. This may help your eyes hurt less if you are working in front of the screen at night.
Stars: ✭ 5,223 (+103.55%)
Mutual labels:  night, eye-strain
Mtprotoproxyinstaller
One-click script to install MTProto Proxy server on CentOS, Ubuntu and Debian
Stars: ✭ 216 (-91.58%)
Mutual labels:  ubuntu
Ansible Role Hardening
Ansible role to apply a security baseline. Systemd edition.
Stars: ✭ 188 (-92.67%)
Mutual labels:  ubuntu
Lamp
Install LAMP(Linux + Apache + MySQL/MariaDB + PHP ) for CentOS/Debian/Ubuntu
Stars: ✭ 2,456 (-4.29%)
Mutual labels:  ubuntu
Hope
🎨 Java 学习
Stars: ✭ 192 (-92.52%)
Mutual labels:  ubuntu
Dotfiles
My lovely dots ~/.💖
Stars: ✭ 212 (-91.74%)
Mutual labels:  ubuntu
Automate With Ansible
《現代 IT 人一定要知道的 Ansible 自動化組態技巧》
Stars: ✭ 188 (-92.67%)
Mutual labels:  ubuntu
Termite Style
Simple script to change color-schemes and fonts for Termite.
Stars: ✭ 224 (-91.27%)
Mutual labels:  ubuntu
Howdy
🛡️ Windows Hello™ style facial authentication for Linux
Stars: ✭ 3,237 (+26.15%)
Mutual labels:  ubuntu
Awesome Raspberry Pi Zh
树莓派工具,镜像,教程,文章
Stars: ✭ 201 (-92.17%)
Mutual labels:  ubuntu
Packer Build
Packer Automated VM Image and Vagrant Box Builds
Stars: ✭ 199 (-92.24%)
Mutual labels:  ubuntu
Seamly2d
Open source patternmaking software.
Stars: ✭ 197 (-92.32%)
Mutual labels:  ubuntu
Windy Afternoon
Gitbook based Blog, Android, Linux, Deep Learning, Computer Vision
Stars: ✭ 213 (-91.7%)
Mutual labels:  ubuntu
Night Owl Vscode Theme
🌌 NIGHT OWL: A VS Code dark theme for contrast for nighttime coding, 🦉 LIGHT OWL: a daytime light theme
Stars: ✭ 2,368 (-7.72%)
Mutual labels:  night
Mindforger Repository
MindForger documentation repository.
Stars: ✭ 221 (-91.39%)
Mutual labels:  ubuntu
Laravel Deployment
📗[WIP] 追求质量的 Laravel 应用部署上线课程。
Stars: ✭ 190 (-92.6%)
Mutual labels:  ubuntu
Rpi Pxe Server
setup a Raspberry Pi as an PXE-Server
Stars: ✭ 197 (-92.32%)
Mutual labels:  ubuntu
Ubuntu Sshd
Dockerized Ubuntu SSH service
Stars: ✭ 205 (-92.01%)
Mutual labels:  ubuntu
Iir1
IIR realtime filter library written in C++
Stars: ✭ 224 (-91.27%)
Mutual labels:  ubuntu
Deb Simple
A lightweight, bare-bones apt repository server
Stars: ✭ 222 (-91.35%)
Mutual labels:  ubuntu

FLUXGUI DOES NOT WORK ON MOST MODERN SYSTEMS

Fluxgui doesn't work on most modern systems, and there are no plans to fix it. You probably want to use Redshift via redshift-gtk instead. If you're curious, see:

  • #27 for why fluxgui probably won't work on your system and how to test if it can.
  • #113 for a possible way forward for the project.

f.lux indicator applet

Better lighting for your computer

The f.lux indicator applet fluxgui is an indicator applet to control xflux, an application that makes the color of your computer's display adapt to the time of day: warm at night, and like sunlight during the day. Reducing blue light exposure in the evening can help you fall asleep at night. See https://justgetflux.com/research.html for more details.

This project -- https://github.com/xflux-gui/fluxgui -- is only concerned with the fluxgui indicator applet program, not with the underlying xflux program the indicator applet controls. The xflux program is responsible for actually changing the color of your screen. See https://justgetflux.com/linux.html for more information about xflux.

xflux is downloaded automatically when installing fluxgui. Simply run fluxgui in your terminal after installation to open the applet. You can also easily configure the applet to auto-start on login.

Install Instructions

Only Python 3 is Supported

The fluxgui is only known to work with Python 3.

Ubuntu PPA Package Manager Install

To install via apt:

sudo add-apt-repository ppa:nathan-renniewaldock/flux
sudo apt-get update
sudo apt-get install fluxgui

See ubuntuhandbook.org instructions for more details.

For Ubuntu 20.04 LTS and above

While sudo apt-get update there is an error #144

E: The repository 'http://ppa.launchpad.net/nathan-renniewaldock/flux/ubuntu focal Release' does not have a Release file. 

To solve:

  1. sudo vim /etc/apt/sources.list.d/nathan-renniewaldock-ubuntu-flux-focal.list
  2. Replace focal to bionic and save it.
  3. Repeat above mentioned steps from line 2.

If you have trouble with the PPA version try the manual install below.

Fedora Package Manager Install

There is no Fedora package provided yet. Please use Manual Install below.

Manual Install

To install manually you first install the dependencies using your package manager, and then install fluxgui using the provided setup.py. The manual install can be done locally or system wide.

Install Dependencies Using Package Manager

Ubuntu/Debian

Partial list of Python 3 dependencies (after the uprgrade to GTK+ 3 in PR #112. If you discover the correct deps, please submit a PR):

sudo apt-get install python3-pexpect python3-distutils gir1.2-appindicator3-0.1 gir1.2-gtk-3.0

Out of date Python 2 dependencies; the remaining Python 3 deps should be similar:

sudo apt-get install git python-appindicator python-xdg python-pexpect python-gconf python-gtk2 python-glade2 libxxf86vm1  libcanberra-gtk-module
Fedora/CentOS

WARNING: these dependencies may be out of date after the uprgrade to GTK+ 3 in PR #112. If you discover the correct deps, please submit a PR.

sudo yum install git python-appindicator python2-pyxdg python3-pexpect gnome-python2-gconf pygtk2 pygtk2-libglade

Install fluxgui

There are separate instructions in the code below for installing system wide and for installing locally in your user directory; choose one.

# Download fluxgui
cd /tmp
git clone "https://github.com/xflux-gui/fluxgui.git"
cd fluxgui
./download-xflux.py

# EITHER install system wide
sudo ./setup.py install --record installed.txt

# EXCLUSIVE OR, install in your home directory
#
# The fluxgui program installs
# into ~/.local/bin, so be sure to add that to your PATH if installing
# locally. In particular, autostarting fluxgui in Gnome will not work
# if the locally installed fluxgui is not on your PATH.
./setup.py install --user --record installed.txt
       
# Run flux
fluxgui

Manual Uninstall

If you manually installed instead of using package manager, you can uninstall by making setup.py tell you where it installed files and then removing the installed files.

# EITHER uninstall globally
#
# The 'installed.txt' is generated when you install. Reinstall first if you
# as described above if you don't have an 'installed.txt' file.
sudo xargs rm -vr < installed.txt
sudo glib-compile-schemas "$(dirname "$(grep apps.fluxgui.gschema.xml installed.txt)")"

# EXCLUSIVE OR uninstall in your home directory
xargs rm -vr < installed.txt
glib-compile-schemas "$(dirname "$(grep apps.fluxgui.gschema.xml installed.txt)")"

License

The fluxgui applet is released under the MIT License. The underlying xflux program that actually controls the screen color is closed source.

Developing

Coding Style

Try to stick to the same coding style that is already used in the file you are editing. In particular, don't change the style of code you're not already editing for some other reason. Style changes create noise in the Git history and make the git blame output misleading. When reviewing a PR, the maintainers want to focus on the logical changes introduced by your code, and extraneous style changes make that harder.

Running fluxgui Without Installing

When working on fluxgui, you can use

cd <path to your fluxgui.git clone>
# You only need to download xflux once.
./download-xflux.py
glib-compile-schemas .
GSETTINGS_SCHEMA_DIR=`pwd` PATH=`pwd`:$PATH PYTHONPATH=`pwd`/src:$PYTHONPATH ./fluxgui

to test your local copy of fluxgui without installing anything.

Change Logs, Versions, Releases

Note changes in ./debian/changelog.

Use version <ver>~pre until ready to release a version. When releasing a version remove the ~pre suffix from the version strings and commit, copying the changelog changes for the current release into the commit message. Then git tag -a v<ver>, using the commit msg for the tag annotation. Finally, create another commit with the new <next version>~pre version strings and changelog entry.

When releasing the version string needs to be changed in debian/changelog and setup.py, and the release dates needs to be added in debian/changelog.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].