mirror of
https://github.com/kmein/niveum
synced 2026-03-20 20:01:08 +01:00
feat(todo.txt): reactivate and add to status bar
This commit is contained in:
@@ -7,17 +7,18 @@ let
|
|||||||
echo "$HOME/cloud/Dropbox/todo"
|
echo "$HOME/cloud/Dropbox/todo"
|
||||||
fi
|
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_DIR="$(${get-todo-dir})"
|
||||||
|
|
||||||
export TODO_FILE="$TODO_DIR/todo.txt"
|
export TODO_FILE="$TODO_DIR/todo.txt"
|
||||||
export DONE_FILE="$TODO_DIR/done.txt"
|
export DONE_FILE="$TODO_DIR/done.txt"
|
||||||
export REPORT_FILE="$TODO_DIR/report.txt"
|
export REPORT_FILE="$TODO_DIR/report.txt"
|
||||||
'';
|
'';
|
||||||
in {
|
|
||||||
environment = {
|
environment = {
|
||||||
systemPackages = [ pkgs.todo-txt-cli ];
|
systemPackages = [ pkgs.todo-txt-cli ];
|
||||||
shellAliases.t = "todo.sh -d ${todo-txt-config}";
|
shellAliases.t = "todo.sh";
|
||||||
variables.TODOTXT_DEFAULT_ACTION = "ls";
|
variables.TODOTXT_DEFAULT_ACTION = "ls";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
name = "none";
|
name = "none";
|
||||||
overrides = {
|
overrides = {
|
||||||
time = "📅 ";
|
time = "📅 ";
|
||||||
music = "🎵 ";
|
music = "🎵";
|
||||||
music_play = "▶";
|
music_play = "▶";
|
||||||
music_pause = "";
|
music_pause = "";
|
||||||
music_next = "⏭";
|
music_next = "⏭";
|
||||||
@@ -35,13 +35,13 @@
|
|||||||
bat_discharging = "🔋";
|
bat_discharging = "🔋";
|
||||||
bat_quarter = "🔋";
|
bat_quarter = "🔋";
|
||||||
bat_three_quarters = "🔋";
|
bat_three_quarters = "🔋";
|
||||||
net_up = "🌐 ";
|
net_up = "🌐";
|
||||||
net_down = "❎ ";
|
net_down = "❎";
|
||||||
net_wireless = "📶 ";
|
net_wireless = "📶";
|
||||||
net_wired = "🌐 ";
|
net_wired = "🌐";
|
||||||
net_vpn = "🛡 ";
|
net_vpn = "🛡 ";
|
||||||
toggle_off = "❌ ";
|
toggle_off = "👎";
|
||||||
toggle_on = "✅ ";
|
toggle_on = "👍";
|
||||||
volume_full = "🔊 ";
|
volume_full = "🔊 ";
|
||||||
volume_half = "🔉 ";
|
volume_half = "🔉 ";
|
||||||
volume_muted = "⛔";
|
volume_muted = "⛔";
|
||||||
@@ -78,6 +78,13 @@
|
|||||||
${pkgs.newsboat}/bin/newsboat -x reload && ${pkgs.libnotify}/bin/notify-send newsboat "Feeds updated."
|
${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";
|
block = "net";
|
||||||
device = wifi-interface;
|
device = wifi-interface;
|
||||||
|
|||||||
Reference in New Issue
Block a user