From: Daniel Liu Date: Sun, 16 May 2021 05:07:42 +0000 (-0400) Subject: update X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=739ace9e490fa6e377e36a2c8b8cc7163797a2fe;p=dotfiles.git update --- diff --git a/.bashrc b/.bashrc index 81cdda9..d555c58 100644 --- a/.bashrc +++ b/.bashrc @@ -34,19 +34,26 @@ export WM="dwm" # aliaseseses alias ls='ls --color=auto' -# alias git-pushall='git-pushall ' # for alias chaining +alias grep='grep--color=auto' alias dotfiles='git --git-dir=$HOME/.dotfiles --work-tree=$HOME' alias suckless-clean='make clean && rm -rf config.h && git reset --hard home/master' alias musicdl="youtube-dl -f bestaudio" alias mpv="mpv --no-input-default-bindings" alias darkmpv='mpv --vf=sub,lavfi="negate"' -# alias lockscreen='slock -m "$(figlet locked xd | cowsay -f cheese -n)"' alias nmaplocal='nmap -sn 192.168.1.0/24' alias refreshusb='udevadm control --reload-rules' alias vpnup='nmcli connection up pinovpn' alias drill-srs='drill-srs 2>/dev/null' + +alias v="$EDITOR" +alias z="$READER" +alias b="$BROWSER" + # connect to wifi # nmcli device wifi connect WIFI_NAME password PASSWORD +# record +# ffmpeg -y -f x11grab -s 1600x900 -i :0.0 -f alsa -i default -c:v libx264 -r 30 -c:a flac $filename + source fzfutil diff --git a/.config/mpd/mpd.conf b/.config/mpd/mpd.conf index 4223453..c1bf7a5 100644 --- a/.config/mpd/mpd.conf +++ b/.config/mpd/mpd.conf @@ -1,5 +1,4 @@ music_directory "~/Music" -playlist_directory "~/.config/mpd/playlists" db_file "~/.config/mpd/database" log_file "~/.config/mpd/log" diff --git a/.config/ncmpcpp/config b/.config/ncmpcpp/config index 1486904..79f4c5a 100644 --- a/.config/ncmpcpp/config +++ b/.config/ncmpcpp/config @@ -1,6 +1,9 @@ /* execute_on_song_change = notify-send "Now Playing: $(mpc current)" -i "" */ +/* mpd_host = 192.168.1.31 */ +/* mpd_port = 8000 */ + visualizer_fifo_path = "/tmp/mpd.fifo" visualizer_output_name = "toggle_visualizer" visualizer_sync_interval = "30" diff --git a/.vim/mysnippets/tex.snippets b/.vim/mysnippets/tex.snippets index d563262..a6f8826 100644 --- a/.vim/mysnippets/tex.snippets +++ b/.vim/mysnippets/tex.snippets @@ -7,10 +7,20 @@ endsnippet snippet enum "enumerate" w \begin{enumerate}[$1] - $0 + \item $0 \end{enumerate} endsnippet +snippet list "Itemized List" w +\begin{itemize} + \item $0 +\end{itemize} +endsnippet + +snippet def "Definition" w +\textbf{$1} - $2 +endsnippet + snippet align "align" w \begin{align*} $0 @@ -120,7 +130,11 @@ endsnippet # OTHERS snippet implies "Implies" w -\Rightarrow +\to +endsnippet + +snippet iff "If and only if" w +\leftrightarrow endsnippet snippet mod "Mod" w diff --git a/.vimrc b/.vimrc index ade2675..aeea621 100644 --- a/.vimrc +++ b/.vimrc @@ -14,7 +14,7 @@ set smartcase set encoding=utf-8 set tabstop=4 set shiftwidth=4 -set expandtab +" set expandtab set nrformats+=alpha "inc/dec alpha set hidden @@ -129,6 +129,7 @@ Plug 'lervag/vimtex' Plug 'PietroPate/vim-tex-conceal' Plug 'jiangmiao/auto-pairs' Plug 'tpope/vim-commentary' +Plug 'rlue/vim-barbaric' " Plug 'ptzz/lf.vim' " Plug 'voldikss/vim-floaterm' @@ -152,7 +153,7 @@ let g:vimtex_quickfix_mode=0 let g:tex_conceal='abdmgs' let g:vimtex_compiler_latexmk = { - \'build_dir': '/home/pinosaur/.cache/latexaux/', + \'build_dir': '/home/pinosaur/.cache/latexaux/' \} " Ctrlp @@ -161,5 +162,9 @@ let g:vimtex_compiler_latexmk = { " Lf " let g:lf_replace_netrw = 1 " weird behavior rn +" vim-barbaric +let g:barbaric_ime = 'ibus' +set ttimeoutlen=0 + " Run after plugins autocmd FileType * set formatoptions-=o diff --git a/Scripts/screenshot b/Scripts/screenshot index 7ae03d5..de0082c 100755 --- a/Scripts/screenshot +++ b/Scripts/screenshot @@ -9,6 +9,8 @@ screen_name="$(printf "" | dmenu -p 'Screenshot name:')" # dmenu problem where i screen_name="$screen_dir/$screen_name.png" +sleep 0.3 + case $1 in -f|--full) scrot "$screen_name" && notify-send "Fullscreen screenshot taken - $screen_name" -i "";; -b|--box) scrot -s "$screen_name" && notify-send "Windowed screenshot taken - $screen_name" -i "";;