mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
mpv: init
This commit is contained in:
parent
dcf8688a23
commit
3854b68891
9 changed files with 44 additions and 3 deletions
|
|
@ -11,7 +11,7 @@ end
|
||||||
return {
|
return {
|
||||||
"akinsho/toggleterm.nvim",
|
"akinsho/toggleterm.nvim",
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>!", "<cmd>ToggleTerm direction=float<CR>", desc = "Toggle Terminal" },
|
{ "<leader>!", "<cmd>ToggleTerm direction=horizontal<CR>", desc = "Toggle Terminal" },
|
||||||
{ "<leader>tf", "<cmd>ToggleTerm direction=float<CR>", desc = "Toggle Terminal" },
|
{ "<leader>tf", "<cmd>ToggleTerm direction=float<CR>", desc = "Toggle Terminal" },
|
||||||
{ "<leader>tt", "<cmd>ToggleTerm<CR>", desc = "Spawn a float terminal" },
|
{ "<leader>tt", "<cmd>ToggleTerm<CR>", desc = "Spawn a float terminal" },
|
||||||
},
|
},
|
||||||
|
|
|
||||||
3
nixcfgs/modules/nixos/hardware/peripherals.nix
Normal file
3
nixcfgs/modules/nixos/hardware/peripherals.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{...}: {
|
||||||
|
hardware.qmk.enable = true;
|
||||||
|
}
|
||||||
|
|
@ -58,5 +58,6 @@
|
||||||
ddgr # DuckDuckGo CLI
|
ddgr # DuckDuckGo CLI
|
||||||
jujutsu
|
jujutsu
|
||||||
github-copilot-cli
|
github-copilot-cli
|
||||||
|
yt-dlp
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,6 @@ in {
|
||||||
loupe # SUPER FAST 有催人跑的感觉 w/ GPU Accel.
|
loupe # SUPER FAST 有催人跑的感觉 w/ GPU Accel.
|
||||||
|
|
||||||
kdePackages.elisa
|
kdePackages.elisa
|
||||||
mpv
|
|
||||||
haruna
|
haruna
|
||||||
|
|
||||||
# Email
|
# Email
|
||||||
|
|
@ -83,6 +82,8 @@ in {
|
||||||
cider-2
|
cider-2
|
||||||
kicad
|
kicad
|
||||||
blender
|
blender
|
||||||
|
qmk
|
||||||
|
logisim-evolution
|
||||||
]
|
]
|
||||||
++ (mkFcitxIM [
|
++ (mkFcitxIM [
|
||||||
pkgs.neovim-qt
|
pkgs.neovim-qt
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,8 @@ in {
|
||||||
"Mod+Shift+W".action =
|
"Mod+Shift+W".action =
|
||||||
spawn "${launcher}" "-show" "window" "-icon-theme" "${iconTheme}" "-show-icons";
|
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".hotkey-overlay.title = "Run file explorer";
|
||||||
"Mod+E".action = spawn "${explorer}";
|
"Mod+E".action = spawn "${explorer}";
|
||||||
"Mod+Shift+E".hotkey-overlay.title = "Run terminal explorer";
|
"Mod+Shift+E".hotkey-overlay.title = "Run terminal explorer";
|
||||||
|
|
@ -193,8 +195,10 @@ in {
|
||||||
|
|
||||||
"Mod+Shift+S".action.screenshot = {show-pointer = true;};
|
"Mod+Shift+S".action.screenshot = {show-pointer = true;};
|
||||||
"Print".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;};
|
"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".allow-inhibiting = false;
|
||||||
"Mod+Escape".action = toggle-keyboard-shortcuts-inhibit;
|
"Mod+Escape".action = toggle-keyboard-shortcuts-inhibit;
|
||||||
|
|
|
||||||
|
|
@ -58,4 +58,5 @@ in {
|
||||||
extraPortals = with pkgs; [xdg-desktop-portal-wlr xdg-desktop-portal-gtk];
|
extraPortals = with pkgs; [xdg-desktop-portal-wlr xdg-desktop-portal-gtk];
|
||||||
};
|
};
|
||||||
services.blueman-applet.enable = true;
|
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)
|
# Remove / from word characters, for easier path navigation (using backward-word, forward-word, etc)
|
||||||
export WORDCHARS=''${WORDCHARS//\//}
|
export WORDCHARS=''${WORDCHARS//\//}
|
||||||
|
export WORDCHARS=''${WORDCHARS//\#/}
|
||||||
|
|
||||||
# Options
|
# Options
|
||||||
# ==========
|
# ==========
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,7 @@
|
||||||
./programs/neovide.nix
|
./programs/neovide.nix
|
||||||
./programs/edit-clipboard.nix
|
./programs/edit-clipboard.nix
|
||||||
./programs/discord.nix
|
./programs/discord.nix
|
||||||
|
./programs/mpv.nix
|
||||||
|
|
||||||
# Desktop Linux
|
# Desktop Linux
|
||||||
./programs/desktop/plasma
|
./programs/desktop/plasma
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue