powernot
1.0.0
i3窗口管理器的電源通知工具。
您可以通過手動編輯powernot文件來配置某些設置。
PowerNot有4個模式。
此模式與剩餘電池的百分比進行切換處理。
SAFE=30
DANGER=15
CRITICAL=5
TIMER=5
CHARGING_TIMER=10
SAFE_TIMER=5
DANGER_TIMER=2
CRITICAL_TIMER=1
每個模式都有不同的睡眠計時器。您可以通過編輯powernot文件來更改它們。
CRITICAL_HIBERNATE=1
SystemD的用戶模式可用於在後台自動啟動和運行powernot 。
首先,在~/.config/systemd/user/powernot.service中創建一個service文件。確保用您的實際用戶名替換USERNAME 。
$ cat ~/.config/systemd/user/powernot.service
[Unit]
Description=powernot
[Service]
ExecStart=/home/USERNAME/git/powernot/powernot
[Install]
WantedBy=default.target
如果您希望該服務被自動啟用,則啟用服務:
systemctl --user enable powernot.service
您還可以手動啟動該服務(如果尚未自動啟動):
systemctl --user start powernot.service
要檢查服務的當前狀態,請運行:
systemctl --user status powernot.service