From 9e5da42a0e5ef69b5d38643efbad47171194462c Mon Sep 17 00:00:00 2001 From: tiyn Date: Wed, 5 Apr 2023 01:48:55 +0200 Subject: [PATCH] nvim: changed file structure more intuitively --- .config/easyeffects/input/voice.json | 4 ++-- .config/nvim/init.lua | 21 ++++++++++++------- .../nvim/lua/{filetype.lua => autocmd.lua} | 18 ++++++---------- .local/bin/tools/record_replay_start | 2 +- 4 files changed, 23 insertions(+), 22 deletions(-) rename .config/nvim/lua/{filetype.lua => autocmd.lua} (87%) diff --git a/.config/easyeffects/input/voice.json b/.config/easyeffects/input/voice.json index 6426793..022754a 100644 --- a/.config/easyeffects/input/voice.json +++ b/.config/easyeffects/input/voice.json @@ -110,7 +110,7 @@ "clipping-range": 6.0, "fft": "4096", "input-gain": 0.0, - "output-gain": -20.0, + "output-gain": 15.0, "std": "ISO226-2003", "volume": -6.499999999999993 }, @@ -119,7 +119,7 @@ "deesser#0", "filter#0", "gate#0", - "rnnoise", + "rnnoise#0", "limiter#0", "loudness#0" ], diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 3a249f8..499d695 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -51,24 +51,31 @@ vim.o.signcolumn = "yes" vim.o.undofile = true vim.o.undodir = vim.env.XDG_CACHE_HOME .. "/vim/undo" --- delete trailing whitespaces on save -vim.api.nvim_create_autocmd({'BufWritePre'}, -{pattern = {'*'}, -command = [[%s/\s\+$//e]], -}) - -- python programs to use vim.g.python_host_prog = '/usr/bin/python2' vim.g.python3_host_prog = '/usr/bin/python3' +-- read files correctly +vim.filetype.add({ +extension = { + h = 'c', + html = 'html', + java = 'java', + md = 'markdown', + nim = 'nim', + py = 'python', + tex = 'tex', +}}) + -- load plugins (autoload all files in plugin folder) require('loadplugins') -- load filetype specific mappings and commands -require('filetype') +require('autocmd') -- load general mapped keys require('keymap') -- load general colorscheme require('colorscheme') + diff --git a/.config/nvim/lua/filetype.lua b/.config/nvim/lua/autocmd.lua similarity index 87% rename from .config/nvim/lua/filetype.lua rename to .config/nvim/lua/autocmd.lua index 19110fe..954e3ba 100644 --- a/.config/nvim/lua/filetype.lua +++ b/.config/nvim/lua/autocmd.lua @@ -1,16 +1,10 @@ --- filetype +-- autocmd --- read files correctly -vim.filetype.add({ -extension = { - h = 'c', - html = 'html', - java = 'java', - md = 'markdown', - nim = 'nim', - py = 'python', - tex = 'tex', -}}) +-- delete trailing whitespaces on save +vim.api.nvim_create_autocmd({'BufWritePre'}, +{pattern = {'*'}, +command = [[%s/\s\+$//e]], +}) -- formatting options vim.api.nvim_create_autocmd({'FileType'}, diff --git a/.local/bin/tools/record_replay_start b/.local/bin/tools/record_replay_start index 00d825a..02f9d29 100755 --- a/.local/bin/tools/record_replay_start +++ b/.local/bin/tools/record_replay_start @@ -1,7 +1,7 @@ #!/bin/sh window=$(xdotool getwindowfocus) -fps=30 +fps=60 audio="$(pactl get-default-sink).monitor" format="mp4" lenght=20