mirror of
https://github.com/librephoenix/nixos-config
synced 2025-04-20 09:14:34 +05:30
Added yt wrapper scripts
This commit is contained in:
parent
97f54ca007
commit
70e4737360
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)
|
||||||
|
];
|
||||||
|
}
|
|
@ -12,6 +12,7 @@
|
||||||
./wm/xmonad/xmonad.nix # My xmonad config
|
./wm/xmonad/xmonad.nix # My xmonad config
|
||||||
./shell/sh.nix # My zsh and bash config
|
./shell/sh.nix # My zsh and bash config
|
||||||
./bin/phoenix.nix # My nix command wrapper
|
./bin/phoenix.nix # My nix command wrapper
|
||||||
|
./bin/ytsub-wrappers.nix # My ytsub wrapper
|
||||||
./app/doom-emacs/doom.nix # My doom emacs config
|
./app/doom-emacs/doom.nix # My doom emacs config
|
||||||
./app/terminal/alacritty.nix # My alacritty config
|
./app/terminal/alacritty.nix # My alacritty config
|
||||||
./app/terminal/kitty.nix # My kitty config
|
./app/terminal/kitty.nix # My kitty config
|
||||||
|
|
Loading…
Reference in a new issue