mirror of
https://github.com/kmein/niveum
synced 2026-03-18 02:51:08 +01:00
feat: friendship ended with todo.txt
This commit is contained in:
@@ -244,7 +244,6 @@ in {
|
|||||||
./theming.nix
|
./theming.nix
|
||||||
./tmux.nix
|
./tmux.nix
|
||||||
./tor.nix
|
./tor.nix
|
||||||
./todo-txt.nix
|
|
||||||
./traadfri.nix
|
./traadfri.nix
|
||||||
./unclutter.nix
|
./unclutter.nix
|
||||||
./version.nix
|
./version.nix
|
||||||
|
|||||||
@@ -11,7 +11,6 @@
|
|||||||
vim-colors-paramount = pkgs.callPackage <niveum/packages/vimPlugins/vim-colors-paramount.nix> { };
|
vim-colors-paramount = pkgs.callPackage <niveum/packages/vimPlugins/vim-colors-paramount.nix> { };
|
||||||
vim-256noir = pkgs.callPackage <niveum/packages/vimPlugins/vim-256noir.nix> { };
|
vim-256noir = pkgs.callPackage <niveum/packages/vimPlugins/vim-256noir.nix> { };
|
||||||
icalendar-vim = pkgs.callPackage <niveum/packages/vimPlugins/icalendar-vim.nix> { };
|
icalendar-vim = pkgs.callPackage <niveum/packages/vimPlugins/icalendar-vim.nix> { };
|
||||||
todo-txt-vim = pkgs.callPackage <niveum/packages/vimPlugins/todo-txt-vim.nix> { };
|
|
||||||
jq-vim = pkgs.callPackage <niveum/packages/vimPlugins/jq-vim.nix> { };
|
jq-vim = pkgs.callPackage <niveum/packages/vimPlugins/jq-vim.nix> { };
|
||||||
vim-fsharp = pkgs.callPackage <niveum/packages/vimPlugins/vim-fsharp.nix> { };
|
vim-fsharp = pkgs.callPackage <niveum/packages/vimPlugins/vim-fsharp.nix> { };
|
||||||
vim-reason-plus = pkgs.callPackage <niveum/packages/vimPlugins/vim-reason-plus.nix> { };
|
vim-reason-plus = pkgs.callPackage <niveum/packages/vimPlugins/vim-reason-plus.nix> { };
|
||||||
@@ -65,7 +64,6 @@
|
|||||||
jq-vim
|
jq-vim
|
||||||
purescript-vim
|
purescript-vim
|
||||||
rust-vim
|
rust-vim
|
||||||
todo-txt-vim
|
|
||||||
typescript-vim
|
typescript-vim
|
||||||
vim-fsharp
|
vim-fsharp
|
||||||
vim-javascript
|
vim-javascript
|
||||||
|
|||||||
@@ -1,25 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
let
|
|
||||||
get-todo-dir = pkgs.writers.writeDash "git-toplevel-todo" ''
|
|
||||||
if GIT_TOPLEVEL=$(${pkgs.git}/bin/git rev-parse --show-toplevel 2>/dev/null); then
|
|
||||||
echo "$GIT_TOPLEVEL/.todo"
|
|
||||||
else
|
|
||||||
echo "$HOME/cloud/Dropbox/todo"
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
in {
|
|
||||||
home-manager.users.me.home.file.".todo/config".text = ''
|
|
||||||
# export TODO_DIR="$(${get-todo-dir})"
|
|
||||||
export TODO_DIR="$HOME/cloud/Dropbox/todo"
|
|
||||||
|
|
||||||
export TODO_FILE="$TODO_DIR/todo.txt"
|
|
||||||
export DONE_FILE="$TODO_DIR/done.txt"
|
|
||||||
export REPORT_FILE="$TODO_DIR/report.txt"
|
|
||||||
'';
|
|
||||||
|
|
||||||
environment = {
|
|
||||||
systemPackages = [ pkgs.todo-txt-cli ];
|
|
||||||
shellAliases.t = "todo.sh";
|
|
||||||
variables.TODOTXT_DEFAULT_ACTION = "ls";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -91,21 +91,6 @@ in {
|
|||||||
units = "metric";
|
units = "metric";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
{
|
|
||||||
block = "custom";
|
|
||||||
interval = 20;
|
|
||||||
command = pkgs.writers.writeDash "tasks" ''
|
|
||||||
${pkgs.todo-txt-cli}/bin/todo.sh list '(.)' \
|
|
||||||
| tail -n 1 \
|
|
||||||
| ${pkgs.gawk}/bin/awk '{ print "⏳ " $2 "/" $4 }'
|
|
||||||
'';
|
|
||||||
on_click = let sleepSeconds = 2.5;
|
|
||||||
in pkgs.writers.writeDash "show-tasks" ''
|
|
||||||
${pkgs.st}/bin/st -c floating -e ${pkgs.dash}/bin/dash -c "${pkgs.todo-txt-cli}/bin/todo.sh list && sleep ${
|
|
||||||
toString sleepSeconds
|
|
||||||
}"
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
block = "custom";
|
block = "custom";
|
||||||
interval = 30;
|
interval = 30;
|
||||||
|
|||||||
@@ -135,7 +135,6 @@ if has("autocmd")
|
|||||||
autocmd bufnewfile,bufread urls,config set filetype=conf
|
autocmd bufnewfile,bufread urls,config set filetype=conf
|
||||||
autocmd bufnewfile,bufread *.elm packadd elm-vim | set filetype=elm shiftwidth=4
|
autocmd bufnewfile,bufread *.elm packadd elm-vim | set filetype=elm shiftwidth=4
|
||||||
autocmd bufnewfile,bufread *.dhall packadd dhall-vim | set filetype=dhall
|
autocmd bufnewfile,bufread *.dhall packadd dhall-vim | set filetype=dhall
|
||||||
autocmd bufnewfile,bufread *todo.txt packadd todo.txt-vim | set filetype=todo.txt
|
|
||||||
autocmd filetype haskell packadd haskell-vim | set keywordprg=hoogle\ -i
|
autocmd filetype haskell packadd haskell-vim | set keywordprg=hoogle\ -i
|
||||||
autocmd filetype javascript packadd vim-javascript
|
autocmd filetype javascript packadd vim-javascript
|
||||||
autocmd filetype make setlocal noexpandtab
|
autocmd filetype make setlocal noexpandtab
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
{ vimUtils, fetchFromGitHub }:
|
|
||||||
vimUtils.buildVimPluginFrom2Nix {
|
|
||||||
name = "todo.txt-vim";
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "freitass";
|
|
||||||
repo = "todo.txt-vim";
|
|
||||||
rev = "6845221d45bd62e604c2024bc511a56e79d1118b";
|
|
||||||
sha256 = "08m9q5f2pz6gjp0vkmm7glfsrbnldxi1j59dm5d7any6y96xxd6v";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user