vanadium: switch to mpv

This commit is contained in:
Primrose 2025-12-20 19:55:48 +01:00
parent 34775054b2
commit 2e7e1955e2
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
4 changed files with 4 additions and 147 deletions

View file

@ -175,7 +175,6 @@ in
../homeModules/common/tmux ../homeModules/common/tmux
../homeModules/common/vim ../homeModules/common/vim
../homeModules/common/wired ../homeModules/common/wired
../homeModules/common/vlc.nix
../homeModules/common/atuin.nix ../homeModules/common/atuin.nix
../homeModules/common/direnv.nix ../homeModules/common/direnv.nix
../homeModules/common/feh.nix ../homeModules/common/feh.nix

View file

@ -89,7 +89,6 @@
# pkgs.rawtherapee # pkgs.rawtherapee
pkgs.digikam pkgs.digikam
pkgs.gimp pkgs.gimp
pkgs.vlc
pkgs.easyeffects pkgs.easyeffects
pkgs.nautilus pkgs.nautilus
pkgs.sushi # space bar previewer pkgs.sushi # space bar previewer
@ -157,6 +156,10 @@
paths = "~/Downloads"; paths = "~/Downloads";
}; };
}; };
# SHARP to change audio track
# j to change subtitle track
# _ to change video track
mpv.enable = true;
btop.enable = true; btop.enable = true;
cmus.enable = true; cmus.enable = true;

View file

@ -18,9 +18,6 @@ infuse {
tmux.__input.withSixel = _: false; tmux.__input.withSixel = _: false;
vlc.__input.chromecastSupport = _: false;
vlc.__input.waylandSupport = _: false;
# I don't really use helix, but it's nice to have the W alias just in case # I don't really use helix, but it's nice to have the W alias just in case
helix.__output.patches.__append = [ helix.__output.patches.__append = [
./patches/helix/W-as-write.patch ./patches/helix/W-as-write.patch

View file

@ -1,142 +0,0 @@
{ lib, config, ... }:
let
# Kinda slow but there's no option defined and I'm lazy
vlcInstalled = lib.any (x: lib.getName x == "vlc") config.home.packages;
in
{
xdg = lib.mkIf vlcInstalled {
enable = true;
mimeApps =
let
associations = lib.genAttrs vlcTypes (_: "vlc.desktop");
# credit: https://github.com/tiredofit/home
vlcTypes = [
"application/mxf"
"application/ogg"
"application/sdp"
"application/smil"
"application/streamingmedia"
"application/vnd.apple.mpegurl"
"application/vnd.ms-asf"
"application/vnd.rn-realmedia"
"application/vnd.rn-realmedia-vbr"
"application/x-cue"
"application/x-extension-m4a"
"application/x-extension-mp4"
"application/x-matroska"
"application/x-mpegurl"
"application/x-ogg"
"application/x-ogm"
"application/x-ogm-audio"
"application/x-ogm-video"
"application/x-shorten"
"application/x-smil"
"application/x-streamingmedia"
"audio/3gpp"
"audio/3gpp2"
"audio/AMR"
"audio/aac"
"audio/ac3"
"audio/aiff"
"audio/amr-wb"
"audio/dv"
"audio/eac3"
"audio/flac"
"audio/m3u"
"audio/m4a"
"audio/mp1"
"audio/mp2"
"audio/mp3"
"audio/mp4"
"audio/mpeg"
"audio/mpeg2"
"audio/mpeg3"
"audio/mpegurl"
"audio/mpg"
"audio/musepack"
"audio/ogg"
"audio/opus"
"audio/rn-mpeg"
"audio/scpls"
"audio/vnd.dolby.heaac.1"
"audio/vnd.dolby.heaac.2"
"audio/vnd.dts"
"audio/vnd.dts.hd"
"audio/vnd.rn-realaudio"
"audio/vorbis"
"audio/wav"
"audio/webm"
"audio/x-aac"
"audio/x-adpcm"
"audio/x-aiff"
"audio/x-ape"
"audio/x-m4a"
"audio/x-matroska"
"audio/x-mp1"
"audio/x-mp2"
"audio/x-mp3"
"audio/x-mpegurl"
"audio/x-mpg"
"audio/x-ms-asf"
"audio/x-ms-wma"
"audio/x-musepack"
"audio/x-pls"
"audio/x-pn-au"
"audio/x-pn-realaudio"
"audio/x-pn-wav"
"audio/x-pn-windows-pcm"
"audio/x-realaudio"
"audio/x-scpls"
"audio/x-shorten"
"audio/x-tta"
"audio/x-vorbis"
"audio/x-vorbis+ogg"
"audio/x-wav"
"audio/x-wavpack"
"video/3gp"
"video/3gpp"
"video/3gpp2"
"video/avi"
"video/divx"
"video/dv"
"video/fli"
"video/flv"
"video/mkv"
"video/mp2t"
"video/mp4"
"video/mp4v-es"
"video/mpeg"
"video/msvideo"
"video/ogg"
"video/quicktime"
"video/vnd.divx"
"video/vnd.mpegurl"
"video/vnd.rn-realvideo"
"video/webm"
"video/x-avi"
"video/x-flc"
"video/x-flic"
"video/x-flv"
"video/x-m4v"
"video/x-matroska"
"video/x-mpeg2"
"video/x-mpeg3"
"video/x-ms-afs"
"video/x-ms-asf"
"video/x-ms-wmv"
"video/x-ms-wmx"
"video/x-ms-wvxvideo"
"video/x-msvideo"
"video/x-ogm"
"video/x-ogm+ogg"
"video/x-theora"
"video/x-theora+ogg"
];
in
{
enable = true;
associations.added = associations;
defaultApplications = associations;
};
};
}