add prompt segment for vifm levels
This commit is contained in:
parent
f049be947c
commit
9b3fc772e4
|
@ -4971,6 +4971,18 @@ function instant_prompt_yazi() {
|
|||
_p9k_prompt_segment prompt_yazi $_p9k_color1 yellow YAZI_ICON 1 '$YAZI_LEVEL' '$YAZI_LEVEL'
|
||||
}
|
||||
|
||||
function prompt_vifm() {
|
||||
_p9k_prompt_segment $0 $_p9k_color1 yellow VIFM_ICON 0 '' $VIFM_LEVEL
|
||||
}
|
||||
|
||||
_p9k_prompt_vifm_init() {
|
||||
typeset -g "_p9k__segment_cond_${_p9k__prompt_side}[_p9k__segment_index]"='$VIFM_LEVEL'
|
||||
}
|
||||
|
||||
function instant_prompt_vifm() {
|
||||
_p9k_prompt_segment prompt_vifm $_p9k_color1 yellow VIFM_ICON 1 '$VIFM_LEVEL' '$VIFM_LEVEL'
|
||||
}
|
||||
|
||||
function prompt_midnight_commander() {
|
||||
local -i len=$#_p9k__prompt _p9k__has_upglob
|
||||
_p9k_prompt_segment $0 $_p9k_color1 yellow MIDNIGHT_COMMANDER_ICON 0 '' ''
|
||||
|
@ -5372,17 +5384,17 @@ _p9k_prompt_wifi_async() {
|
|||
# Output example (https://github.com/romkatv/powerlevel10k/pull/973#issuecomment-680251804):
|
||||
#
|
||||
# Connected to 74:83:c2:be:76:da (on wlp3s0)
|
||||
# SSID: DailyGrindGuest1
|
||||
# freq: 5745
|
||||
# RX: 35192066 bytes (27041 packets)
|
||||
# TX: 4090471 bytes (24287 packets)
|
||||
# signal: -52 dBm
|
||||
# rx bitrate: 243.0 MBit/s VHT-MCS 6 40MHz VHT-NSS 2
|
||||
# tx bitrate: 240.0 MBit/s VHT-MCS 5 40MHz short GI VHT-NSS 2
|
||||
# SSID: DailyGrindGuest1
|
||||
# freq: 5745
|
||||
# RX: 35192066 bytes (27041 packets)
|
||||
# TX: 4090471 bytes (24287 packets)
|
||||
# signal: -52 dBm
|
||||
# rx bitrate: 243.0 MBit/s VHT-MCS 6 40MHz VHT-NSS 2
|
||||
# tx bitrate: 240.0 MBit/s VHT-MCS 5 40MHz short GI VHT-NSS 2
|
||||
#
|
||||
# bss flags: short-slot-time
|
||||
# dtim period: 1
|
||||
# beacon int: 100
|
||||
# bss flags: short-slot-time
|
||||
# dtim period: 1
|
||||
# beacon int: 100
|
||||
lines=(${(f)"$(command iw dev $iface link)"}) || return 0
|
||||
local -a match mbegin mend
|
||||
for line in $lines; do
|
||||
|
|
Loading…
Reference in New Issue