update wtf dashboard
This commit is contained in:
parent
5fdd506356
commit
e7432aa37a
1 changed files with 6 additions and 22 deletions
|
@ -37,14 +37,13 @@ let
|
||||||
|
|
||||||
taskNextWeek = pkgs.writers.writeDash "taskweek" ''
|
taskNextWeek = pkgs.writers.writeDash "taskweek" ''
|
||||||
${pkgs.taskwarrior}/bin/task \
|
${pkgs.taskwarrior}/bin/task \
|
||||||
export \
|
export "(due.before:today+7days and due.after:today)" \
|
||||||
status:pending and \( due.before:7days and due.after:today \) \
|
|
||||||
| ${pkgs.jq}/bin/jq '[.[] | { Day: .due, ID: .id, Description: .description | sub("\n.*";"")} ] | sort_by(.Day)' \
|
| ${pkgs.jq}/bin/jq '[.[] | { Day: .due, ID: .id, Description: .description | sub("\n.*";"")} ] | sort_by(.Day)' \
|
||||||
| ${pkgs.miller}/bin/mlr --ijson --opprint put '$Day = strftime(strptime($Day,"%Y%m%dT%H%M%SZ")'$(date +%z)'00,"%a")'
|
| ${pkgs.miller}/bin/mlr --ijson --opprint put '$Day = strftime(strptime($Day,"%Y%m%dT%H%M%SZ")'$(date +%z)'00,"%a")'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
activeTasks = pkgs.writers.writeBash "active-tasks" ''
|
activeTasks = pkgs.writers.writeBash "active-tasks" ''
|
||||||
${pkgs.taskwarrior}/bin/task export +checklist status:pending +READY | \
|
${pkgs.taskwarrior}/bin/task export status:pending and "( +ACTIVE or +DUETODAY or +TODAY or +OVERDUE )" | \
|
||||||
${pkgs.jq}/bin/jq \
|
${pkgs.jq}/bin/jq \
|
||||||
--raw-output '
|
--raw-output '
|
||||||
sort_by(.description) | reverse |
|
sort_by(.description) | reverse |
|
||||||
|
@ -52,9 +51,6 @@ let
|
||||||
"[ \( .id ) ] \( .description )"
|
"[ \( .id ) ] \( .description )"
|
||||||
'
|
'
|
||||||
echo
|
echo
|
||||||
${pkgs.taskwarrior}/bin/task export \
|
|
||||||
+ACTIVE status:pending \
|
|
||||||
| ${pkgs.jq}/bin/jq --raw-output '.[] | "⇒ \(.id) \(.description)"'
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
userHighlight = map ({ user, ... }: user)
|
userHighlight = map ({ user, ... }: user)
|
||||||
|
@ -96,17 +92,6 @@ let
|
||||||
modules = {
|
modules = {
|
||||||
inherit cmdRunner;
|
inherit cmdRunner;
|
||||||
|
|
||||||
# not working: had no time to investigate
|
|
||||||
#digitalclock = args@{ top, left, ... }:
|
|
||||||
# wtfModule ({
|
|
||||||
# type = "digitalclock";
|
|
||||||
# title = "";
|
|
||||||
# color = "white";
|
|
||||||
# font = "bigfont";
|
|
||||||
# hourFormat = 24;
|
|
||||||
# refreshInterval = 1;
|
|
||||||
# } // args);
|
|
||||||
|
|
||||||
digitalclock = args@{ top, left, ... }:
|
digitalclock = args@{ top, left, ... }:
|
||||||
cmdRunner ({
|
cmdRunner ({
|
||||||
cmd = pkgs.writers.writeDash "clock" ''
|
cmd = pkgs.writers.writeDash "clock" ''
|
||||||
|
@ -128,7 +113,7 @@ let
|
||||||
};
|
};
|
||||||
locations = {
|
locations = {
|
||||||
Berlin = "Europe/Berlin";
|
Berlin = "Europe/Berlin";
|
||||||
Brazil = "America/Fortaleza";
|
India = "Asia/Kolkata";
|
||||||
Wellington = "Pacific/Auckland";
|
Wellington = "Pacific/Auckland";
|
||||||
};
|
};
|
||||||
sort = "alphabetical";
|
sort = "alphabetical";
|
||||||
|
@ -305,13 +290,12 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
rates = wtfModule {
|
rates = wtfModule {
|
||||||
type = "exchangerates";
|
type = "yfinance";
|
||||||
top = 3;
|
top = 3;
|
||||||
left = 0;
|
left = 0;
|
||||||
title = "rates";
|
title = "rates";
|
||||||
rates.IDR = [ "EUR" ];
|
symbols = [ "EURUSD=X" "EURNZD=X" ];
|
||||||
rates.EUR = [ "IDR" ];
|
refreshInterval = 60;
|
||||||
refreshInterval = 3600;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
weather = prettyweather {
|
weather = prettyweather {
|
||||||
|
|
Loading…
Reference in a new issue