simplelocker
1.0.0
특정 이벤트에서 명령을 실행하는 작은 도구 (일정 기간의 유휴 기간 후에는 중단되기 전). 원래 i3lock과 같은 화면 사물함을 시작하도록 설계되었지만 모든 것을 실행할 수 있습니다.
Simplelocker는 다음과 같이 시작할 수 있습니다.
simplelocker -i <x> -c <cmd>
세션 후 실행하는 것은 <x> 초 동안 유휴 상태였습니다.
더 복잡한 예를 위해
simplelocker -i 60 -s -l -c i3lock
i3lock을 시작합니다 :
-i 60-s 시스템이 정지/수면 직전에-l DBUS 메소드 호출에 대한 응답으로 (실행중인 인스턴스 제어 참조) Simplelocker가 -l (예 : i3 구성 파일)으로 시작된 경우 simplelocker -r 로 제어 할 수 있습니다.
# daemon
simplelocker -l -s -i 60 -c i3lock
...
# remote control
simplelocker -r Lock # launches i3lock
simplelocker -r Disable # disables lock-on-idle BUT will still
# lock on sleep, `-r Lock` etc.
simplelocker -r Enable # (re)enables lock-on-idle. Still
# requires the daemon was launched with -i
옵션 :
Allowed options:
-s [ --sleep ] Run on sleep
-S [ --shutdown ] Run on shutdown
-i [ --idle ] arg Run on idle
-d [ --dbus ] arg Run on dbus method call
-b [ --dbus-disable ] arg Disable run-on-idle on this dbus method call
-e [ --dbus-enable ] arg Enable run-on-idle on this dbus method call
-c [ --cmd ] arg Command to run
-h [ --help ] produce help message
DBus options:
-l [ --listen ] Register a dbus service to receive method calls
for control
-D [ --dbus-name ] arg Dbus service name to bind
-P [ --dbus-path ] arg Dbus object path to register
-I [ --dbus-interface ] arg Dbus interface to register
Remote call options:
-r [ --remote ] arg Call dbus method (i.e., `-r Lock` to lock a
running instance)
TBC
Simplelocker는 배포판에 패키지되지 않았지만 구축하기가 간단합니다.
git clone --recurse-submodules https://github.com/jameseh96/simplelocker.git simplelocker
cd ./simplelocker
mkdir ./build
cd !$
cmake -DCMAKE_BUILD_TYPE=Release ..
make
make install