moving mpv to nix config

This commit is contained in:
Chris Cochrun 2023-01-03 15:06:46 -06:00
parent e47b3fa5ff
commit 66f149d735
5 changed files with 78 additions and 10 deletions

View file

@ -431,7 +431,7 @@ feh
tagutil tagutil
python310Packages.mutagen python310Packages.mutagen
python310Packages.audiotools python310Packages.audiotools
mpv # mpv
nerdfonts nerdfonts
# latte-dock # latte-dock
plasma-browser-integration plasma-browser-integration
@ -2374,9 +2374,43 @@ I also use home-manager for managing dotfiles. This means that everything is con
source = ../qutebrowser/qsettings; source = ../qutebrowser/qsettings;
}; };
home.file.".config/mpv" = { programs.mpv = {
source = ../mpv; enable = true;
recursive = false; scripts = with pkgs.mpvScripts; [ mpris thumbnail youtube-quality sponsorblock];
config = {
osc = false;
vo = "gpu";
af = "scaletempo2";
autofit = "4000x2900";
geometry = "50%:50%";
hwdec = "auto";
rtsp-transport = "udp";
speed = 1.95;
ytdl-format = "bestvideo[height<=?720][fps<=?30]+bestaudio/best";
};
profiles = {
fast = {
speed = 1.95;
};
slow = {
speed = 1;
};
wc = {
speed = 1;
osd-level = 0;
osc = false;
load-scripts = false;
profile = "low-latency";
demuxer-lavf-format = "video4linux2";
demuxer-lavf-o-set = "input_format=mjpeg,video_size=1920x1080,framerate=60";
fps = 60;
};
};
};
home.file.".config/mpv/scripts" = {
source = ../mpv/scripts;
recursive = true;
}; };
home.file.".config/imv" = { home.file.".config/imv" = {

View file

@ -2,7 +2,7 @@
osc=no osc=no
vo=gpu vo=gpu
af=scaletempo2 af=scaletempo2
autofit=2800x1800 autofit=90%x90%
geometry=50%:50% geometry=50%:50%
# input-ipc-server="/tmp/mpvsocket" # input-ipc-server="/tmp/mpvsocket"
hwdec=auto hwdec=auto

View file

@ -308,7 +308,7 @@
tagutil tagutil
python310Packages.mutagen python310Packages.mutagen
python310Packages.audiotools python310Packages.audiotools
mpv # mpv
nerdfonts nerdfonts
# latte-dock # latte-dock
plasma-browser-integration plasma-browser-integration

View file

@ -327,7 +327,7 @@
tagutil tagutil
python310Packages.mutagen python310Packages.mutagen
python310Packages.audiotools python310Packages.audiotools
mpv # mpv
nerdfonts nerdfonts
# latte-dock # latte-dock
plasma-browser-integration plasma-browser-integration

View file

@ -378,9 +378,43 @@
source = ../qutebrowser/qsettings; source = ../qutebrowser/qsettings;
}; };
home.file.".config/mpv" = { programs.mpv = {
source = ../mpv; enable = true;
recursive = false; scripts = with pkgs.mpvScripts; [ mpris thumbnail youtube-quality sponsorblock];
config = {
osc = false;
vo = "gpu";
af = "scaletempo2";
autofit = "4000x2900";
geometry = "50%:50%";
hwdec = "auto";
rtsp-transport = "udp";
speed = 1.95;
ytdl-format = "bestvideo[height<=?720][fps<=?30]+bestaudio/best";
};
profiles = {
fast = {
speed = 1.95;
};
slow = {
speed = 1;
};
wc = {
speed = 1;
osd-level = 0;
osc = false;
load-scripts = false;
profile = "low-latency";
demuxer-lavf-format = "video4linux2";
demuxer-lavf-o-set = "input_format=mjpeg,video_size=1920x1080,framerate=60";
fps = 60;
};
};
};
home.file.".config/mpv/scripts" = {
source = ../mpv/scripts;
recursive = true;
}; };
home.file.".config/imv" = { home.file.".config/imv" = {