mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-09 23:22:57 +00:00
switch mpv to managed settings
This commit is contained in:
parent
42a5ad40de
commit
2aea76c0e3
@ -12,12 +12,19 @@
|
||||
config = lib.mkIf (config.gui.enable && config.media.enable) {
|
||||
home-manager.users.${config.user} = {
|
||||
home.packages = with pkgs; [
|
||||
mpv # Video viewer
|
||||
sxiv # Image viewer
|
||||
mupdf # PDF viewer
|
||||
zathura # PDF viewer
|
||||
];
|
||||
|
||||
# Video player
|
||||
programs.mpv = {
|
||||
enable = true;
|
||||
bindings = { };
|
||||
config = { image-display-duration = 2; };
|
||||
scripts = [ pkgs.mpvScripts.autoload ];
|
||||
};
|
||||
|
||||
# Set default for opening PDFs
|
||||
xdg.mimeApps = {
|
||||
associations.added = {
|
||||
|
Loading…
Reference in New Issue
Block a user