This commit is contained in:
ksyasuda 2022-01-28 17:16:40 -08:00
parent 3beba43128
commit 9f83a86aca
4 changed files with 64 additions and 35 deletions

View File

@ -1,5 +1,13 @@
alias sudo='sudo -v; sudo '
alias suda='sudo' alias suda='sudo'
alias vi=vim
alias qutebrowser="qutebrowser --qt-arg stylesheet $HOME/.local/share/qutebrowser/fix-tooltips.qss"
# Aniwrapper
alias aniwrapper='aniwrapper -qD 144'
## Colorls ## Colorls
alias lca='colorls -A --sd --gs -X' alias lca='colorls -A --sd --gs -X'
alias lc='colorls --sd --gs -X' alias lc='colorls --sd --gs -X'
@ -7,7 +15,7 @@ alias lcl='colorls --sd --gs -Xl'
alias lcla='colorls -lA --sd --gs -X' alias lcla='colorls -lA --sd --gs -X'
alias lcal='colorls -lA --sd --gs -X' alias lcal='colorls -lA --sd --gs -X'
alias lct='colorls --gs --tree=5' alias lct='colorls --gs --tree=5'
alias ls='colorls --sd -Xl' alias ls='colorls --sd -X'
## Pacman/Yay ## Pacman/Yay
# update without noconfirm # update without noconfirm
@ -24,9 +32,10 @@ alias ys='yarn start'
alias yi='yarn install' alias yi='yarn install'
## Git ## Git
alias gs='git status' alias gst='git status'
alias gc='git commit' alias gcmt='git commit'
alias gp='git push' alias gpush='git push'
alias gpull='git pull'
## Helpful ## Helpful
alias count='ls -l | wc -l' alias count='ls -l | wc -l'
@ -53,6 +62,9 @@ alias drop_cache="sudo sh -c \"echo 3 >'/proc/sys/vm/drop_caches' && swapoff -a
# mkdir # mkdir
alias mkdir='mkdir -p' alias mkdir='mkdir -p'
# wallpapers
alias mysan='feh --bg-scale ~/.wallpapers/MYSanGun-Inverted.png ~/.wallpapers/MYSanGun.png'
## I'm Lazy ## I'm Lazy
alias scripts='cd /home/sudacode/scripts' alias scripts='cd /home/sudacode/scripts'
alias freud='cd /home/sudacode/' alias freud='cd /home/sudacode/'
@ -78,12 +90,23 @@ alias ncdu='ncdu --color dark'
alias updates='~/SudacodeRice/scripts/package-updates' alias updates='~/SudacodeRice/scripts/package-updates'
alias aliases='cat ~/.bash_aliases' alias aliases='cat ~/.bash_aliases'
alias sauce='~/Videos/sauce/' alias sauce='~/Videos/sauce/'
alias aniedit='emc ~/Projects/Scripts/ani-cli/'
alias wmedit='emc ~/.config/i3/config' alias wmedit='emc ~/.config/i3/config'
alias ani='cd $HOME/Projects/Scripts/ani-cli' alias ani='cd $HOME/Projects/Scripts/aniwrapper'
alias archvm='VBoxManage startvm "arch-vm"' alias archvm='VBoxManage startvm "arch-vm"'
alias chrome='google-chrome-beta --profile-directory="Profile 1" &>/dev/null &' alias chrome='google-chrome-beta --profile-directory="Profile 1" &>/dev/null &'
alias bar='~/SudacodeRice/scripts/launch_desktop.sh' alias bar='~/SudacodeRice/scripts/launch_desktop.sh'
alias nord=nordvpn
alias lzd=lazydocker
alias lzg=lazygit
alias mounts='sudo ~/scripts/mounts.sh'
alias dc=docker-compose # sorry calculator
alias vimconf='vim ~/.vimrc'
alias sctl=systemctl
alias pyex='python -m'
## Rice ## Rice
alias config='/usr/bin/git --git-dir=$HOME/rice/ --work-tree=$HOME' alias config='/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME'
alias pushdots='config push senpai'
alias commitdots='config commit'
alias cs='config status'
alias f=floaterm

View File

@ -214,19 +214,19 @@
# Current directory background color. # Current directory background color.
typeset -g POWERLEVEL9K_DIR_BACKGROUND=4 typeset -g POWERLEVEL9K_DIR_BACKGROUND=4
# Default current directory foreground color. # Default current directory foreground color.
typeset -g POWERLEVEL9K_DIR_FOREGROUND=254 typeset -g POWERLEVEL9K_DIR_FOREGROUND=15
# If directory is too long, shorten some of its segments to the shortest possible unique # If directory is too long, shorten some of its segments to the shortest possible unique
# prefix. The shortened directory can be tab-completed to the original. # prefix. The shortened directory can be tab-completed to the original.
typeset -g POWERLEVEL9K_SHORTEN_STRATEGY=truncate_to_unique typeset -g POWERLEVEL9K_SHORTEN_STRATEGY=truncate_to_unique
# Replace removed segment suffixes with this symbol. # Replace removed segment suffixes with this symbol.
typeset -g POWERLEVEL9K_SHORTEN_DELIMITER= typeset -g POWERLEVEL9K_SHORTEN_DELIMITER=
# Color of the shortened directory segments. # Color of the shortened directory segments.
typeset -g POWERLEVEL9K_DIR_SHORTENED_FOREGROUND=250 typeset -g POWERLEVEL9K_DIR_SHORTENED_FOREGROUND=15
# Color of the anchor directory segments. Anchor segments are never shortened. The first # Color of the anchor directory segments. Anchor segments are never shortened. The first
# segment is always an anchor. # segment is always an anchor.
typeset -g POWERLEVEL9K_DIR_ANCHOR_FOREGROUND=255 typeset -g POWERLEVEL9K_DIR_ANCHOR_FOREGROUND=15
# Display anchor directory segments in bold. # Display anchor directory segments in bold.
typeset -g POWERLEVEL9K_DIR_ANCHOR_BOLD=true typeset -g POWERLEVEL9K_DIR_ANCHOR_BOLD=false
# Don't shorten directories that contain any of these files. They are anchors. # Don't shorten directories that contain any of these files. They are anchors.
local anchor_files=( local anchor_files=(
.bzr .bzr
@ -1559,14 +1559,14 @@
typeset -g POWERLEVEL9K_VPN_IP_BACKGROUND=6 typeset -g POWERLEVEL9K_VPN_IP_BACKGROUND=6
# When on VPN, show just an icon without the IP address. # When on VPN, show just an icon without the IP address.
# Tip: To display the private IP address when on VPN, remove the next line. # Tip: To display the private IP address when on VPN, remove the next line.
typeset -g POWERLEVEL9K_VPN_IP_CONTENT_EXPANSION='VPN' # typeset -g POWERLEVEL9K_VPN_IP_CONTENT_EXPANSION='VPN'
# Regular expression for the VPN network interface. Run `ifconfig` or `ip -4 a show` while on VPN # Regular expression for the VPN network interface. Run `ifconfig` or `ip -4 a show` while on VPN
# to see the name of the interface. # to see the name of the interface.
typeset -g POWERLEVEL9K_VPN_IP_INTERFACE='(globalprotect|gpd|wg|(.*tun)|tailscale)[0-9]*' typeset -g POWERLEVEL9K_VPN_IP_INTERFACE='(globalprotect|gpd|wg|(.*tun)|tailscale)[0-9]*'
# If set to true, show one segment per matching network interface. If set to false, show only # If set to true, show one segment per matching network interface. If set to false, show only
# one segment corresponding to the first matching network interface. # one segment corresponding to the first matching network interface.
# Tip: If you set it to true, you'll probably want to unset POWERLEVEL9K_VPN_IP_CONTENT_EXPANSION. # Tip: If you set it to true, you'll probably want to unset POWERLEVEL9K_VPN_IP_CONTENT_EXPANSION.
typeset -g POWERLEVEL9K_VPN_IP_SHOW_ALL=false typeset -g POWERLEVEL9K_VPN_IP_SHOW_ALL=true
# Custom icon. # Custom icon.
# typeset -g POWERLEVEL9K_VPN_IP_VISUAL_IDENTIFIER_EXPANSION='⭐' # typeset -g POWERLEVEL9K_VPN_IP_VISUAL_IDENTIFIER_EXPANSION='⭐'

View File

@ -53,25 +53,25 @@ call plug#begin('~/.vim/plugged')
Plug 'tpope/vim-fugitive' Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-commentary' Plug 'tpope/vim-commentary'
Plug 'tpope/vim-surround' Plug 'tpope/vim-surround'
Plug 'preservim/nerdtree' | Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim' Plug 'junegunn/fzf.vim'
Plug 'itchyny/lightline.vim'
Plug 'dense-analysis/ale'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'wakatime/vim-wakatime'
Plug 'voldikss/vim-floaterm'
Plug 'ryanoasis/vim-devicons' Plug 'ryanoasis/vim-devicons'
Plug 'pechorin/any-jump.vim' Plug 'pechorin/any-jump.vim'
Plug 'jiangmiao/auto-pairs' Plug 'jiangmiao/auto-pairs'
Plug 'ap/vim-css-color' Plug 'ap/vim-css-color'
Plug 'ap/vim-buftabline' Plug 'ap/vim-buftabline'
Plug 'itchyny/lightline.vim'
Plug 'wakatime/vim-wakatime'
Plug 'preservim/nerdtree' | Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'prettier/vim-prettier', { 'do': 'yarn install' } Plug 'prettier/vim-prettier', { 'do': 'yarn install' }
Plug 'sheerun/vim-polyglot' Plug 'sheerun/vim-polyglot'
Plug 'dense-analysis/ale'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'maximbaz/lightline-ale' Plug 'maximbaz/lightline-ale'
Plug 'liuchengxu/vim-which-key', { 'on': ['WhichKey', 'WhichKey!'] } Plug 'liuchengxu/vim-which-key', { 'on': ['WhichKey', 'WhichKey!'] }
Plug 'osyo-manga/vim-over' Plug 'osyo-manga/vim-over'
Plug 'voldikss/vim-floaterm' Plug 'mhinz/vim-startify'
" Plug 'windwp/vim-floaterm-repl'
" colorschemes " colorschemes
Plug 'joshdick/onedark.vim' Plug 'joshdick/onedark.vim'
@ -599,31 +599,37 @@ command! Reload execute "source ~/.vimrc"
command! Config execute ":e ~/.vimrc" command! Config execute ":e ~/.vimrc"
command! Env execute ":Dotenv .env" command! Env execute ":Dotenv .env"
command! MakeTags !ctags -R . command! MakeTags !ctags -R .
command! Ovewrite execute ":w !sudo tee %"
command! Aniwrapper execute ":FloatermNew aniwrapper -qtdoomone -D 144"
"------------------------------------------------------------------------------ "------------------------------------------------------------------------------
"KEYBINDINGS "KEYBINDINGS
"------------------------------------------------------------------------------ "------------------------------------------------------------------------------
let g:mapleader = "\<Space>" let g:mapleader = "\<Space>"
let g:maplocalleader = ',' let g:maplocalleader = ','
nnoremap <silent> <leader> :<c-u>WhichKey '<Space>'<CR> nmap <silent> <leader> :<c-u>WhichKey '<Space>'<CR>
nnoremap <silent> <localleader> :<c-u>WhichKey ','<CR> nmap <silent> <localleader> :<c-u>WhichKey ','<CR>
map <F5> :! nmap <F5> :!
map <C-n> :NERDTreeToggle<CR> nmap <C-n> :NERDTreeToggle<CR>
map <C-l> :LivedownToggle<CR>
" nnoremap <C-T> :wa<CR>:vertical botright term ++kill=term<CR> " nnoremap <C-T> :wa<CR>:vertical botright term ++kill=term<CR>
nnoremap <C-T> :wa<CR>:FloatermToggle<CR> nmap <C-T> :wa<CR>:FloatermToggle<CR>
nmap Q !!$SHELL<CR>
" fzf " fzf
nmap // :CocCommand fzf-preview.Lines<CR> nnoremap // :CocCommand fzf-preview.Lines<CR>
nmap ?? :CocCommand fzf-preview.BufferLines<CR> nnoremap ?? :CocCommand fzf-preview.BufferLines<CR>
" search fzf, refs, impls, defs " search fzf, refs, impls, defs
nmap <leader>ff :FloatermNew --title=fzf fzf<CR> nmap <leader>ff :FloatermNew --title=fzf fzf<CR>
" aniwrapper/ani-cli (until i find better use for a keys)
nmap <leader>as :FloatermNew --title=aniwrapper aniwrapper -qtdoomone -D144<CR>
nmap <leader>ad :FloatermNew --title=aniwrapper ani-cli -q720p -cd/home/sudacode/Videos/sauce -D144<CR>
" buffers " buffers
nmap <leader>bB :CocCommand fzf-preview.AllBuffers<CR> nmap <leader>bB :CocCommand fzf-preview.AllBuffers<CR>
nmap <leader>bb :CocCommand fzf-preview.Buffers<CR> nmap <leader>bb :CocCommand fzf-preview.Buffers<CR>
nmap <leader>bk :bdelete<CR> nmap <leader>bk :bdelete<CR>
nmap <leader>bn :bnext<CR> nmap <leader>bn :bnext<CR>
nmap <leader>bp :bprev<CR> nmap <leader>bp :bprev<CR>
map <C-J> :bnext<CR> nmap <C-J> :bnext<CR>
map <C-K> :bprev<CR> nmap <C-K> :bprev<CR>
" git " git
nmap <leader>gc :CocCommand fzf-preview.GitLogs<CR> nmap <leader>gc :CocCommand fzf-preview.GitLogs<CR>
nmap <leader>gf :CocCommand fzf-preview.GitFiles<CR> nmap <leader>gf :CocCommand fzf-preview.GitFiles<CR>
@ -645,5 +651,5 @@ nmap <leader>or :FloatermNew --title=ranger ranger --cmd="cd $PWD"<CR>
nmap <leader>ot :vertical botright ter ++kill=terminal ++close<CR> nmap <leader>ot :vertical botright ter ++kill=terminal ++close<CR>
" search " search
nmap <leader>sc :nohls<Cr> nmap <leader>sc :nohls<Cr>
"toggle coc outline " toggle coc outline
noremap <leader>to :CocOutline<CR> nmap <leader>to :CocOutline<CR>

View File

@ -163,7 +163,6 @@ opacity-rule = [
"100:class_g = 'mpv'", "100:class_g = 'mpv'",
"95:class_g = 'firefoxdeveloperedition' && focused", "95:class_g = 'firefoxdeveloperedition' && focused",
"90:class_g = 'firefoxdeveloperedition' && !focused",
"90:class_g = 'Alacritty' && focused", "90:class_g = 'Alacritty' && focused",
"90:class_g = 'Emacs' && focused", "90:class_g = 'Emacs' && focused",
@ -171,10 +170,11 @@ opacity-rule = [
"90:class_g = 'Thunderbird' && focused", "90:class_g = 'Thunderbird' && focused",
"90:class_g = 'qutebrowser' && focused", "90:class_g = 'qutebrowser' && focused",
"90:class_g = 'DBeaver' && !focused",
"90:class_g = 'firefoxdeveloperedition' && !focused",
"85:class_g = 'Alacritty' && !focused", "85:class_g = 'Alacritty' && !focused",
"85:class_g = 'Bitwarden' && !focused", "85:class_g = 'Bitwarden' && !focused",
"85:class_g = 'DBeaver' && !focused",
"85:class_g = 'Emacs' && !focused", "85:class_g = 'Emacs' && !focused",
"85:class_g = 'Joplin' && !focused", "85:class_g = 'Joplin' && !focused",
"85:class_g = 'Microsoft Teams - Preview' && !focused", "85:class_g = 'Microsoft Teams - Preview' && !focused",
@ -487,7 +487,7 @@ rounded-corners-exclude = [
blur: { blur: {
method = "dual_kawase"; method = "dual_kawase";
# method = "kawase"; # method = "kawase";
strength = 3; strength = 2;
background = true; background = true;
background-frame = false; background-frame = false;
background-fixed = false; background-fixed = false;