undofile for nvim, picom changes, more powerlevel tweaks..
This commit is contained in:
parent
7e38180671
commit
ae1a0c156e
|
|
@ -71,10 +71,10 @@ set printoptions+=syntax:y
|
|||
set showmatch
|
||||
|
||||
" Keep a backup file.
|
||||
"set backup
|
||||
set backup
|
||||
|
||||
" Save undo tree.
|
||||
"set undofile
|
||||
set undofile
|
||||
|
||||
" Do not back up temporary files.
|
||||
set backupskip=/tmp/*,/private/tmp/*"
|
||||
|
|
|
|||
|
|
@ -401,4 +401,3 @@ let g:auto_save = 1
|
|||
let g:auto_save_silent = 1
|
||||
let g:auto_save_events = ["InsertLeave", "TextChanged", "FocusLost"]
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -32,9 +32,10 @@ shadow-offset-y = -7;
|
|||
# shadow-green = 0.0;
|
||||
# shadow-blue = 0.0;
|
||||
shadow-exclude = [
|
||||
"_GTK_FRAME_EXTENTS@:c",
|
||||
"class_g = 'i3-frame'",
|
||||
"WM_NAME@:s = 'Awesome drawin'",
|
||||
"name = 'Notification'",
|
||||
"_GTK_FRAME_EXTENTS@:c",
|
||||
"class_g = 'i3-frame'",
|
||||
"!I3_FLOATING_WINDOW@:c"
|
||||
];
|
||||
# shadow-exclude = "n:e:Notification";
|
||||
shadow-ignore-shaped = false;
|
||||
|
|
@ -55,7 +56,7 @@ xinerama-shadow-crop = true;
|
|||
#blur-background = true;
|
||||
blur: {
|
||||
method = "dual_kawase";
|
||||
strength = 7.0;
|
||||
strength = 6.0;
|
||||
# deviation = 1.0;
|
||||
# kernel = "11x11gaussian";
|
||||
}
|
||||
|
|
@ -69,9 +70,9 @@ blur-background-exclude = [
|
|||
"class_g = 'Chromium'",
|
||||
];
|
||||
opacity-rule = [
|
||||
"90:class_g = 'kitty' && focused",
|
||||
"0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'",
|
||||
#"0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'",
|
||||
"99:class_g = 'kitty' && !focused",
|
||||
"90:class_g = 'kitty' && focused",
|
||||
];
|
||||
|
||||
##############
|
||||
|
|
|
|||
49
.zshrc
49
.zshrc
|
|
@ -122,11 +122,14 @@ POWERLEVEL9K_MODE=nerdfont-complete
|
|||
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(custom_user dir vcs)
|
||||
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(battery time)
|
||||
|
||||
# Time
|
||||
POWERLEVEL9K_TIME_FORMAT="%D{%H:%M}"
|
||||
|
||||
# Prompt settings
|
||||
POWERLEVEL9K_PROMPT_ON_NEWLINE=false
|
||||
POWERLEVEL9K_RPROMPT_ON_NEWLINE=false
|
||||
#POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX_ICON=$'%K{white}%k'
|
||||
#POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX_ICON=$'%K{green}%F{black} \uf155 %f%F{green}%k\ue0b0%f '
|
||||
POWERLEVEL9K_PROMPT_ON_NEWLINE=true
|
||||
POWERLEVEL9K_RPROMPT_ON_NEWLINE=true
|
||||
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX_ICON=$'%K{white}%k'
|
||||
POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX_ICON=$'%K{green}%F{black} \uf155 %f%F{green}%k\ue0b0%f '
|
||||
|
||||
# Separators
|
||||
POWERLEVEL9K_LEFT_SEGMENT_SEPARATOR_ICON=$'\ue0b0'
|
||||
|
|
@ -176,16 +179,23 @@ POWERLEVEL9K_STATUS_ERROR_ICON=$'\uf165'
|
|||
POWERLEVEL9K_STATUS_ERROR_CR_ICON=$'\uf165'
|
||||
|
||||
# Battery
|
||||
POWERLEVEL9K_BATTERY_LOW_FOREGROUND='black'
|
||||
POWERLEVEL9K_BATTERY_LOW_BACKGROUND='red'
|
||||
POWERLEVEL9K_BATTERY_CHARGING_FOREGROUND='black'
|
||||
POWERLEVEL9K_BATTERY_CHARGING_BACKGROUND='blue'
|
||||
POWERLEVEL9K_BATTERY_CHARGED_FOREGROUND='black'
|
||||
POWERLEVEL9K_BATTERY_CHARGED_BACKGROUND='green'
|
||||
POWERLEVEL9K_BATTERY_DISCONNECTED_FOREGROUND='blue'
|
||||
POWERLEVEL9K_BATTERY_VERBOSE=true
|
||||
POWERLEVEL9K_BATTERY_STAGES=''
|
||||
#POWERLEVEL9K_BATTERY_LOW_FOREGROUND='black'
|
||||
#POWERLEVEL9K_BATTERY_LOW_BACKGROUND='red'
|
||||
#POWERLEVEL9K_BATTERY_CHARGING_FOREGROUND='black'
|
||||
#POWERLEVEL9K_BATTERY_CHARGING_BACKGROUND='blue'
|
||||
#POWERLEVEL9K_BATTERY_CHARGED_FOREGROUND='black'
|
||||
#POWERLEVEL9K_BATTERY_CHARGED_BACKGROUND='green'
|
||||
#POWERLEVEL9K_BATTERY_DISCONNECTED_FOREGROUND='black'
|
||||
#POWERLEVEL9K_BATTERY_DISCONNECTED_BACKGROUND='yellow'
|
||||
#POWERLEVEL9K_BATTERY_VERBOSE=true
|
||||
#POWERLEVEL9K_BATTERY_STAGES=''
|
||||
POWERLEVEL9K_BATTERY_LOW_THRESHOLD=15
|
||||
POWERLEVEL9K_BATTERY_CHARGING='yellow'
|
||||
POWERLEVEL9K_BATTERY_CHARGED='green'
|
||||
POWERLEVEL9K_BATTERY_DISCONNECTED='$DEFAULT_COLOR'
|
||||
POWERLEVEL9K_BATTERY_LOW_THRESHOLD='10'
|
||||
POWERLEVEL9K_BATTERY_LOW_COLOR='red'
|
||||
POWERLEVEL9K_BATTERY_ICON='\uf1e6 '
|
||||
|
||||
# Programming languages
|
||||
POWERLEVEL9K_RBENV_PROMPT_ALWAYS_SHOW=true
|
||||
|
|
@ -193,6 +203,17 @@ POWERLEVEL9K_GO_VERSION_PROMPT_ALWAYS_SHOW=true
|
|||
|
||||
# User with skull
|
||||
user_with_skull() {
|
||||
echo -n "\uf303 $(whoami)"
|
||||
echo -n "\uf79f $(whoami)"
|
||||
}
|
||||
POWERLEVEL9K_CUSTOM_USER="user_with_skull"
|
||||
|
||||
# Custom wifi signal
|
||||
zsh_wifi_signal(){
|
||||
local signal=$(nmcli device wifi | grep yes | awk '{print $8}')
|
||||
local color='%F{yellow}'
|
||||
[[ $signal -gt 60 ]] && color='%F{green}'
|
||||
[[ $signal -lt 40 ]] && color='%F{red}'
|
||||
echo -n "%{$color%}\uf230 $signal%{%f%}" # \uf230 is
|
||||
}
|
||||
|
||||
POWERLEVEL9K_CUSTOM_WIFI_SIGNAL="zsh_wifi_signal"
|
||||
|
|
|
|||
Loading…
Reference in New Issue