feat(hyprland): init

This commit is contained in:
Kat Inskip 2024-03-07 17:05:22 -08:00
parent 8872b78a07
commit 8820db6792
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
23 changed files with 957 additions and 18 deletions

View file

@ -0,0 +1,42 @@
{ pkgs, lib, ... }: let
inherit (lib.attrsets) mapAttrsToList;
in {
# TODO: remove the libs
programs.mpv = {
enable = true;
scripts = with pkgs.mpvScripts; [
sponsorblock
paused
];
config = {
gpu-context = "wayland";
profile = "gpu-hq";
hwdec = "auto";
vo = "gpu";
volume-max = 200;
opengl-waitvsync = true;
script-opts = builtins.concatStringsSep ","
(mapAttrsToList (k: v: "${k}=${builtins.toString v}") {
ytdl_hook-ytdl_path = "${pkgs.yt-dlp}/bin/yt-dlp";
osc-layout = "slimbox";
osc-vidscale = "no";
osc-deadzonesize = 0.75;
osc-minmousemove = 4;
osc-hidetimeout = 2000;
osc-valign = 0.9;
osc-timems = "yes";
osc-seekbarstyle = "knob";
osc-seekbarkeyframes = "no";
osc-seekrangestyle = "slider";
});
};
};
programs.zsh.shellAliases = {
yt = "mpv --ytdl-format='bestvideo[height<=?720][fps<=?30][vcodec!=?vp9]+bestaudio/best[height<=720]'"; # Laptop doesn't like above 720p :c
};
home.packages = with pkgs; [
yt-dlp # Watch videos from multiple sources without having to use a browser for it
ytcc # Subscriptions manager and RSS feed exporter for YouTube
];
}