feat: a lot of stuff

This commit is contained in:
Jacob Bachmann 2024-08-19 13:26:33 +02:00
parent e6a98be608
commit 2a9cfe768f
Signed by: bchmnn
GPG key ID: 732A612DAD28067D
11 changed files with 70 additions and 18 deletions

View file

@ -2,5 +2,5 @@
home.packages = [
(import ./git-clone-list.nix { inherit pkgs; })
(import ./nix-update.nix { inherit pkgs nixosConfig; })
];
] ++ (import ./pomodoro.nix { inherit pkgs; });
}

View file

@ -0,0 +1,20 @@
{ pkgs }:
let
pootis = ./pootis.m4a;
in
[
(pkgs.writeShellScriptBin
"pomostart"
''
clear
${pkgs.openpomodoro-cli}/bin/openpomodoro-cli start --wait $@
while ${pkgs.mpv}/bin/mpv ${pootis} > /dev/null 2>&1; do :; done
'')
(pkgs.writeShellScriptBin
"pomobreak"
''
clear
${pkgs.openpomodoro-cli}/bin/openpomodoro-cli break --wait $@
while ${pkgs.mpv}/bin/mpv ${pootis} > /dev/null 2>&1; do :; done
'')
]

Binary file not shown.