diff options
| author | czjstmax <jstmaxlol@disroot.org> | 2026-05-16 17:21:36 +0200 |
|---|---|---|
| committer | czjstmax <jstmaxlol@disroot.org> | 2026-05-16 17:21:36 +0200 |
| commit | fc54ce1f280cae9027f52cfe025cebdf62f3d4cf (patch) | |
| tree | bb15d5d14f3e79510c6cffcff8732e478d85bbe7 /cfg/fish | |
| parent | fcd2c8c3de5778632f023d95ba55d9a9067ae2f2 (diff) | |
new right prompt
Signed-off-by: czjstmax <jstmaxlol@disroot.org>
Diffstat (limited to 'cfg/fish')
| -rw-r--r-- | cfg/fish/fish_right_prompt.fish | 16 |
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 |