Skip to content

Commit

Permalink
adding mpv
Browse files Browse the repository at this point in the history
mpv is added but not yet configured well.
  • Loading branch information
Awan committed Aug 19, 2022
1 parent 8fa92bb commit b1099dd
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 2 deletions.
2 changes: 2 additions & 0 deletions dots/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
#./kitty.nix
./mpd.nix
./ncmpcpp.nix
./misc.nix
./mpv.nix
./packages.nix
#./bspwm.nix
#./sxhkd.nix
Expand Down
78 changes: 78 additions & 0 deletions dots/mpv.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{ pkgs, lib, config, ... }:


{
programs.mpv = {
enable = true;
bindings = {
"l" = "seek 5 exact";
"L" = "cycle_values loop-file inf no";
"h" = "seek -5 exact";
"j" = "seek -60 exact";
"k" = "seek 60 exact";
"S" = "cycle sub";
"C" = "cycle sub down";
"Alt+-" = "add video-zoom -0.25";
"Alt+=" = "add video-zoom +0.25";
"Alt+Tab" = "ignore";
};
config = {

stop-screensaver = "yes";
volume-max = 500;
volume = 50;
fullscreen = "yes";
#video-unscaled="yes";
#ao = "pulse";
ytdl-format = "bestvideo[height<=?720]+bestaudio[ext=m4a]/best[height<=?720]";
#gamma="25";
#brightness="5";
vo = "gpu";
gpu-context = "wayland";
#gpu-api = "vulkan";
vd-lavc-threads = 4;
sub-auto = "fuzzy";
save-position-on-quit = "yes";
ignore-path-in-watch-later-config = "yes";
write-filename-in-watch-later-config = "yes";
geometry = "50%:50%";
autofit-larger = "80%x80%";
sub-codepage = "UTF-8";
osd-level = 1;
osd-font = "Fantasque Sans Mono";
osd-font-size = 36;
osd-color = "#ffffff";
osd-border-color = "#000000";
osd-shadow-color = "#2f343f";
osd-shadow-offset = 2;
osd-border-size = 1;
osd-bar-align-y = 0;
osd-bar-h = 2;
osd-bar-w = 60;
screenshot-format = "png";
screenshot-png-compression = 8;
screenshot-directory = "~/pix/mpv";
slang = "on";
sub-font = "Noto Sans";
sub-font-size = 42;
sub-color = "#75ff00";
sub-border-color = "#000000";
sub-border-size = 1;
sub-shadow-offset = 2;
sub-shadow-color = "#2f343f";
sub-spacing = 1;
sub-pos = 95;
osd-duration = 2500;
input-ipc-server = "/tmp/mpvsocket";

};
profiles = {
nodir = {
sub-auto = "no";
audio-file-auto = "no";
};
};

};

}
1 change: 1 addition & 0 deletions dots/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
pkgs.powerline-fonts
pkgs.meslo-lg
pkgs.swaylock
pkgs.hyprland
pkgs.rxvt-unicode
pkgs.powerline
pkgs.nodejs
Expand Down
2 changes: 0 additions & 2 deletions dots/tmux.nix
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@
set -g clock-mode-colour colour20
# urlview
run-shell $HOME/.local/bin/tmux.urlview
# resize panes
setw -g aggressive-resize on
# No delay
set -sg escape-time 0
# History
Expand Down

0 comments on commit b1099dd

Please sign in to comment.