Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Optimizing PWAs For Different Display Modes

      August 26, 2025

      Node.js Web App Development Costs: A 2025 Executive Pricing Guide

      August 26, 2025

      Google locking down Android security with upcoming developer verification requirements for sideloaded apps

      August 26, 2025

      Microsoft donates DocumentDB to the Linux Foundation

      August 25, 2025

      Google can translate your voice in real time now – try it free

      August 27, 2025

      The one-click Linux app I use for instant online anonymity

      August 27, 2025

      You can try Android 16’s new lock screen widgets – if you have one of these phones

      August 27, 2025

      Apple’s iPhone 17 event launch date is official – here’s everything we expect

      August 27, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      Password Strength Estimator Validation in Laravel

      August 27, 2025
      Recent

      Password Strength Estimator Validation in Laravel

      August 27, 2025

      Laravel’s Enhanced String Validation with Inverse Methods

      August 27, 2025

      Using SQLite in production with Laravel

      August 27, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Microsoft Excel just got a Copilot function — but the new AI has some surprising limitations

      August 27, 2025
      Recent

      Microsoft Excel just got a Copilot function — but the new AI has some surprising limitations

      August 27, 2025

      Why Final Fantasy XIV fans are review‑bombing the game on Steam

      August 27, 2025

      Google Chrome VPN under fire for secretly screenshotting users’ browsing habits

      August 27, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Learning Resources»Using Nightlight in Hyprland

    Using Nightlight in Hyprland

    August 27, 2025

    Using Nightlight in Hyprland

    I presume that you are no stranger to the nightlight feature. It filters blue light from your screen and shifts colors to warmer, orange tones during evening hours, reducing eye strain while using computers at night.

    From KDE to Cinnamon, most Linux desktop environments offer this as a bulit-in feature. Look at GNOME Nightlight feature; it is available right from the quick toggle buttons.

    Using Nightlight in Hyprland
    GNOME Nightlight

    Don’t get your hopes high if you are using Hyprland. You won’t get a click to enable nighlight feature here. However, you can surely configure your way out of the blue light.

    hyprsunset: The Hyprland nightlight tool

    Hyprland has an ecosystem of tools like Hyprpaper (wallpaper utility), hyprlock (lockscreen utility), etc. In that regard, hyprsunset is a small utility that provides nightlight in Hyprland.

    🚧
    hyprsunset is available from Hyprland 0.45 onwards. Since Hyprland is in a highly active state, I’ll presume that most of the Hyprland users are already using the latest and greatest version.

    If you are on Arch Linux, you can install hyprsunset from the official repository using:

    sudo pacman -S hyprsunset
    
    hyprsunset

    Configure hyprsunset

    Once you installed, you need to configure hyprsunset with values.

    First, create a configuration file at ~/.config/hypr called hyprsunset.conf.

    nano ~/.config/hypr/hyprsunset.conf
    

    Set the gamma

    You can set the maximum gamma in hyprsunset using the max-gamma keyword. This is useful for controlling hyprsunset using hyprctl. You will see that in a later section.

    max-gamma = 150
    

    This sets the maximum gamma to 150%. The absolute maximum gamma is set at 200%. You cannot set it beyond 200. A high value of gamma will increase the brightness beyond comfortable limits.

    Profiles

    hyprsunset works by setting profiles of nightlight conditions. You can consider it a time-based rule for the screen settings.

    The general syntax is:

    profile {
      option = value
    }
    

    Day-time profile

    You don’t want to enable the nightlight during the day. So, create a profile for the daytime usage.

    max-gamma = 150
    
    profile {
      time = 6:00
      identity = true
      gamma = 1.0
    }
    

    The above profile will be activated at 6 AM. You see, it sets three options:

    • time: Specifies at what time the profile should be activated.
    • identity: Effectively disables the temperature settings. Your display will work at normal values.
    • gamma: While the identity setting is true, you can only change the gamma values. Any temperature change is ignored. In the example, it is set to 100% (1.0). If you have a very dim monitor, set it to a higher value. Remember, it can’t go above the max-gamma set value, here 150 (1.5).

    Night-time profile

    Let’s say you want to create a warmer profile when the time is 6 o’clock in the evening.

    profile {
      time = 18:00
      temperature = 5500
      gamma = 0.8
    }
    

    The above profile will be activated at 6 PM and apply a 5500K temperature.

    You can create more profiles with hyprsunset. For example, an even dimmer and warmer temperature at 11 p.m. at night as a reminder to sleep.

    profile {
      time = 23:00
      temperature = 4000
      gamma = 0.7
    }
    

    So, your config file (~/.config/hypr/hyprsunset) will look like this:

    max-gamma = 150
    
    profile {
      time = 6:00
      identity = true
      gamma = 1.0
    }
    
    profile {
      time = 18:00
      temperature = 5500
      gamma = 0.8
    }
    
    profile {
      time = 23:00
      temperature = 4000
      gamma = 0.7
    }
    

    The choice is all yours. You can play with the configuration as much as you like.

    📋
    There are almost no screenshots or videos in this tutorial because the screenshots do not capture the effect of nightlight.

    Start hyprsunset

    The best and easiest way to start hyprsunset is using the Hyprland config file (~/.config/hypr/hyprland.conf).

    Open the config file and scroll to the location where application autostart is defined (exec-once statements). Then add the following line:

    exec-once = hyprsunset
    

    Change temperature with shortcuts

    Earlier, I mentioned that you can control hyprsunset using the hyprctl command. This is possible because hyprsunset supports IPC (inter-process communication).

    See the command below that will reduce the temperature by 500K:

    hyprctl hyprsunset temperature -500
    

    So, in Hyprland config, you can set the keyboard shortcut to get the effect.

    bind = $mainMod, H, exec, hyprctl hyprsunset temperature +500
    bind = $mainMod, B, exec, hyprctl hyprsunset temperature -500
    

    Restart Hyprland and you can change the temperature with the keyboard shortcuts.

    When a new profile is activated, this setting adjusts to the value mentioned in the profile.

    Wrapping Up

    FYI, Plus members of It’s FOSS can access our Hyprland series for more organized learning.

    Get ‘Hyp’ with Hyprland
    Let’s get on the “hyp” wagon with Hyprland. Learn all the essentials you need to know to use this trending window compositor and get an awesome looking Linux desktop.
    Using Nightlight in HyprlandIt’s FOSS PlusSreenath V
    Using Nightlight in Hyprland

    I feel that Nightlight is one such feature that should be enabled immediately after installing a system. Staring into the monitor late at night is never comfortable to the eyes. Even though the bluelight filter alone cannot entirely make your eyes safe, nightlight is still a welcome feature.

    You should practice other measures as well, like not staring at the screen for more than 30 minutes continuously. There are apps that allow you to take frequent breaks from screen that you can rely on. I’ll see if I can find some for Hyprland.

    Enjoy the night light 💡

    Source: Read More

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleTodo App using PHP and MySQL
    Next Article Game, Set, Match: Hyderabad Sports Fest 2025

    Related Posts

    News & Updates

    Microsoft Excel just got a Copilot function — but the new AI has some surprising limitations

    August 27, 2025
    News & Updates

    Why Final Fantasy XIV fans are review‑bombing the game on Steam

    August 27, 2025
    Leave A Reply Cancel Reply

    For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

    Continue Reading

    Blender 4.5 LTS Released with ‘Full Vulkan Support’

    Linux

    Sono Spazzatura: Questo il Giudizio di Linus Torvalds sulle Patch di RISC-V per il Kernel Linux 6.17

    Linux

    CVE-2025-7656 – Google Chrome V8 Integer Overflow Heap Corruption

    Common Vulnerabilities and Exposures (CVEs)

    From first commits to big ships: Tune into our new open source podcast

    News & Updates

    Highlights

    News & Updates

    An iPad can’t run macOS, but it can run… Windows 11?

    April 22, 2025

    Apple won’t bring macOS to iPads, but one developer managed to install a version of…

    CVE-2025-7505 – Tenda FH451 HTTP POST Request Handler Stack-Based Buffer Overflow Vulnerability

    July 12, 2025

    CVE-2025-41232 – Spring Security Aspects Private Method Authorization Bypass

    May 21, 2025

    Apple is making a cheap MacBook — that’s bad news for Windows

    July 2, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.