From 938e6e15c2a0d052e079f0ffdb7e66fb06b7cfb6 Mon Sep 17 00:00:00 2001 From: Markus Brechtel Date: Tue, 6 Aug 2019 17:36:43 +0200 Subject: [PATCH] xscreensaver floor not round --- templates/Xresources.xscreensaver.j2 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/Xresources.xscreensaver.j2 b/templates/Xresources.xscreensaver.j2 index e1db4fe..9521150 100644 --- a/templates/Xresources.xscreensaver.j2 +++ b/templates/Xresources.xscreensaver.j2 @@ -1,15 +1,15 @@ 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 {% if xscreensaver_dpms %} xscreensaver.dpmsEnabled: 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 %} xscreensaver.dpmsEnabled: False xscreensaver.dpmsQuickoffEnabled: False