Skip to content

Toggle day and night modes in redshift #885

@wgmayer0

Description

@wgmayer0

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
I want to be able to toggle between day and night mode.

Describe the solution you'd like
A clear and concise description of what you want to happen.

!/bin/bash

current_temp=$(_code here that returns current temperature from redshift_)
echo "Current temperature: $current_temp"

if [[ $current_temp -eq 1000 ]]; then
    redshift -P -O 6500
    notify-send "Redshift: Daytime mode (6500K)"
else
    redshift -P -O 1000
    notify-send "Redshift: Nighttime mode (1000K)"
fi

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
None, the way described should work fine

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions