Update prompt and statusbar
Signed-off-by: Aleksandar 'The Cobra' Widulski <thecobra@riseup.net>
This commit is contained in:
parent
7f2dcac198
commit
e45f6ff387
|
@ -231,11 +231,11 @@ _volume() {
|
|||
if [ -z "$VOL" ] || [ "$VOL" -eq 0 ]; then
|
||||
printf "%s " "$icon_mut"
|
||||
elif [ "$VOL" -gt 66 ]; then
|
||||
printf "%s " "$icon_spk"
|
||||
printf "%s" "$icon_spk"
|
||||
elif [ "$VOL" -gt 33 ]; then
|
||||
printf "%s " "$icon_spm"
|
||||
printf "%s" "$icon_spm"
|
||||
elif [ "$VOL" -gt 0 ]; then
|
||||
printf "%s " "$icon_spl"
|
||||
printf "%s" "$icon_spl"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
6
.prompt
6
.prompt
|
@ -1,5 +1,5 @@
|
|||
#!/bin/bash
|
||||
# shebang for syntax highlightin purposes
|
||||
# shebang for syntax highlighting purposes
|
||||
|
||||
__debug_trap() {
|
||||
# Set necessary pre-command variables (PROMPT_COMMAND is a
|
||||
|
@ -154,8 +154,8 @@ __prompt() {
|
|||
local TIME="${_YLW}$(__get_cmd_time)"
|
||||
|
||||
# Random colored $ or #
|
||||
local RAND256="\[\033[38;2;$RANDOM;$RANDOM;${RANDOM}m\]"
|
||||
local IND="${RAND256}\\$"
|
||||
_RAND256="\[\033[38;2;$RANDOM;$RANDOM;${RANDOM}m\]"
|
||||
local IND="${_RAND256}\\$"
|
||||
|
||||
# Set the prompt
|
||||
PS1="${_NON}${SSH}${SIG}${UHD} ${TIME} ${IND} ${_NON}"
|
||||
|
|
Loading…
Reference in New Issue