Compare commits

...

10 Commits

Author SHA1 Message Date
Tyler Perkins 65cd11f354 Update 2022-12-01 18:26:08 -05:00
Tyler Perkins 50467c9b77 Update vimrc 2022-07-24 19:21:10 -04:00
Tyler Perkins ef7a07a194 update 23-5-22 2022-05-23 19:26:25 -04:00
Tyler Perkins 11b3f461bb Update dotfiles 10-1-22 2022-01-10 15:10:20 -05:00
Tyler Perkins 670b49231e new vimrc 2021-09-22 15:23:46 -04:00
Tyler Perkins da39fa5322 Add new plugins to vimrc 2021-09-22 14:08:39 -04:00
Tyler Perkins 30d6dd54b4 Update dotfiles 2021-09-20 09:38:20 -04:00
Tyler Perkins ab74f037d8 Update vim bashrc and newsboat 2021-08-26 10:53:23 -04:00
Tyler Perkins 23e73e03fa Add git ignore 2021-08-26 10:51:41 -04:00
Tyler Perkins 235509fabf update calcurse conf 2021-08-19 12:23:57 -04:00
10 changed files with 206 additions and 78 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
#ignore all swp files
**/*.swp

View File

@ -14,7 +14,7 @@ install :
@which vim > /dev/null 2>&1
@if [ $$? -eq 0 ]; then \
echo "vim found! Installing .vimrc ..."; \
[ -f ~/.vimrc ] && mv ~/vimrc ~/.vimrc.old; \
[ -f ~/.vimrc ] && mv ~/.vimrc ~/.vimrc.old; \
cp $(SRC)/vim/vimrc ~/.vimrc; \
fi
#bash
@ -34,14 +34,14 @@ install :
cp $(SRC)/calcurse/keys ~/.config/calcurse/keys; \
fi
#newsboat
@which newsboat > /dev/null 2>&1
@if [ $$? -eq 0 ]; then \
echo "newsboat found! Installing config and urls..."; \
[ -f ~/.newsboat/config ] && mv ~/.newsboat/config ~/.newsboat/config.old; \
cp $(SRC)/newsboat/config ~/.newsboat/config; \
[ -f ~/.newsboat/urls ] && mv ~/.newsboat/urls ~/.newsboat/urls.old; \
cp $(SRC)/newsboat/urls ~/.newsboat/urls; \
fi
#@which newsboat > /dev/null 2>&1
#@if [ $$? -eq 0 ]; then \
# echo "newsboat found! Installing config and urls..."; \
# [ -f ~/.newsboat/config ] && mv ~/.newsboat/config ~/.newsboat/config.old; \
# cp $(SRC)/newsboat/config ~/.newsboat/config; \
# [ -f ~/.newsboat/urls ] && mv ~/.newsboat/urls ~/.newsboat/urls.old; \
# cp $(SRC)/newsboat/urls ~/.newsboat/urls; \
#fi
#mpv
@which mpv > /dev/null 2>&1
@if [ $$? -eq 0 ]; then \
@ -50,19 +50,19 @@ install :
cp $(SRC)/mpv/mpv.conf ~/.config/mpv/mpv.conf; \
fi
#compton
@which compton > /dev/null 2>&1
@if [ $$? -eq 0 ]; then \
echo "compton found! Installing config, changes will not take effect till compton is restarted..."; \
[ -f ~/.config/compton.conf ] && mv ~/.config/compton.conf ~/.config/compton.conf.old; \
cp $(SRC)/compton/compton.conf ~/.config/compton.conf; \
fi
#sc-im
@which sc-im > /dev/null 2>&1
@if [ $$? -eq 0 ];then \
echo "sc-im found! Installing config..."; \
[ -f ~/.config/sc-im/scimrc ] && mv ~/.config/sc-im/scimrc ~/.config/sc-im/scimrc.old; \
cp $(SRC)/sc-im/scimrc ~/.config/sc-im/scimrc; \
fi
#@which compton > /dev/null 2>&1
#@if [ $$? -eq 0 ]; then \
# echo "compton found! Installing config, changes will not take effect till compton is restarted..."; \
# [ -f ~/.config/compton.conf ] && mv ~/.config/compton.conf ~/.config/compton.conf.old; \
# cp $(SRC)/compton/compton.conf ~/.config/compton.conf; \
#fi
##sc-im
#@which sc-im > /dev/null 2>&1
#@if [ $$? -eq 0 ];then \
# echo "sc-im found! Installing config..."; \
# [ -f ~/.config/sc-im/scimrc ] && mv ~/.config/sc-im/scimrc ~/.config/sc-im/scimrc.old; \
# cp $(SRC)/sc-im/scimrc ~/.config/sc-im/scimrc; \
#fi
#aerc
@which aerc > /dev/null 2>&1
@if [ $$? -eq 0 ]; then \
@ -96,12 +96,12 @@ update:
[ -f ~/.config/calcurse/keys ] && cp ~/.config/calcurse/keys $(SRC)/calcurse/keys; \
fi
#newsboat
@which newsboat > /dev/null 2>&1
@if [ $$? -eq 0 ]; then \
echo "newsboat found! Updating config files with existing versions..."; \
[ -f ~/.newsboat/config ] && cp ~/.newsboat/config $(SRC)/newsboat/config; \
[ -f ~/.newsboat/urls ] && cp ~/.newsboat/urls $(SRC)/newsboat/urls; \
fi
#@which newsboat > /dev/null 2>&1
#@if [ $$? -eq 0 ]; then \
# echo "newsboat found! Updating config files with existing versions..."; \
# [ -f ~/.newsboat/config ] && cp ~/.newsboat/config $(SRC)/newsboat/config; \
# [ -f ~/.newsboat/urls ] && cp ~/.newsboat/urls $(SRC)/newsboat/urls; \
#fi
#mpv
@which mpv > /dev/null 2>&1
@if [ $$? -eq 0 ]; then \
@ -109,17 +109,17 @@ update:
[ -f ~/.config/mpv/mpv.conf ] && cp ~/.config/mpv/mpv.conf $(SRC)/mpv/mpv.conf; \
fi
#compton
@which compton > /dev/null 2>&1
@if [ $$? -eq 0 ]; then \
echo "compton found! Updating config files with existing versions..."; \
[ -f ~/.config/compton.conf ] && cp ~/.config/compton.conf $(SRC)/compton/compton.conf; \
fi
#@which compton > /dev/null 2>&1
#@if [ $$? -eq 0 ]; then \
# echo "compton found! Updating config files with existing versions..."; \
# [ -f ~/.config/compton.conf ] && cp ~/.config/compton.conf $(SRC)/compton/compton.conf; \
#fi
#sc-im
@which sc-im > /dev/null 2>&1
@if [ $$? -eq 0 ]; then \
echo "sc-im found! Updating config files with existing versions..."; \
[ -f ~/.config/sc-im/scimrc ] && cp ~/.config/sc-im/scimrc $(SRC)/sc-im/scimrc; \
fi
#@which sc-im > /dev/null 2>&1
#@if [ $$? -eq 0 ]; then \
# echo "sc-im found! Updating config files with existing versions..."; \
# [ -f ~/.config/sc-im/scimrc ] && cp ~/.config/sc-im/scimrc $(SRC)/sc-im/scimrc; \
#fi
#aerc
@which aerc > /dev/null 2>&1
@if [ $$? -eq 0 ]; then \

View File

@ -1,18 +1,19 @@
[Gmail]
source = imaps://britishlink12%40gmail.com@imap.gmail.com:993
source-cred-cmd = pass email/britishlink12@gmail.com
outgoing = smtps+plain://britishlink12%40gmail.com@smtp.gmail.com:465
source = imaps://britishlink12%40gmail.com@imap.gmail.com:993
outgoing = smtp+plain://britishlink12%40gmail.com@smtp.gmail.com:587
default = INBOX
smtp-starttls = yes
from = Tyler Perkins <britishlink12@gmail.com>
copy-to = Sent
outgoing-cred-cmd = pass email/britishlink12@gmail.com
default = INBOX
from = Tyler Perkins <britishlink12@gmail.com>
copy-to = Sent
source-cred-cmd = pass email/britishlink12@gmail.com
[School]
source = imaps://tperki17%40kent.edu@imap.gmail.com
source-cred-cmd = pass email/tperki17@kent.edu
outgoing = smtps+plain://tperki17%40kent.edu@smtp.gmail.com
source = imaps://tperki17%40kent.edu@imap.gmail.com
outgoing = smtps+plain://tperki17%40kent.edu@smtp.gmail.com
default = INBOX
from = Tyler Perkins <tperki17@kent.edu>
copy-to = Sent
outgoing-cred-cmd = pass email/tperki17@kent.edu
default = INBOX
from = Tyler Perkins <tperki17@kent.edu>
copy-to = Sent
source-cred-cmd = pass email/tperki17@kent.edu

View File

@ -2,9 +2,7 @@
# To use '=' in a key sequence, substitute it with "Eq": "<Ctrl+Eq>"
# If you wish to bind #, you can wrap the key sequence in quotes: "#" = quit
<C-p> = :prev-tab<Enter>
H = :prev-tab<Enter>
<C-n> = :next-tab<Enter>
L = :next-tab<Enter>
<C-t> = :term<Enter>
[messages]
@ -27,11 +25,13 @@ G = :select -1<Enter>
J = :next-folder<Enter>
K = :prev-folder<Enter>
L = :next-tab<Enter>
H = :prev-tab<Enter>
v = :mark -t<Enter>
V = :mark -v<Enter>
<Enter> = :view<Enter>
l = :view<Enter>
d = :prompt 'Really delete this message?' 'delete-message'<Enter>
D = :delete<Enter>
A = :archive flat<Enter>
@ -71,7 +71,6 @@ H = :toggle-headers<Enter>
<C-j> = :next-part<Enter>
J = :next<Enter>
K = :prev<Enter>
h = :close<Enter>
[compose]
# Keybindings used when the embedded terminal is not selected in the compose

View File

@ -1,11 +1,6 @@
# /etc/skel/.bashrc
#
# This file is sourced by all *interactive* bash shells on startup,
# including some apparently interactive shells such as scp and rcp
# that can't tolerate any output. So make sure this doesn't display
# anything or bad things will happen !
###############################################################################
# Tyler Perkins
# .bashrc
# Test for an interactive shell. There is no need to set anything
# past this point for scp and rcp, and it's important to refrain from
# outputting anything in those cases.
@ -22,12 +17,19 @@ set -o vi
#add .cargo/bin to path
export PATH="/home/tyler/.cargo/bin:$PATH"
export PATH="/home/tyler/.local/bin:$PATH"
export _JAVA_AWT_WM_NONREPARENTING=1
#use vim as editor
export EDITOR="/usr/bin/vim"
#pyenv
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/versions/bin/3.8.12/bin:$PATH"
#proton work directory set as enviroment var
export STEAM_COMPAT_DATA_PATH=~/.proton/
export STEAM_COMPAT_CLIENT_INSTALL_PATH=~/.steam/steam/steamapps/common/Proton\ 6.3/
eval "$(register-python-argcomplete pmbootstrap)"
#alias set
alias l="ls -al"
@ -43,20 +45,40 @@ alias ports="netstat -tulanp | less"
alias audio="pulsemixer"
alias email="aerc"
alias weather="curl wttr.in"
alias http="python -m http.server"
alias httpserver="python -m http.server"
alias google="tuxi"
alias clipboard="xclip -selection clipboard"
alias new-wallpaper="xwallpaper --maximize $(find /home/tyler/.desktop/wallpaper/ -type f | shuf -n 1)"
alias new-wallpaper="feh --bg-fill --randomize ~/.desktop/wallpaper/"
alias set-motd="vim /home/tyler/.desktop/alarm/motd.txt"
alias diff="diff --color=auto"
alias grep="grep -i --color=auto"
alias mv="mv -v"
alias nnn="nnn -e"
alias sudo="doas"
alias arduino=" arduino"
alias logisim-evolution="_JAVA_AWT_WM_NONREPARENTING=1 logisim-evolution"
alias vifm="vifmrun"
alias f="vifm"
alias new-motd="vim /home/tyler/.desktop/alarm/motd.txt"
alias sched="vim /home/tyler/school/Sched.txt"
alias disable-alarm=". /home/tyler/.desktop/alarm/disable-alarm.sh"
alias memes-down="rsync -azPv tyler@174.104.135.12:/media/hd/memes/ /media/hd/memes"
alias memes-up="rsync -azPv /media/hd/memes/ tyler@174.104.135.12:/media/hd/memes/"
alias battery="cat /sys/class/power_supply/BAT0/capacity"
#vim opens vim wiki by default, else the file
#function vimw(){
# if [ $# -eq 0 ]; then
# vim ~/vimwiki/splash.wiki
# else
# vim $@
# fi
#}
#alias vim="vimw"
export PS1="\033[1m\e[0;97m[\e[0;32m\u\e[0;97m@\e[0;31m\h \e[0;97m(\D{}) \w]\n$ \033[0m"
#display colors
_PROMPT_GREEN_='\033[1;32m'
@ -71,8 +93,9 @@ fi
#display stuff at beggining of the shell
echo -e "${_PROMPT_HEAD_}#########################"
echo -e "${_PROMPT_HEAD_}#Welcome ${_PROMPT_VAR_}$(whoami)"
echo -e "${_PROMPT_HEAD_}#EIp : ${_PROMPT_VAR_}$(ifconfig eno1 | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1')"
echo -e "${_PROMPT_HEAD_}#EIp : ${_PROMPT_VAR_}$(ifconfig eth0 | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1')"
#echo -e "${_PROMPT_HEAD_}#WIp : ${_PROMPT_VAR_}$(ifconfig wlo1 | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1')"
echo -e "${_PROMPT_HEAD_}#PIp : ${_PROMPT_VAR_}$(curl -s ipinfo.io/ip)"
echo -e "${_PROMPT_HEAD_}#Time: ${_PROMPT_VAR_}$(date +"%T")"
echo -e "${_PROMPT_HEAD_}#Batt: ${_PROMPT_VAR_}${_BATTERY_}%"
echo -e "${_PROMPT_HEAD_}#${_PROMPT_VAR_}\x1b[3m $(shuf -n 1 ~/.desktop/messages.txt) "

View File

@ -12,7 +12,7 @@ appearance.sidebarwidth=0
appearance.theme=red on default
appearance.todoview=hide-completed
appearance.headingpos=right-justified
daemon.enable=no
daemon.enable=yes
daemon.log=yes
format.inputdate=1
format.notifydate=%a %F
@ -23,7 +23,7 @@ general.autogc=no
general.autosave=yes
general.confirmdelete=yes
general.confirmquit=yes
general.firstdayofweek=monday
general.firstdayofweek=sunday
general.multipledays=yes
general.periodicsave=0
general.systemevents=yes

View File

@ -16,6 +16,7 @@ generic-reload R
generic-copy c
generic-paste p ^V
generic-change-view TAB
generic-prev-view KEY_BTAB
generic-import i I
generic-export x X
generic-goto g G

View File

@ -1 +1,4 @@
profile=gpu-hq
fs
osc=no

View File

@ -40,7 +40,7 @@ bind-key x pb-delete
# Opening Config
browser "vivaldi %u"
macro v set browser "mpv %u --no-terminal &" ; open-in-browser ; set browser "firefox %u"
macro v set browser "mpv %u --no-terminal &" ; open-in-browser ; set browser "vivaldi %u"
#Pretty

View File

@ -8,22 +8,121 @@ set nocompatible
filetype off
"set runtime path to insclude Vundle and init
"set rtp+=~/.vim/bundle/Vundle.vim
"call vundle#begin()
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
"let vundle manage vundle
"Plugin 'VundleVim/Vundle.vim'
Plugin 'VundleVim/Vundle.vim'
"add plugins here
"Plugin 'ycm-core/YouCompleteMe'
Plugin 'tpope/vim-surround'
Plugin 'preservim/nerdtree'
Plugin 'angelskieglazki/hcch.vim'
Plugin 'luochen1990/rainbow'
Plugin 'jiangmiao/auto-pairs'
Plugin 'jamessan/vim-gnupg'
Plugin 'vim-syntastic/syntastic'
Plugin 'ntpeters/vim-better-whitespace'
Plugin 'airblade/vim-gitgutter'
Plugin 'vimwiki/vimwiki'
Plugin 'ekalinin/Dockerfile.vim'
Plugin 'Shirk/vim-gas'
Plugin 'ycm-core/YouCompleteMe'
Plugin 'vim-latex/vim-latex'
Plugin 'posva/vim-vue'
Plugin 'vim-scripts/DoxygenToolkit.vim'
"Omnisharp
Plugin 'OmniSharp/omnisharp-vim'
"Appearence
Plugin 'ap/vim-css-color'
Plugin 'chr4/nginx.vim'
Plugin 'itchyny/lightline.vim'
"hard mode
Plugin 'takac/vim-hardtime'
"reference
Plugin 'dbeniamine/cheat.sh-vim'
Plugin 'moll/vim-node'
"end plugins
"end
"call vundle#end()
call vundle#end()
filetype plugin indent on
filetype plugin on
"let g:loaded_youcompleteme = 1
"omnisharp, for C# editing
autocmd BufNewFile,BufRead *.cshtml set syntax=html
let g:syntastic_cs_checkers = ['code_checker']
let g:OmniSharp_server_sdio = 1
let g:OmniSharp_server_use_net6 = 1
let g:OmniSharp_highlighting = 3
autocmd FileType cs nmap <silent> <buffer> gd <Plug>(omnisharp_go_to_definition)
"asyncomplete
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
set encoding=utf-8
"enable hardmode
"let g:hardtime_default_on = 1
"Disable arrow movement, resize splits instead
nnoremap <Up> :resize +2<CR>
nnoremap <Down> :resize -2<CR>
nnoremap <Left> :vertical resize +2<CR>
nnoremap <Right> :vertical resize -2<CR>
"Syntastic
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
highlight SyntasticError guibg=#2f0000
highlight link SyntasticErrorLine error
highlight link SyntasticWarningLine todo
let g:syntastic_always_populate_loc_list = 1
"let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_cpp_remove_include_errors = 1
let g:syntastic_c_remove_include_errors = 1
let g:syntastic_cpp_compiler = "g++"
let g:syntastic_cpp_compiler_options = "-Wall -Wextra"
let g:syntastic_asm_checkers = ['nasm']
let g:GPGFilePattern = '*.\(gpg\|asc\|pgp\|gpg\)\(.wiki\)\='
" Vim latex settings
let g:tex_flavor='latex'
"clear sign column
hi clear SignColumn
"enable man pages in vim, active with :Man
runtime ftplugin/man.vim
"dont show the mode
set noshowmode
"toggle nerdtree
map <C-o> :NERDTreeToggle<CR>
let NERDTreeIgnore = ['\.o$']
"set lightline colortheme
let g:lightline = {
\ 'colorscheme' : 'powerline',
\ }
"enable rainbow brackets
let g:rainbow_active = 1
"enable syntax highlighting
syntax on
@ -60,7 +159,7 @@ set confirm
set mouse=a
"set command window to 2 lines, so we can see complete options
set cmdheight=2
set cmdheight=1
"display editor numbers
set number relativenumber
@ -76,8 +175,6 @@ set tw=79
"auto highlight to groff for .ms files
autocmd BufNewFile,BufRead *.ms set syntax=groff
"md/groff/latex preview
let mapleader="\\"
"call compile
@ -101,5 +198,7 @@ function! Compile()
endif
endfunction
let g:vimwiki_list = [{'path': '$HOME/vimwiki', 'path_html': '$HOME/vimwiki/.html', 'template_path': '$HOME/vimwiki/templates/', 'template_default': 'default', 'template_ext': '.php'}]
noremap <leader>p :call Preview()<CR><CR><CR>
noremap <leader>q :call Compile()<CR><CR>