Compare commits

...

7 commits

8 changed files with 49 additions and 34 deletions

View file

@ -53,11 +53,14 @@ in {
csharp-ls
cups
curl
dbeaver-bin
discord
dolphin-emu
dotnet-sdk_8
dotnetPackages.Nuget
dunst
easytag
ffmpeg
firefox
flac
flameshot

View file

@ -8,5 +8,6 @@
./neovim
./picom
./polybar
./yt-dlp
];
}

View file

@ -50,29 +50,7 @@ vim.opt.ttyfast = true
-- Do not add a newline at the end of the file
vim.opt.fixeol = false
local data_dir = vim.fn.has('nvim') == 1 and vim.fn.stdpath('data') .. '/site' or '~/.vim'
-- Ensure packer is installed
local install_path = vim.fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
vim.fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
vim.cmd [[packadd packer.nvim]]
end
-- Use a protected call so we don't error out on first use
local status_ok, packer = pcall(require, "packer")
if not status_ok then
return
end
-- Have packer use a popup window
packer.init {
display = {
open_fn = function()
return require('packer.util').float { border = 'rounded' }
end,
},
}
vim.cmd [[packadd packer.nvim]]
return require('packer').startup(function(use)
-- Packer can manage itself
@ -97,7 +75,6 @@ return require('packer').startup(function(use)
use 'github/copilot.vim'
use {'CopilotC-Nvim/CopilotChat.nvim', branch = 'canary'}
end)
vim.cmd [[packadd packer.nvim]]
-- Copilot Chat
local prompts = require('CopilotChat.prompts')

View file

@ -0,0 +1,22 @@
# Output format: album/tracks.format
-o "%(album,playlist_title)U/%(track_number,playlist_index)s - %(title)U.%(ext)s"
--windows-filenames
# --restrict-filenames
# Extract audio
-f bestaudio
--extract-audio
--audio-format mp3
# Thumbnail squared
--convert-thumbnails png
--ppa "ThumbnailsConvertor+ffmpeg_o:-c:v png -vf crop=\"'if(gt(ih,iw),iw,ih)':'if(gt(iw,ih),ih,iw)'\""
--embed-thumbnail
# Metadata, with playlist number as track number if the latter is missing
--embed-metadata
--parse-metadata "playlist_index:%(track_number)s"
# Misc
--no-overwrites
--concurrent-fragments 4

View file

@ -0,0 +1,3 @@
{
home.file."/home/vylpes/.config/yt-dlp/config".source = ./config;
}

13
docs/Neovim.md Normal file
View file

@ -0,0 +1,13 @@
# Neovim
Neovim is mostly configured in the flake, we just need to install packer
separately, although this is only required to do once.
## Installation
Run the following command in the terminal
```bash
git clone --depth 1 https://github.com/wbthomason/packer.nvim\
~/.local/share/nvim/site/pack/packer/start/packer.nvim
```

View file

@ -7,11 +7,11 @@
]
},
"locked": {
"lastModified": 1726818100,
"narHash": "sha256-z2V74f5vXqkN5Q+goFlhbFXY/dNaBAyeLpr2bxu4Eic=",
"lastModified": 1726989464,
"narHash": "sha256-Vl+WVTJwutXkimwGprnEtXc/s/s8sMuXzqXaspIGlwM=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "1bbc1a5a1f4de7401c92db85b2119ed21bb4139d",
"rev": "2f23fa308a7c067e52dfcc30a0758f47043ec176",
"type": "github"
},
"original": {
@ -23,11 +23,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1726838390,
"narHash": "sha256-NmcVhGElxDbmEWzgXsyAjlRhUus/nEqPC5So7BOJLUM=",
"lastModified": 1729691686,
"narHash": "sha256-BAuPWW+9fa1moZTU+jFh+1cUtmsuF8asgzFwejM4wac=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "944b2aea7f0a2d7c79f72468106bc5510cbf5101",
"rev": "32e940c7c420600ef0d1ef396dc63b04ee9cad37",
"type": "github"
},
"original": {

View file

@ -114,10 +114,6 @@
gcm = "git commit -m";
gco = "git checkout";
yt-mp3 = "yt-dlp -xi --audio-format mp3";
yt-mp3-meta = "yt-dlp -xi --audio-format mp3 --parse-metadata \"playlist_index:%(track_number)s\" --add-metadata";
yt-mp3-meta-cookies = "yt-dlp -xi --audio-format mp3 --parse-metadata \"playlist_index:%(track_number)s\" --add-metadata --cookies-from-browser firefox";
s = "swallow";
};
};