From fc54ce1f280cae9027f52cfe025cebdf62f3d4cf Mon Sep 17 00:00:00 2001 From: czjstmax Date: Sat, 16 May 2026 17:21:36 +0200 Subject: new right prompt Signed-off-by: czjstmax --- cfg/fish/fish_right_prompt.fish | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'cfg') 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 -- cgit v1.3.1