aboutsummaryrefslogtreecommitdiff
path: root/cfg/fish/fish_right_prompt.fish
diff options
context:
space:
mode:
authorczjstmax <jstmaxlol@disroot.org>2026-05-16 17:21:36 +0200
committerczjstmax <jstmaxlol@disroot.org>2026-05-16 17:21:36 +0200
commitfc54ce1f280cae9027f52cfe025cebdf62f3d4cf (patch)
treebb15d5d14f3e79510c6cffcff8732e478d85bbe7 /cfg/fish/fish_right_prompt.fish
parentfcd2c8c3de5778632f023d95ba55d9a9067ae2f2 (diff)
new right prompt
Signed-off-by: czjstmax <jstmaxlol@disroot.org>
Diffstat (limited to 'cfg/fish/fish_right_prompt.fish')
-rw-r--r--cfg/fish/fish_right_prompt.fish16
1 files changed, 2 insertions, 14 deletions
diff --git a/cfg/fish/fish_right_prompt.fish b/cfg/fish/fish_right_prompt.fish
index df41686..8346fb5 100644
--- a/cfg/fish/fish_right_prompt.fish
+++ b/cfg/fish/fish_right_prompt.fish
@@ -8,25 +8,13 @@ function fish_right_prompt
set color red
end
- # set inverse color
- if test $color = "white"
- set colorInverse red
- else
- set color white
- end
-
- # set date in dt
- #set dt $(date '+%Y-%m-%d')
-
# set battery capacity in bat
set bat $(cat /sys/class/power_supply/BAT0/capacity)
# move up a line
echo -e "\e[1A"
# print prompt
- echo -e (set_color $colorInverse)"( "(set_color $color)"stat.$last_status"(set_color $colorInverse)" | " \
- (set_color $color)"bat.$bat%"(set_color $colorInverse) " )"
- #(set_color $color)"$dt"(set_color $colorInverse)" )"
- # go back one line so the user doesn't overwrite fish_prompt
+ echo -e (set_color red)"( "(set_color $color)"$last_status"(set_color red)" |" \
+ (set_color white)"$bat%"(set_color red)" )"(set_color normal)
echo -e "\e[1B"
end