Skip to content

Instantly share code, notes, and snippets.

View pengshp's full-sized avatar

Neal pengshp

View GitHub Profile
@pengshp
pengshp / init.vim
Created May 10, 2022 04:42 — forked from seven1m/init.vim
my vim/neovim config in < 100 LOC
syntax on " enable syntax highlighting
set background=dark " we like it dark!
try | colorscheme gruvbox | catch | endtry " use this awesome theme if possible
highlight Pmenu ctermbg=black guibg=black | " fix popup color so it's easier to read
filetype plugin on " load plugins based on file type
filetype indent on " load indent settings based on file type
set shiftwidth=2 " number of spaces to use for indenting
set softtabstop=2 " number of spaces to use when inserting a tab
set tabstop=2 " show tabs as 2 spaces
set expandtab " convert tabs into spaces
@pengshp
pengshp / gist:b60ec9d0374e8f78b7e6fe643dba6675
Last active November 27, 2023 22:00 — forked from Waltibaba/gist:28741f08b12696bc291cbdcb3a2c748f
pipewire configs: default device & echo cancel
~/.config/pipewire/pipewire.conf.d/10-bt-headphones-default.conf
===========
context.properties = [
default.configured.audio.sink = { "name": "bluez_output.AC_12_2F_24_80_86.1" }
]
===========使用pipewire的模块消除麦克风的回音
~/.config/pipewire/pipewire.conf.d/20-echo-cancel.conf
===========
context.modules = [
{ name = libpipewire-module-echo-cancel