How To Get Battery Notifications on Arch Linux

Опубликовано: 07 Октябрь 2022
на канале: Eric Murphy
12,756
430

Do you miss getting low battery alerts on your laptop from the sad old days when you used Windows or Ubuntu? Do you wish you could get notified before your computer dies in a window manager? It's actually very easy to set up, as I'll show you in this video. It involves a couple of bash scripts, a cron job, some udev rules, and let me show you how it's done...

My video about notifications with dunst:    • How to Set Up and Configure Notificat...  
Battery notify script: https://github.com/ericmurphyxyz/dotf...
Charging/discharging notify script: https://github.com/ericmurphyxyz/dotf...
udev rules: https://wiki.archlinux.org/title/udev...
Battery icons: https://materialdesignicons.com/

Watch my videos on Odysee: https://odysee.com/@ericnmurphy
My website: https://ericmurphy.xyz
My GitHub: https://github.com/ericmurphyxyz

0:00 Intro
1:20 Installing dependencies
1:53 Creating the low battery/full battery script
4:01 Getting icons for the notifications
4:38 Finishing the low battery/full battery script
5:19 Setting the script as a cron job
5:59 Giving the script executable permissions
6:13 Setting display variables
7:07 Checking to see if the notification has been displayed already
8:51 Notifications when power is plugged in or unglugged
9:40 Setting udev rules
12:34 Notification sounds
13:05 Conclusion


Смотрите видео How To Get Battery Notifications on Arch Linux онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Eric Murphy 07 Октябрь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 12,756 раз и оно понравилось 430 людям.