mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 16:53:00 +00:00
mpv: init
This commit is contained in:
parent
dcf8688a23
commit
3854b68891
9 changed files with 44 additions and 3 deletions
|
|
@ -58,5 +58,6 @@
|
|||
ddgr # DuckDuckGo CLI
|
||||
jujutsu
|
||||
github-copilot-cli
|
||||
yt-dlp
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,7 +33,6 @@ in {
|
|||
loupe # SUPER FAST 有催人跑的感觉 w/ GPU Accel.
|
||||
|
||||
kdePackages.elisa
|
||||
mpv
|
||||
haruna
|
||||
|
||||
# Email
|
||||
|
|
@ -83,6 +82,8 @@ in {
|
|||
cider-2
|
||||
kicad
|
||||
blender
|
||||
qmk
|
||||
logisim-evolution
|
||||
]
|
||||
++ (mkFcitxIM [
|
||||
pkgs.neovim-qt
|
||||
|
|
|
|||
|
|
@ -26,6 +26,8 @@ in {
|
|||
"Mod+Shift+W".action =
|
||||
spawn "${launcher}" "-show" "window" "-icon-theme" "${iconTheme}" "-show-icons";
|
||||
|
||||
"Mod+V".action = spawn-sh "cliphist list | ${launcher} -dmenu | cliphist decode | wl-copy";
|
||||
|
||||
"Mod+E".hotkey-overlay.title = "Run file explorer";
|
||||
"Mod+E".action = spawn "${explorer}";
|
||||
"Mod+Shift+E".hotkey-overlay.title = "Run terminal explorer";
|
||||
|
|
@ -193,8 +195,10 @@ in {
|
|||
|
||||
"Mod+Shift+S".action.screenshot = {show-pointer = true;};
|
||||
"Print".action.screenshot = {show-pointer = true;};
|
||||
# "Ctrl+Print".action.screenshot-screen = {true};
|
||||
"Ctrl+Print".action.screenshot-screen = {show-pointer = true;};
|
||||
"Mod+Alt+S".action.screenshot-screen = {show-pointer = true;};
|
||||
"Alt+Print".action.screenshot-window = {write-to-disk = true;};
|
||||
"Mod+S".action.screenshot-window = {write-to-disk = true;};
|
||||
|
||||
"Mod+Escape".allow-inhibiting = false;
|
||||
"Mod+Escape".action = toggle-keyboard-shortcuts-inhibit;
|
||||
|
|
|
|||
|
|
@ -58,4 +58,5 @@ in {
|
|||
extraPortals = with pkgs; [xdg-desktop-portal-wlr xdg-desktop-portal-gtk];
|
||||
};
|
||||
services.blueman-applet.enable = true;
|
||||
services.cliphist.enable = true;
|
||||
}
|
||||
|
|
|
|||
29
nixcfgs/users/js0ny/programs/mpv.nix
Normal file
29
nixcfgs/users/js0ny/programs/mpv.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{pkgs, ...}: {
|
||||
programs.mpv = {
|
||||
enable = true;
|
||||
scripts = with pkgs.mpvScripts; [
|
||||
uosc
|
||||
mpris
|
||||
thumbfast
|
||||
sponsorblock
|
||||
bdanmaku
|
||||
];
|
||||
config = {
|
||||
vo = "gpu-next";
|
||||
hwdec = "auto-safe";
|
||||
};
|
||||
bindings = {
|
||||
"h" = "seek -5";
|
||||
"l" = "seek 5";
|
||||
"H" = "seek -30";
|
||||
"L" = "seek 30";
|
||||
"k" = "add volume 5";
|
||||
"j" = "add volume -5";
|
||||
"K" = "add volume 15";
|
||||
"J" = "add volume -15";
|
||||
"s" = "screenshot";
|
||||
"S" = "screenshot video";
|
||||
"f" = "cycle fullscreen";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -52,6 +52,7 @@ in {
|
|||
# ==========
|
||||
# Remove / from word characters, for easier path navigation (using backward-word, forward-word, etc)
|
||||
export WORDCHARS=''${WORDCHARS//\//}
|
||||
export WORDCHARS=''${WORDCHARS//\#/}
|
||||
|
||||
# Options
|
||||
# ==========
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@
|
|||
./programs/neovide.nix
|
||||
./programs/edit-clipboard.nix
|
||||
./programs/discord.nix
|
||||
./programs/mpv.nix
|
||||
|
||||
# Desktop Linux
|
||||
./programs/desktop/plasma
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue