Gobatmon은 Linux 시스템을위한 간단한 배터리 레벨 모니터링 데몬입니다.
노트북의 배터리의 현재 충전 수준을 주시하고 데스크탑 알림을 트리거하여 배터리가 낮은 경우 경고합니다.
Gobatmon은 CPU주기를 보존하고 배터리 수명을 보존하기위한 리소스가 매우 적습니다.
시스템 요구 사항 :
swaync , dunst 등)데스크탑 환경 (XFCE/GNOME/PLASMA 등)을 사용하는 경우이 소프트웨어가 필요하지 않을 수 있습니다.
Gobatmon은 DBU를 사용하여 데스크탑 알림을 발송합니다.
Gobatmon의 행동은 CommandLine 인수를 사용하여 완전히 구성 할 수 있습니다.
gobatmon 실행하여 실행하십시오. Gobatmon은 지속적으로 실행됩니다.
다음 옵션을 구성 할 수 있습니다.
gobatmon [OPTIONS]
Options:
--normal-warning-threshold uint
Threshold percentage below which a normal low battery warning is triggered (default 20)
--critical-warning-threshold uint
Threshold percentage below which a critical low battery warning is triggered (default 10)
--normal-warning-reminder-timeout uint
Timeout in seconds after which a normal low battery warning is repeated (default 600)
--critical-warning-reminder-timeout uint
Timeout in seconds after which a critical low battery warning is repeated (default 300)
--disable-icons (default false)
Do not show icons in warning notifications
--normal-warning-icon-name string
Name of the icon to use for normal low battery warning notifications (default "battery-low")
--critical-warning-icon-name string
Name of the icon to use for critical low battery warning notifications (default "battery-caution")
--poll-rate uint
Poll rate for checking battery status in seconds (default 60)
--version
Show version information and exit
--help
Show help message and exit
배터리 또는 일반 경고 임계 값 이상을 충전하는 동안 Gobatmon은 알림을 표시하지 않으며 배터리 상태를 조사하여 변경 사항을 확인합니다.
배터리 전원에서 및 일반/임계 경고 임계 값 (기본적으로 20%/10%) 이하로 실행될 때 Gobatmon은 배터리 상태를 확인하고 각각 10 분/5 분마다 (기본적으로) 알림을 알려줍니다.
그게 다야.
Gobatmon은 AUR에서 Gobatmon으로 제공됩니다.
? 앞으로 추가 될 예정입니다.
최신 릴리스에서 사전 컴파일 된 바이너리 ( gobatmon )를 다운로드하십시오. 또는 GO를 설치하고 직접 구축하십시오.
이진을 저장하고 시작시 시작시 시작하도록 창 관리자를 구성하여 다음을 시작 스크립트에 넣습니다.
/path/to/gobatmon & 요구 사항 빌드 :
go로컬로 구축하려면 달리기 :
make build 이것은 gobatmon 실행 파일을 생성합니다.
내장 된 파일 정리, 실행 :
make clean main 에 커밋하기 전에 gofmt 사용하여 소스 코드를 올바르게 포맷하십시오.
사전 커밋 스크립트가 제공되면 다음 명령으로 로컬 저장소에서 활성화 할 수 있습니다.
ln -sr .pre-commit .git/hooks/pre-commit