Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
Это архивный репозиторий. Вы можете его клонировать или просматривать файлы, но не вносить изменения или открывать задачи/запросы на слияние.

21 строка
687B

  1. #!/bin/sh
  2. # https://www.reddit.com/r/i3wm/comments/6gznzp/lock_screensaver_and_power_saving_how_to_trigger/
  3. xset s off
  4. xset -dpms
  5. # xset s <n1> <n2>
  6. # n1: is the time it takes to launch the first signal that the screen will be
  7. # shutdown. Here we generally dim the screen a bit.
  8. # n2: is the time after n1 that we launch the second signal.
  9. # Here we lock the screen.
  10. # With n1 = 60 and n2 = 30 the screen will be dimmed 60 seconds after the last
  11. # time pc was not idle and 30 seconds later (90 seconds from last non-idle
  12. # state) the screen will be locked.
  13. xset s 0 0
  14. # xset dpms <n>
  15. # n: is the time from last non-idle state after which the screen will be shutdown.
  16. xset dpms 0 0 0