Super hacky shell wrapper around lemonbar that aims to poll as little as possible, minimising bar updates to the screen and reduce resource usage.
git clone https://mcol.xyz/code/lemontools
Log | Files | Refs | README | LICENSE

commit 414f0dcb127829acdc3bd12fdfe9f59c691c30ca
parent 0c420fcebe01b8ecc0ebbf04de5737b01988c3d3
Author: mcol <mcol@posteo.net>
Date:   Tue, 19 Feb 2019 16:26:25 +0000

add update_date and add it to sleep-update to refresh date when suspending across midnight

Diffstat:
Mmodules/date | 6++++++
Msleep-update | 1+
2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/modules/date b/modules/date @@ -8,6 +8,12 @@ # date_format : formatting passed to the date command to output the date # (default: '%a, %d %b') + +update_date() { + send "date='${date_pre}$(eval echo $date_format)${date_post}'" +} + + _date() { get_clicks date [[ -z "$date_format" ]] && diff --git a/sleep-update b/sleep-update @@ -12,6 +12,7 @@ post(){ do echo update_battery > $i echo update_clock > $i + echo update_date > $i done fi }