Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control redshift via terminal? #452

Closed
Trollwut opened this issue Mar 23, 2017 · 7 comments
Closed

Control redshift via terminal? #452

Trollwut opened this issue Mar 23, 2017 · 7 comments
Labels

Comments

@Trollwut
Copy link

Hi folks!

Are there ways to control redshift via terminal?

In particular I'd need two commands:

  1. One to toogle redshift on/off (like clicking the GTK icon)

  2. One to check in which state (on/off) redshift currently is

Did I miss something when reading about available commands? :x

@marsjaninzmarsa
Copy link

Probably the best way to do that will be via DBus, if I'm right you can look into redshirt-gtk code for reference.

@maandree
Copy link
Contributor

You cannot get the current state, but you can use pkill -x -USR1 redshift to toggle.
I have also written some interfaces: https://github.com/maandree/nightshift, https://github.com/maandree/redshift-adjust

@peterhoeg
Copy link

IMHO, dbus support would be a killer feature here.

It would allow all the various frontends (gtk/plasma/cli) to be exactly that - frontends - that interface with one process that handles the actual changing. Nobody has to reinvent the wheel.

@jonls, is this the direction you would want to move in? If so, I'll take a stab at adding dbus support.

@jonls
Copy link
Owner

jonls commented Apr 3, 2017

@peterhoeg I agree. There is a partial D-Bus implementation in #54 that I never found time to finish but it is working quite well.

@epgfm
Copy link

epgfm commented May 3, 2017

Other cool thing querying state by terminal would allow for:
-> tying keyboard backlit to redshift state

@peterhoeg
Copy link

I haven't had the time to work on dbus at all, just FYI.

@jonls jonls added the question label Jul 26, 2017
@jonls
Copy link
Owner

jonls commented Jul 26, 2017

Let's move any future discussion to #54. Closing this issue.

@jonls jonls closed this as completed Jul 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants