1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

feat(todo.txt): reactivate and add to status bar

This commit is contained in:
Kierán Meinhardt
2020-04-23 13:15:34 +02:00
parent e21eb7887c
commit 49cd307026
2 changed files with 18 additions and 10 deletions

View File

@@ -7,17 +7,18 @@ let
echo "$HOME/cloud/Dropbox/todo"
fi
'';
todo-txt-config = pkgs.writeText "todo.cfg" ''
in {
home-manager.users.me.home.file.".todo/config".text = ''
export TODO_DIR="$(${get-todo-dir})"
export TODO_FILE="$TODO_DIR/todo.txt"
export DONE_FILE="$TODO_DIR/done.txt"
export REPORT_FILE="$TODO_DIR/report.txt"
'';
in {
environment = {
systemPackages = [ pkgs.todo-txt-cli ];
shellAliases.t = "todo.sh -d ${todo-txt-config}";
shellAliases.t = "todo.sh";
variables.TODOTXT_DEFAULT_ACTION = "ls";
};
}

View File

@@ -21,7 +21,7 @@
name = "none";
overrides = {
time = "📅 ";
music = "🎵 ";
music = "🎵";
music_play = "";
music_pause = "";
music_next = "";
@@ -35,13 +35,13 @@
bat_discharging = "🔋";
bat_quarter = "🔋";
bat_three_quarters = "🔋";
net_up = "🌐 ";
net_down = " ";
net_wireless = "📶 ";
net_wired = "🌐 ";
net_up = "🌐";
net_down = "";
net_wireless = "📶";
net_wired = "🌐";
net_vpn = "🛡 ";
toggle_off = " ";
toggle_on = " ";
toggle_off = "👎";
toggle_on = "👍";
volume_full = "🔊 ";
volume_half = "🔉 ";
volume_muted = "";
@@ -78,6 +78,13 @@
${pkgs.newsboat}/bin/newsboat -x reload && ${pkgs.libnotify}/bin/notify-send newsboat "Feeds updated."
'';
}
{
block = "custom";
interval = 60;
command = pkgs.writers.writeDash "tasks" ''
${pkgs.todo-txt-cli}/bin/todo.sh list | tail -n 1 | ${pkgs.gawk}/bin/awk '{ print " " $2 }'
'';
}
{
block = "net";
device = wifi-interface;