diff options
author | terminaldweller <thabogre@gmail.com> | 2021-12-17 13:55:13 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2021-12-17 13:55:13 +0000 |
commit | adc0b312110d800debc7ad964ee963b2590a7897 (patch) | |
tree | e31b7f8ce97b77c617ed1d20d9c17f22104bc57f | |
parent | update for keymappings for xcape (diff) | |
download | scripts-adc0b312110d800debc7ad964ee963b2590a7897.tar.gz scripts-adc0b312110d800debc7ad964ee963b2590a7897.zip |
update
-rw-r--r-- | .config/i3/config | 4 | ||||
-rw-r--r-- | .mutt/.muttrc | 3 | ||||
-rw-r--r-- | .mutt/mail.gmail.pass | 2 | ||||
-rw-r--r-- | .mutt/mail.self.pass | 2 | ||||
-rw-r--r-- | .vimrc | 11 | ||||
-rw-r--r-- | .zshrc | 25 | ||||
-rw-r--r-- | devi.zsh-theme | 3 | ||||
-rwxr-xr-x | irssi/irssi.sh | 2 | ||||
-rw-r--r-- | irssi/startup | 1 | ||||
-rw-r--r-- | postit | 2 |
10 files changed, 36 insertions, 19 deletions
diff --git a/.config/i3/config b/.config/i3/config index 7cb28b9..959be1f 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -37,8 +37,8 @@ bindsym $mod+Return exec st -f "DejaVu Sans Mono for Powerline-11.3" bindsym $mod+Shift+q kill # start dmenu (a program launcher) -bindsym $mod+d exec dmenu_run -nhb "dark slate gray" -nhf white -shb "forest green" -shf white -l 14 -#bindsym $mod+d exec dmenu_run -nb black -sb tomato -l 12 +#bindsym $mod+d exec dmenu_run -nhb "dark slate gray" -nhf white -shb "forest green" -shf white -l 14 +bindsym $mod+d exec dmenu_run -nb black -sb tomato -l 12 # There also is the (new) i3-dmenu-desktop which only displays applications # shipping a .desktop file. It is a wrapper around dmenu, so you need that # installed. diff --git a/.mutt/.muttrc b/.mutt/.muttrc index b79b5bb..9b229c6 100644 --- a/.mutt/.muttrc +++ b/.mutt/.muttrc @@ -42,6 +42,9 @@ subscribe ^cfe-dev@lists.llvm.org$ subscribe ^llvm-dev@lists.llvm.org$ subscribe -group lua lua-l@lists.lua.org subscribe -group cygwin cygwin@cygwin.com +subscribe ^dev-request@dpdk.org$ +subscribe ^freeradius-users-request@lists.freeradius.org$ +subscribe ^odp-request@lists.opendataplane.org$ color error color196 default # message line error text color tilde color81 default # vi-like tildes marking blank lines diff --git a/.mutt/mail.gmail.pass b/.mutt/mail.gmail.pass new file mode 100644 index 0000000..ba3c61a --- /dev/null +++ b/.mutt/mail.gmail.pass @@ -0,0 +1,2 @@ +set imap_pass = "password" +set smtp_pass = "password" diff --git a/.mutt/mail.self.pass b/.mutt/mail.self.pass new file mode 100644 index 0000000..ba3c61a --- /dev/null +++ b/.mutt/mail.self.pass @@ -0,0 +1,2 @@ +set imap_pass = "password" +set smtp_pass = "password" @@ -255,7 +255,7 @@ let g:jellybeans_overrides = { \ 'Todo': { 'guifg': '000000', 'guibg': '00cc00', \ 'ctermfg': 'Black', 'ctermbg': 'Blue', \ 'attr': 'bold' }, -\ 'Comment': { 'guifg': '339966' }, +\ 'Comment': { 'guibg': '339966', 'guifg': '000000' }, \ 'background': { "guibg": "000000", "ctermbg":"none"}, \ 'StorageClass': {"guifg": '9966ff' }, \ 'PreCondit': {"guifg": '5f87ff' }, @@ -303,7 +303,7 @@ function! s:shortenPath(path) endfunction "airline options -let g:airline_powerline_fonts = 0 +let g:airline_powerline_fonts = 1 let s:airline_custom_cwd = s:shortenPath(expand('%:p')) try let g:airline#extensions#tabline#enabled = 1 @@ -1028,7 +1028,7 @@ function! s:compiler_explorer() set syntax=nasm 1 endfunction -command! -complete=shellcmd -nargs=0 CompilerExplorer call s:compiler_explorer() +" command! -complete=shellcmd -nargs=0 CompilerExplorer call s:compiler_explorer() vmap <S-F9> :<C-U>CompilerExplorer<cr> "view the python docs for the word under cursor in a split window @@ -1041,7 +1041,7 @@ function! s:pythondoc() set syntax=man 1 endfunction -command! -complete=shellcmd -nargs=0 PythonDoc call s:pythondoc() +" command! -complete=shellcmd -nargs=0 PythonDoc call s:pythondoc() nnoremap <leader>h :<C-U>PythonDoc<cr> vnoremap <leader>h :<C-U>PythonDoc<cr> @@ -1089,6 +1089,7 @@ iab coutn count iab accoutn account iab applciation application iab cosnt const +iab ehco echo "netrw let g:netrw_sort_by = 'date' @@ -1545,7 +1546,7 @@ function! s:tldrdoc() let l:vword = expand("<cword>") call tldr#run(l:vword) endfunction -command! -complete=shellcmd -nargs=0 TLDRDoc call s:tldrdoc() +" command! -complete=shellcmd -nargs=0 TLDRDoc call s:tldrdoc() nnoremap <leader>tt :<C-U>TLDRDoc<cr> vnoremap <leader>tt :<C-U>TLDRDoc<cr> @@ -125,7 +125,6 @@ alias fixiredisrc="cp ~/scripts/.iredisrc ~/.iredisrc" alias irssi="irssi -n terminaldweller" alias joplinkeymap="vim ~/scripts/.config/joplin/keymap.json" alias fixjoplinkeymap="cp ~/scripts/.config/joplin/keymap.json ~/.config/joplin/keymap.json" -alias mpv="/mnt/c/ProgramData/chocolatey/lib/mpv.install/tools/mpv.exe" alias postitrc="vim ~/scripts/postit" alias rainbowrc="vim ~/scripts/.rainbow_config.json" alias fixrainbowrc="cp ~/scripts/.rainbow_config.json ~/.rainbow_config.json" @@ -151,17 +150,17 @@ alias moshvpn="mosh rooot@192.99.102.52 --ssh='ssh -p 1022'" alias moshvps="mosh ubuntu@terminaldweller.com --ssh='ssh -p 1022'" alias proxychainsrc="vim ~/scripts/.proxychains/proxychains.conf" alias fixproxychainsrc="cp ~/scripts/.proxychains/proxychains.conf ~/.proxychains/proxychains.conf" -alias zgit="proxychains git" -alias zssh="proxychains ssh" -alias zscp="proxychains scp" +alias zgit="proxychains4 git" +alias zssh="proxychains4 ssh" +alias zscp="proxychains4 scp" alias socks5z="ssh -N -D 9998 -o ExitOnForwardFailure=yes -l pi 192.168.1.108" alias socks5ir="ssh -N -D 9997 -o ExitOnForwardFailure=yes -l ubuntu -p 1022 terminaldweller.com" alias cloud_one="ssh 130.185.121.80 -l ubuntu -p 1022" alias zharf_server="zssh 192.168.12.5 -l farzad" alias k9sskin="vim ~/scripts/.k9s/skin.yml" alias k9sconfig="vim ~/scripts/.k9s/config.yml" -alias fixk9sskin="cp ~/scripts/.k9s/skin.yml ~/.k9s/skin.yml" -alias fixk9sconfig="cp ~/scripts/.k9s/config.yml ~/.k9s/config.yml" +alias fixk9sskin="cp ~/scripts/.k9s/skin.yml ~/.config/k9s/skin.yml" +alias fixk9sconfig="cp ~/scripts/.k9s/config.yml ~/.config/k9s/config.yml" alias gottyrc="vim ~/scripts/.gotty" alias fixgottyrc="cp ~/scripts/.gotty ~/.gotty" alias dircolorsrc="vim ~/scripts/.dir_colors" @@ -172,6 +171,9 @@ alias gdbinit="vim ~/scripts/.gdbinit" alias fixgdbinit="cp ~/scripts/.gdbinit ~/.gdbinit" alias d="docker" alias dc="docker-compose" +alias xbps-file="xbps-query -Ro" +alias zh_freebsd="zssh dev@192.168.90.15" +alias zh_linux="zssh dev@192.168.90.17" #autosuggest ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#5f5fff,bg=#000000,bold" @@ -237,10 +239,10 @@ pdfsearch() { # /usr/bin/bicon.bin #fi +export SOCKS_PROXY="socks5://127.0.0.1:9050" REPORTTIME=4 STARDICT_DATA_DIR="/home/devi/.stardict" export STARDICT_DATA_DIR -export DISPLAY="192.168.1.103:0" export LIBGL_ALWAYS_INDIRECT=1 export PULSE_SERVER=tcp:192.168.1.103 export VAGRANT_WSL_ENABLE_WINDOWS_ACCESS="1" @@ -285,7 +287,7 @@ fixtheme() { export PATH=$PATH:/home/devi/.cargo/bin export PATH=$PATH:/home/devi/scripts/bin export PATH=$PATH:/home/devi/.fzf/bin -export PATH=$PATH:/home/devi/.ghcup/bin +# export PATH=$PATH:/home/devi/.ghcup/bin export PATH=$PATH:/home/devi/k3s export PATH=$PATH:/home/devi/kompose export PATH=$PATH:/home/devi/mongosh/bin @@ -295,6 +297,8 @@ export PATH=$PATH:/home/devi/gotty export PATH=$PATH:/home/devi/.poetry/bin export PATH=$PATH:/home/devi/pulumi export PATH=$PATH:/home/devi/dry +export PATH=$PATH:/home/devi/.fnm +export PATH=$PATH:/home/devi/.rbenv/bin export PATH=$PATH:/home/devi/k9s export PATH=$PATH:/home/devi/opam export PATH=$PATH:/home/devi/devi/ghorg @@ -378,8 +382,8 @@ export KEYTIMEOUT=1 export VIRTUAL_ENV_DISABLE_PROMPT=yes # fnm -# eval "$(fnm env)" -_evalcache fnm env +eval "$(fnm env)" +# _evalcache fnm env # OPAM configuration . /home/devi/.opam/opam-init/init.zsh > /dev/null 2> /dev/null || true @@ -587,3 +591,4 @@ ranger() { # eval "$(rbenv init -)" _evalcache rbenv init - +[ -f "/home/devi/.ghcup/env" ] && source "/home/devi/.ghcup/env" # ghcup-env diff --git a/devi.zsh-theme b/devi.zsh-theme index 2616759..8464cc5 100644 --- a/devi.zsh-theme +++ b/devi.zsh-theme @@ -60,6 +60,7 @@ if [[ $TERM = *256color* || $TERM = *rxvt* ]]; then yagreen="%F{34}" babyblue="%F{39}" somegreen="%F{22}" + randomblue="%F{26}" else turquoise="$fg[cyan]" orange="$fg[yellow]" @@ -275,7 +276,7 @@ getkubernetesinfo() { # PS1=$'%{$new2%}$(sudo_query)%{$reset_color%}%{$swampgreen%}%n%{$reset_color%} on %{$purblue%}%M%{$reset_color%} in %{$yagreen%}$(pwd_shortened)%{$reset_color%} at %{$muckgreen%}$(time_function)%{$reset_color%}$vcs_info_msg_0_%{$limblue%}%{$gnew%}$(gitadditions)%{$gnew2%}$(gitdeletions)%{$reset_color%}%{$deeppink%}$(virtualenv_info)%{$reset_color%}%{$teal%}$(node_version)%{$reset_color%}%{$gover%}$(goversion)%{$reset_color%}%{$rust%}$(rustversion)%{$reset_color%}%{$babyblue%}$(ruby_version)%{$reset_color%}%{$sneakyc%}$(sneaky)%{$reset_color%}%{$new%}$(rebuildquery)%{$reset_color%} %{$someblue%}<$ZSH_KUBECTL_USER:$ZSH_KUBECTL_PROMPT>%{$reset_color%}%{$batred%}$(dir_writeable)%{$reset_color%}' PS1=$'%{$new2%}$(sudo_query)%{$reset_color%}%{$swampgreen%}%n%{$reset_color%} on %{$purblue%}%M%{$reset_color%} in %{$yagreen%}$(pwd_shortened)%{$reset_color%} at %{$muckgreen%}$(time_function)%{$reset_color%}$vcs_info_msg_0_%{$limblue%}%{$gnew%}$(gitadditions)%{$gnew2%}$(gitdeletions)%{$reset_color%}%{$deeppink%}$(virtualenv_info)%{$reset_color%}%{$teal%}$(node_version)%{$reset_color%}%{$gover%}$(goversion)%{$reset_color%}%{$rust%}$(rustversion)%{$reset_color%}%{$babyblue%}$(ruby_version)%{$reset_color%}%{$sneakyc%}$(sneaky)%{$reset_color%}%{$new%}$(rebuildquery)%{$reset_color%} $(getkubernetesinfo)%{$batred%}$(dir_writeable)%{$reset_color%}' PS2=$'' -PS3=$'\n%{$limblue%}--➜%{$reset_color%}' +PS3=$'\n%{$randomblue%}--➜%{$reset_color%}' get_prompt_len() { local zero='%([BSUbfksu]|([FK]|){*})' local FOOLENGTH=${#${(S%%)PS1//$~zero/}} diff --git a/irssi/irssi.sh b/irssi/irssi.sh index 240f86f..33d348c 100755 --- a/irssi/irssi.sh +++ b/irssi/irssi.sh @@ -17,12 +17,12 @@ wget https://scripts.irssi.org/scripts/sb_position.pl wget https://scripts.irssi.org/scripts/trackbar.pl wget https://scripts.irssi.org/scripts/scriptassist.pl wget https://scripts.irssi.org/scripts/tordetect.pl -wget https://scripts.irssi.org/scripts/timezones.pl wget https://scripts.irssi.org/scripts/usercount.pl # wget https://scripts.irssi.org/scripts/bitlbee_typing_notice.pl # wget https://scripts.irssi.org/scripts/uberprompt.pl wget https://scripts.irssi.org/scripts/bitlbee_tab_completion.pl +cd ~/scripts/irssi cp ./config ~/.irssi/config cp ./solarized-powerline.theme ~/.irssi/solarized-powerline.theme cp ./startup ~/.irssi/startup diff --git a/irssi/startup b/irssi/startup index 5dcc7ae..4cfad28 100644 --- a/irssi/startup +++ b/irssi/startup @@ -10,4 +10,5 @@ #/connect irc.oftc.net #/connect irc.libera.chat load otr +load perl #load xmpp @@ -31,3 +31,5 @@ set schedule-multiple 1 add 0 ****@chat.terminaldweller.com moon account add jabber ****@chat.terminaldweller.com ****** chat.terminaldweller.com sudo mount -t cifs -o user=pi3,vers=2.0,domain=MSHOME //192.168.1.200/disk1 /home/pi/kstore +xrandr --output eDP1 --mode 1920x1080 --right-of HDMI2 +fc-list : family style |