Browse Source

xscreensaver floor not round

master
Markus Brechtel 5 years ago
parent
commit
938e6e15c2
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      templates/Xresources.xscreensaver.j2

+ 5
- 5
templates/Xresources.xscreensaver.j2 View File

@@ -1,15 +1,15 @@
xscreensaver.mode: blank xscreensaver.mode: blank


xscreensaver.timeout: {{ (xscreensaver_timeout / 60 / 60) | round | int }}:{{ (xscreensaver_timeout / 60 % 60) | round | int }}:{{ xscreensaver_timeout % 60 }}
xscreensaver.lockTimeout: {{ (xscreensaver_timeout / 60 / 60) | round | int }}:{{ (xscreensaver_timeout / 60 % 60) | round | int }}:{{ xscreensaver_timeout % 60 }}
xscreensaver.timeout: {{ (xscreensaver_timeout / 60 / 60) | floor | int }}:{{ (xscreensaver_timeout / 60 % 60) | floor | int }}:{{ xscreensaver_timeout % 60 }}
xscreensaver.lockTimeout: {{ (xscreensaver_timeout / 60 / 60) | floor | int }}:{{ (xscreensaver_timeout / 60 % 60) | floor | int }}:{{ xscreensaver_timeout % 60 }}
xscreensaver.passwdTimeout: 0:00:30 xscreensaver.passwdTimeout: 0:00:30


{% if xscreensaver_dpms %} {% if xscreensaver_dpms %}
xscreensaver.dpmsEnabled: True xscreensaver.dpmsEnabled: True
xscreensaver.dpmsQuickoffEnabled: True xscreensaver.dpmsQuickoffEnabled: True
xscreensaver.dpmsStandby: {{ (xscreensaver_timeout / 60 / 60) | round | int }}:{{ (xscreensaver_timeout / 60 % 60) | round | int }}:{{ xscreensaver_timeout % 60 }}
xscreensaver.dpmsSuspend: {{ (xscreensaver_timeout / 60 / 60) | round | int }}:{{ (xscreensaver_timeout / 60 % 60) | round | int }}:{{ xscreensaver_timeout % 60 }}
xscreensaver.dpmsOff: {{ (xscreensaver_timeout / 60 / 60) | round | int }}:{{ (xscreensaver_timeout / 60 % 60) | round | int }}:{{ xscreensaver_timeout % 60 }}
xscreensaver.dpmsStandby: {{ (xscreensaver_timeout / 60 / 60) | floor | int }}:{{ (xscreensaver_timeout / 60 % 60) | floor | int }}:{{ xscreensaver_timeout % 60 }}
xscreensaver.dpmsSuspend: {{ (xscreensaver_timeout / 60 / 60) | floor | int }}:{{ (xscreensaver_timeout / 60 % 60) | floor | int }}:{{ xscreensaver_timeout % 60 }}
xscreensaver.dpmsOff: {{ (xscreensaver_timeout / 60 / 60) | floor | int }}:{{ (xscreensaver_timeout / 60 % 60) | floor | int }}:{{ xscreensaver_timeout % 60 }}
{% else %} {% else %}
xscreensaver.dpmsEnabled: False xscreensaver.dpmsEnabled: False
xscreensaver.dpmsQuickoffEnabled: False xscreensaver.dpmsQuickoffEnabled: False


Loading…
Cancel
Save