config update

This commit is contained in:
ackman678
2020-10-19 17:07:35 -07:00
parent ca5ce3b2a6
commit 4724c91d75
4 changed files with 20 additions and 8 deletions

View File

@@ -5,7 +5,7 @@
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# add from /etc/bash.bashrc defaultl with fix for alacritty window title bars
# add from /etc/bash.bashrc default with fix for alacritty window title bars
case ${TERM} in
xterm*|rxvt*|Eterm|alacritty|aterm|kterm|gnome*)
PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
@@ -43,6 +43,7 @@ alias tree='tree -CL 2'
#alias vim='nvim'
alias nv='nvim'
export EDITOR=vim
alias feh='feh --scale-down'
#alias xclip="xclip -selection clipboard"
#alias ts="date --iso-8601='seconds' | tr -d '\n' | xclip"
@@ -70,8 +71,8 @@ source /usr/share/fzf/completion.bash
#export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!.git/*"'
export FZF_DEFAULT_COMMAND='rg -i --files --glob "!.git/*"'
alias fzf='fzf --bind "enter:execute(nvim {})"'
bind -x '"\C-p": fzf;'
alias fzfcmd='fzf --bind "enter:execute(nvim {})"'
bind -x '"\C-p": fzfcmd;'
# bind -x '"\C-p": nvim $(fzf);'
#setup history for fzf

View File

@@ -29,7 +29,9 @@ order += "ipv6"
order += "wireless _first_"
order += "ethernet _first_"
#order += "run_watch DHCP"
order += "path_exists VPN"
order += "path_exists ovpn"
order += "path_exists wgvpn"
order += "path_exists wg0"
order += "battery all"
order += "cpu_temperature 0"
order += "load"
@@ -62,11 +64,19 @@ disk "/" {
format = "%avail"
}
path_exists VPN {
path_exists ovpn {
# path exists when a VPN tunnel launched by nmcli/nm-applet is active
path = "/proc/sys/net/ipv4/conf/tun0"
}
path_exists wgvpn {
# path exists when a WireGuard VPN tunnel is active
path = "/proc/sys/net/ipv4/conf/wgpia0"
}
path_exists wg0 {
# path exists when a WireGuard VPN tunnel is active
path = "/proc/sys/net/ipv4/conf/wg0"
}
run_watch DHCP {
pidfile = "/var/run/dhclient*.pid"
}

View File

@@ -256,7 +256,8 @@ bar {
mode dock
hidden_state hide
modifier Mod1
#modifier Mod1
modifier ""
colors {
background $base00

2
.vimrc
View File

@@ -142,7 +142,7 @@ call plug#end()
filetype plugin indent on
"Syntax highlighting in Markdown
"au BufNewFile,BufReadPost *.md set filetype=markdown
" au BufNewFile,BufReadPost *.md, *.mkd set filetype=markdown
"let g:polyglot_disabled = ['markdown']
let g:markdown_fenced_languages = ['html','r', 'javascript', 'python', 'sh', 'bash=sh', 'css', 'js=javascript', 'json=javascript']