화면보호기, 화면꺼짐을 쉽게 on/off

안녕하세요.

mplayer같은것 보면 프로그램 시작시에
스크린세이버를 disable하는 것처럼 보이던데요…
그러고 종료하면 다시 스크린세이버를 enable하던것 같던데
제가 맞나 모르겠습니다…

이런거 참 좋은 아이디어 같은데
이걸 좀 쉽게 적용할 수 없나 해서요…

즉, 단축키로 화면보호기 혹은 화면꺼짐을 on/off하게 할수 있을까요?

인터넷으로 오래동안 키보드/마우스 입력없이
뭔가를 보고 있으면 계속 화면이 꺼져서 번거롭네요.

물론 설정을 변경하면 되지만…
그때마다 변경하기 너무 귀찮고, 매번 기억하기도 쉽지 않고…
변경했다가 돌려놓기도 싫고…

좋은 방법 알려주시면 감사하겠습니다.

활성화 [code:1yxpw0p1]gconftool /apps/gnome-screensaver/idle_activation_enabled --set --type=bool true[/code:1yxpw0p1]
비활성화 [code:1yxpw0p1]gconftool /apps/gnome-screensaver/idle_activation_enabled --set --type=bool true[/code:1yxpw0p1]
현재 상태 보기 [code:1yxpw0p1]gconftool /apps/gnome-screensaver/idle_activation_enabled --get[/code:1yxpw0p1]

xbindkeys 명령을 이용해서 단축키로 쓰시거나 그놈 패널에 단축 아이콘으로 등록해서 쓰시면 되지 않을까 생각합니다.

참고로 활성화, 비활성화가 아닌 즉시 끄고 켜는 명령은 다음과 같습니다.

[code:1yxpw0p1]~$ gnome-screensaver-command --help
Usage:
gnome-screensaver-command [OPTION...]

Help Options:
-h, --help Show help options

Application Options:
–exit Causes the screensaver to exit gracefully
-q, --query Query the state of the screensaver
-t, --time Query the length of time the screensaver has been active
-l, --lock Tells the running screensaver process to lock the screen immediately
-c, --cycle If the screensaver is active then switch to another graphics demo
-a, --activate Turn the screensaver on (blank the screen)
-d, --deactivate If the screensaver is active then deactivate it (un-blank the screen)[/b]
-p, --poke Poke the running screensaver to simulate user activity
-i, --inhibit Inhibit the screensaver from activating. Command blocks while inhibit is active.
-n, --application-name The calling application that is inhibiting the screensaver
-r, --reason The reason for inhibiting the screensaver
-V, --version Version of this application
[/code:1yxpw0p1]

[b:1yxpw0p1]-a, -d, -l[/b:1yxpw0p1]

Mait님 답변 감사합니다.

딱 제가 찾던 방법이군요.

그런데 아마도 비활성화의 맨 마지막은 true가 아니고 false가 맞겠지요?

감사합니다.

[quote="yanagi":3cv16gon]Mait님 답변 감사합니다.

딱 제가 찾던 방법이군요.

그런데 아마도 비활성화의 맨 마지막은 true가 아니고 false가 맞겠지요?

감사합니다.[/quote:3cv16gon]

예, 맞습니다.

정정합니다.

[quote="Mait":pfq4rwt5]활성화 [code:pfq4rwt5]gconftool /apps/gnome-screensaver/idle_activation_enabled --set --type=bool true[/code:pfq4rwt5]
비활성화 [code:pfq4rwt5]gconftool /apps/gnome-screensaver/idle_activation_enabled --set --type=bool false[/code:pfq4rwt5]
현재 상태 보기 [code:pfq4rwt5]gconftool /apps/gnome-screensaver/idle_activation_enabled --get[/code:pfq4rwt5]

xbindkeys 명령을 이용해서 단축키로 쓰시거나 그놈 패널에 단축 아이콘으로 등록해서 쓰시면 되지 않을까 생각합니다.

참고로 활성화, 비활성화가 아닌 즉시 끄고 켜는 명령은 다음과 같습니다.

[code:pfq4rwt5]~$ gnome-screensaver-command --help
Usage:
gnome-screensaver-command [OPTION...]

Help Options:
-h, --help Show help options

Application Options:
–exit Causes the screensaver to exit gracefully
-q, --query Query the state of the screensaver
-t, --time Query the length of time the screensaver has been active
-l, --lock Tells the running screensaver process to lock the screen immediately
-c, --cycle If the screensaver is active then switch to another graphics demo
-a, --activate Turn the screensaver on (blank the screen)
-d, --deactivate If the screensaver is active then deactivate it (un-blank the screen)[/b]
-p, --poke Poke the running screensaver to simulate user activity
-i, --inhibit Inhibit the screensaver from activating. Command blocks while inhibit is active.
-n, --application-name The calling application that is inhibiting the screensaver
-r, --reason The reason for inhibiting the screensaver
-V, --version Version of this application
[/code:pfq4rwt5]

[b:pfq4rwt5]-a, -d, -l[/b:pfq4rwt5][/quote:pfq4rwt5]