feat(mpv): add touch and mouse gesture scripts
This commit is contained in:
parent
ae75463df5
commit
12cec706fa
4 changed files with 71 additions and 5 deletions
home/mpv/scripts
|
@ -2,7 +2,12 @@
|
|||
buildLua =
|
||||
pkgs.callPackage
|
||||
"${pkgs.path}/pkgs/applications/video/mpv/scripts/buildLua.nix" {};
|
||||
|
||||
buildLuaScript = file:
|
||||
pkgs.callPackage file {inherit buildLua;};
|
||||
in
|
||||
pkgs.recurseIntoAttrs {
|
||||
modernx = pkgs.callPackage ./modernx.nix {inherit buildLua;};
|
||||
modernx = buildLuaScript ./modernx.nix;
|
||||
pointer-event = buildLuaScript ./pointer-event.nix;
|
||||
touch-gestures = buildLuaScript ./touch-gestures.nix;
|
||||
}
|
||||
|
|
15
home/mpv/scripts/pointer-event.nix
Normal file
15
home/mpv/scripts/pointer-event.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
fetchFromGitHub,
|
||||
buildLua,
|
||||
}:
|
||||
buildLua {
|
||||
pname = "pointer-event";
|
||||
version = "unstable";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "christoph-heinrich";
|
||||
repo = "mpv-pointer-event";
|
||||
rev = "33c5ede5977817596ace5a9942a8c801ad3b3d28";
|
||||
hash = "sha256-h2E8wiQX2Vh9qyi2VsXzeOE5vnD9Xin5HZ2Wu2LZUOY=";
|
||||
};
|
||||
}
|
15
home/mpv/scripts/touch-gestures.nix
Normal file
15
home/mpv/scripts/touch-gestures.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
fetchFromGitHub,
|
||||
buildLua,
|
||||
}:
|
||||
buildLua {
|
||||
pname = "touch-gestures";
|
||||
version = "unstable";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "christoph-heinrich";
|
||||
repo = "mpv-touch-gestures";
|
||||
rev = "f4aa499f038997c1824ff3bfa64ee1d5438d72f2";
|
||||
hash = "sha256-gmo6sTwN85WS/+wtlylfI22LxyZH48DvXYP5JGCnyU4=";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue