mirror of
https://github.com/librephoenix/nixos-config
synced 2025-07-06 06:52:13 +05:30
Added yt wrapper scripts
This commit is contained in:
parent
97f54ca007
commit
70e4737360
2 changed files with 23 additions and 0 deletions
22
user/bin/ytsub-wrappers.nix
Normal file
22
user/bin/ytsub-wrappers.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
myYtpScript = ''
|
||||
ytsub --video-player /usr/bin/mpv
|
||||
'';
|
||||
myYtaScript = ''
|
||||
yt-dlp -x --audio-format mp3 $1
|
||||
'';
|
||||
myYtdScript = ''
|
||||
pushd ~/Media/Podcasts;
|
||||
ytsub --video-player yta;
|
||||
popd;
|
||||
'';
|
||||
in
|
||||
{
|
||||
home.packages = [
|
||||
pkgs.yt-dlp
|
||||
(pkgs.writeScriptBin "ytp" myYtpScript)
|
||||
(pkgs.writeScriptBin "yta" myYtaScript)
|
||||
(pkgs.writeScriptBin "ytd" myYtdScript)
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue