PTT
Push To Talk Postes, Télégraphes et Téléphones Petit Travail Tranquille
This commit is contained in:
parent
b1b03e827f
commit
f9849dfcfa
7 changed files with 111 additions and 9 deletions
|
@ -542,12 +542,10 @@ class TaskWarriorProvider(StatefulSection, InotifyUpdater):
|
|||
if urgency > 0:
|
||||
total += urgency
|
||||
t = Text()
|
||||
maxi = round(maxi)
|
||||
t.append(f"{maxi}")
|
||||
t.append(f"{maxi:.1f}")
|
||||
|
||||
if self.showTotal:
|
||||
total = round(total)
|
||||
t.append(f" | {total}")
|
||||
t.append(f" | {total:.1f}")
|
||||
|
||||
return t
|
||||
|
||||
|
|
6
config/systemd/user/tasksync.service
Normal file
6
config/systemd/user/tasksync.service
Normal file
|
@ -0,0 +1,6 @@
|
|||
[Unit]
|
||||
Description=Taskwarrior synchronisation
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/task sync
|
10
config/systemd/user/tasksync.timer
Normal file
10
config/systemd/user/tasksync.timer
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Taskwarrior synchronisation timer
|
||||
|
||||
[Timer]
|
||||
OnBootSec=2m
|
||||
OnUnitActiveSec=5m
|
||||
Unit=tasksync.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
1
config/systemd/user/timers.target.wants/tasksync.timer
Symbolic link
1
config/systemd/user/timers.target.wants/tasksync.timer
Symbolic link
|
@ -0,0 +1 @@
|
|||
/home/geoffrey/.config/systemd/user/tasksync.timer
|
Loading…
Add table
Add a link
Reference in a new issue