Update prompt and statusbar

Signed-off-by: Aleksandar 'The Cobra' Widulski <thecobra@riseup.net>
This commit is contained in:
Aleksandar 'The Cobra' Widulski 2022-04-22 22:13:29 -04:00
parent 7f2dcac198
commit e45f6ff387
No known key found for this signature in database
GPG Key ID: C8F7E7CA91BCBA64
2 changed files with 6 additions and 6 deletions

View File

@ -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
}

View File

@ -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}"