tv q: streamline dates and use RGB
This commit is contained in:
parent
895206d5c3
commit
bfa64c08ae
@ -34,22 +34,20 @@ let
|
|||||||
'
|
'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
q-isodate = /* sh */ ''
|
q-isodate = TZ: color: /* sh */ ''
|
||||||
|
TZ=${shell.escape TZ} \
|
||||||
${pkgs.coreutils}/bin/date \
|
${pkgs.coreutils}/bin/date \
|
||||||
'+[1m%Y-%m-%d[;30mT[;38;5;085m%H:%M[m:%S%:z'
|
'+[m%Y-%m-%d[38;5;243mT[;'${shell.escape color}'m%H:%M[38;5;243m:[m%S%:z'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
q-deudate = q-isodate "Europe/Berlin" "38;5;085";
|
||||||
|
|
||||||
# Singapore's red is #ED2E38
|
# Singapore's red is #ED2E38
|
||||||
q-sgtdate = /* sh */ ''
|
q-sgtdate = q-isodate "Asia/Singapore" "38;2;237;46;56";
|
||||||
TZ=Asia/Singapore \
|
|
||||||
${pkgs.coreutils}/bin/date \
|
|
||||||
'+[1m%Y-%m-%d[;30mT[;38;5;088m%H:%M[m:%S%:z'
|
|
||||||
'';
|
|
||||||
|
|
||||||
q-utcdate = /* sh */ ''
|
q-thadate = q-isodate "Asia/Bangkok" "38;5;226";
|
||||||
${pkgs.coreutils}/bin/date -u \
|
|
||||||
'+[1m%Y-%m-%d[;30mT[;38;5;065m%H:%M[m:%S%:z'
|
q-utcdate = q-isodate "UTC" "38;5;065";
|
||||||
'';
|
|
||||||
|
|
||||||
q-gitdir = /* sh */ ''
|
q-gitdir = /* sh */ ''
|
||||||
if test -d .git; then
|
if test -d .git; then
|
||||||
@ -148,7 +146,7 @@ pkgs.writeBashBin "q" ''
|
|||||||
export PATH=/var/empty
|
export PATH=/var/empty
|
||||||
${q-cal}
|
${q-cal}
|
||||||
${q-utcdate}
|
${q-utcdate}
|
||||||
${q-isodate}
|
${q-deudate}
|
||||||
${q-sgtdate}
|
${q-sgtdate}
|
||||||
(${q-gitdir}) &
|
(${q-gitdir}) &
|
||||||
(${q-intel_backlight}) &
|
(${q-intel_backlight}) &
|
||||||
|
Loading…
Reference in New Issue
Block a user