Add automatic brightness dimming on low battery for laptops #4112
martin-joshy
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I think this is a better way to remind yourself to plug in your laptop. Currently in Omarchy, when the battery reaches the threshold, only a notification is sent and I tend to miss out on this notification if I am not at my desk or maybe for some other reason.
But dimming the brightness gives me better feedback, or maybe it is just an old habit from my Windows days. 🥲
Hope this simple solution/idea helps someone.
Steps
1. Copy and Modify the Battery Monitor Script
Copy the original battery monitor script:
Modify by adding the
reduce_brightnessfunction:2. Mask the Original Omarchy Battery Monitor
To avoid using the
omarchy-battery-monitorafter updates, mask it:3. Create the Service File
nvim ~/.config/systemd/user/my-battery-monitor.serviceAdd the following content:
Note: Replace
yourusernamewith your actual username.4. Create the Timer File
nvim ~/.config/systemd/user/my-battery-monitor.timerAdd the following content:
5. Enable and Start Your New Timer
systemctl --user daemon-reload systemctl --user enable --now my-battery-monitor.timerThat's it! Your battery monitor will now dim the brightness to 10% along with sending a notification when your battery drops to the threshold.
Beta Was this translation helpful? Give feedback.
All reactions