From 27a172993d78bf736ab1e5a14a7a5525f4866235 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 3 Jan 2025 15:51:31 +0100 Subject: ... --- accounts/gkleen@sif/default.nix | 3 ++- user-profiles/mpv/default.nix | 5 +++-- user-profiles/yt-dlp.nix | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/accounts/gkleen@sif/default.nix b/accounts/gkleen@sif/default.nix index 00707e87..68faa201 100644 --- a/accounts/gkleen@sif/default.nix +++ b/accounts/gkleen@sif/default.nix @@ -271,7 +271,8 @@ in { output = [ "eDP-1" "DP-2" "DP-3" ]; modules-left = [ "hyprland/workspaces" ]; modules-center = [ "hyprland/window" ]; - modules-right = [ "custom/worktime" "custom/worktime-today" "custom/weather" "custom/keymap" "privacy" "tray" "wireplumber" "backlight" "battery" "idle_inhibitor" "clock" ]; + modules-right = [ # "custom/worktime" "custom/worktime-today" + "custom/weather" "custom/keymap" "privacy" "tray" "wireplumber" "backlight" "battery" "idle_inhibitor" "clock" ]; "custom/weather" = { format = "{}"; diff --git a/user-profiles/mpv/default.nix b/user-profiles/mpv/default.nix index 2df87994..83eba2a9 100644 --- a/user-profiles/mpv/default.nix +++ b/user-profiles/mpv/default.nix @@ -1,6 +1,6 @@ -{ config, lib, userName, pkgs, sources, ... }: +{ lib, userName, pkgs, sources, ... }: { - home-manager.users.${userName} = { + home-manager.users.${userName} = { config, ... }: { programs.mpv = { enable = true; package = pkgs.symlinkJoin { @@ -105,6 +105,7 @@ }; config = { ytdl = true; + ytdl-raw-options = "sub-langs=\"${config.programs.yt-dlp.settings.sub-langs}\""; subs-with-matching-audio = false; audio-display = false; osd-font = "Fira Sans"; diff --git a/user-profiles/yt-dlp.nix b/user-profiles/yt-dlp.nix index 0f0b2204..9e77f734 100644 --- a/user-profiles/yt-dlp.nix +++ b/user-profiles/yt-dlp.nix @@ -14,7 +14,7 @@ ]; embed-subs = true; # write-subs = true; - # write-auto-subs = true; + write-auto-subs = true; sub-langs = "en(-(gb|us|orig))?,de(-(de|orig))?,-live_chat,-rechat"; prefer-free-formats = true; embed-metadata = true; -- cgit v1.2.3