Skip to content

About

Tools to automate night mode for Phosh

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Night Manager

Purpose:

  • To keep your FLX1s from disturbing your sleep

Done:

  • Evening time and morning time are systemd timers for efficiency and flexibility
  • At set evening time:
    • Store current states of anything being changed (for restoration in the morning)
    • Set Feedback Profile to Quiet (vibration only) or Silent as configured
    • Optionally set Theme Style to Dark
    • Optionally change Legacy (gtk3) Theme (such as adw-gtk3 - see Installation note!)
    • Optionally change Accent Color
    • Optionally change Icon Theme (perfect with Adwaita-colors!)
    • Optionally enable Ambient Light Sensor (automatic brightness adjustment)
    • Optionally enable Night Light
  • At set morning time:
    • If Feedback Profile change was configured, restore original
    • If Theme Style change was configured, restore original
    • If Legacy (gtk3) Theme change was configured, restore original
    • If Accent Color change was configured, restore original
    • If Icon Theme change was configured, restore original
    • If Ambient Light Sensor was configured, restore original
    • If Night Light was configured, restore original

To Do:

  • Have option to schedule changes separately and/or follow GNOME automatic Night Light time

Installation:

wget -O nightmanager_latest.deb https://github.com/ajdunevent/NightManager/releases/latest/download/nightmanager_latest.deb
sudo apt install ./nightmanager_latest.deb
  • Note: to change the theme on legacy (gtk3) flatpaks, you'll want to install the gtk3 theme flatpak.
    • For example: flatpak install flathub org.gtk.Gtk3theme.adw-gtk3 org.gtk.Gtk3theme.adw-gtk3-dark

Configuration:

  • Launch the (beta) "NightManager Configuration" from your app launcher.
  • Or do things the old way:
    • Edit ~/.config/nightmanager/nightmanager.conf to set the desired nighttime mode behaviors.
    • Set nighttime enable time(s) using OnCalendar line(s) in ~/.config/systemd/user/nightmanager-on.timer.d/10-override.conf
    • Set nighttime disable time(s) using OnCalendar line(s) in ~/.config/systemd/user/nightmanager-off.timer.d/10-override.conf
    • Run: systemctl --user daemon-reload && systemctl --user restart nightmanager-on.timer nightmanager-off.timer

Uninstallation:

sudo apt remove nightmanager

Shout out

  • FuriLabs for making the FLX1s, the first mobile Linux phone many of us have ever been able to comfortably (enjoyably even!) daily drive.

About

Tools to automate night mode for Phosh

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages