feat: a lot of stuff
This commit is contained in:
parent
e6a98be608
commit
2a9cfe768f
11 changed files with 70 additions and 18 deletions
|
|
@ -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; });
|
||||
}
|
||||
|
|
|
|||
20
users/gandalf/modules/scripts/pomodoro.nix
Normal file
20
users/gandalf/modules/scripts/pomodoro.nix
Normal 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
|
||||
'')
|
||||
]
|
||||
BIN
users/gandalf/modules/scripts/pootis.m4a
Normal file
BIN
users/gandalf/modules/scripts/pootis.m4a
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue