Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Control redshift via terminal? #452

Closed

Description

@Trollwut

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

Activity

  1. marsjaninzmarsa commented on Mar 23, 2017

    @marsjaninzmarsa

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

  2. maandree commented on Mar 23, 2017

    @maandree
    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

  3. peterhoeg commented on Apr 3, 2017

    @peterhoeg

    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.

  4. jonls commented on Apr 3, 2017

    @jonls
    Collaborator

    @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.

  5. epgfm commented on May 3, 2017

    @epgfm

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

  6. peterhoeg commented on May 4, 2017

    @peterhoeg

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

  7. jonls commented on Jul 26, 2017

    @jonls
    Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions