feat(homeModules/desktop): add video players

This commit is contained in:
Mohammad Rafiq 2025-06-06 17:56:22 +08:00
parent 264fa4d8a9
commit c908ee136b
No known key found for this signature in database
4 changed files with 36 additions and 4 deletions

View file

@ -8,11 +8,12 @@
settings = {
mgr = {
sort_by = "natural";
prepend_keymap = [
};
opener = {
play = [
{
on = "l";
run = "plugin smart-enter";
desc = "";
run = "vlc \"$@\"";
desc = "Open";
}
];
};

View file

@ -0,0 +1,29 @@
{
osConfig,
lib,
pkgs,
...
}:
{
config = lib.mkMerge [
(lib.mkIf (osConfig.desktop.media-player == "vlc") {
home.packages = lib.singleton pkgs.vlc;
})
(lib.mkIf (osConfig.desktop.media-player == "mpv") {
programs.mpv = {
enable = true;
package = pkgs.mpv-unwrapped.wrapper {
scripts = with pkgs.mpvScripts; [
sponsorblock
];
mpv = pkgs.mpv-unwrapped.override {
waylandSupport = true;
};
};
config = {
profile = "high-quality";
};
};
})
];
}

View file

@ -23,6 +23,7 @@
notification-daemon = lib.pantheon.mkStrOption;
launcher = lib.pantheon.mkStrOption;
status-bar = lib.pantheon.mkStrOption;
media-player = lib.pantheon.mkStrOption;
enableSpotifyd = lib.mkEnableOption "";
enableSteam = lib.mkEnableOption "";
enableVR = lib.mkEnableOption "";

View file

@ -28,6 +28,7 @@
notification-daemon = "mako";
launcher = "fuzzel";
status-bar = "waybar";
media-player = "vlc";
mainMonitor = {
id = "desc:OOO AN-270W04K";
scale = "2";