diff --git a/templates/Xresources.xscreensaver.j2 b/templates/Xresources.xscreensaver.j2 index 9521150..f6f962e 100644 --- a/templates/Xresources.xscreensaver.j2 +++ b/templates/Xresources.xscreensaver.j2 @@ -1,15 +1,15 @@ xscreensaver.mode: blank -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.timeout: {{ (xscreensaver_timeout / 60 / 60) | round(0,'floor') | int }}:{{ (xscreensaver_timeout / 60 % 60) | round(0,'floor') | int }}:{{ xscreensaver_timeout % 60 }} +xscreensaver.lockTimeout: {{ (xscreensaver_timeout / 60 / 60) | round(0,'floor') | int }}:{{ (xscreensaver_timeout / 60 % 60) | round(0,'floor') | int }}:{{ xscreensaver_timeout % 60 }} xscreensaver.passwdTimeout: 0:00:30 {% if xscreensaver_dpms %} xscreensaver.dpmsEnabled: True xscreensaver.dpmsQuickoffEnabled: True -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 }} +xscreensaver.dpmsStandby: {{ (xscreensaver_timeout / 60 / 60) | round(0,'floor') | int }}:{{ (xscreensaver_timeout / 60 % 60) | round(0,'floor') | int }}:{{ xscreensaver_timeout % 60 }} +xscreensaver.dpmsSuspend: {{ (xscreensaver_timeout / 60 / 60) | round(0,'floor') | int }}:{{ (xscreensaver_timeout / 60 % 60) | round(0,'floor') | int }}:{{ xscreensaver_timeout % 60 }} +xscreensaver.dpmsOff: {{ (xscreensaver_timeout / 60 / 60) | round(0,'floor') | int }}:{{ (xscreensaver_timeout / 60 % 60) | round(0,'floor') | int }}:{{ xscreensaver_timeout % 60 }} {% else %} xscreensaver.dpmsEnabled: False xscreensaver.dpmsQuickoffEnabled: False