Text was sized for a 24" 1080p panel; on the 27" 1440p one it came out about 15% smaller, so Theme gains a typeScale of 1.1 that every font size derives from. Geometry is unchanged. The terminal, editor, btop, GTK and zathura share a set of muted earth hues that Theme said did not exist. They are now listed as c.content in palette.lua, and Theme says they are for content and never for chrome. Theme's easing curves take Hyprland's names (glide, standard, exit, drift) instead of crossing them, and the unused linear curve goes. The fish prompt drops the Takemi white and grey for the planet light and the muted grey, and no longer sources a pywal palette that would override YoRHa.
35 lines
1.5 KiB
Fish
35 lines
1.5 KiB
Fish
function fish_prompt --description 'Write out the prompt'
|
||
set -l last_status $status
|
||
set -l normal (set_color normal)
|
||
# The planet light at rest, the hull red when the last command failed —
|
||
# the prompt arrow is the one place the shell says "something is
|
||
# wrong", so it is the one place that earns the alarm. VCS info sits
|
||
# in the muted grey. Colours from quickshell/config/Theme.qml.
|
||
set -l status_color (set_color eef1ea)
|
||
set -l cwd_color (set_color $fish_color_cwd)
|
||
set -l vcs_color (set_color 79847a)
|
||
set -l prompt_status ""
|
||
|
||
# Since we display the prompt on a new line allow the directory names to be longer.
|
||
set -q fish_prompt_pwd_dir_length
|
||
or set -lx fish_prompt_pwd_dir_length 0
|
||
|
||
# Color the prompt differently when we're root
|
||
set -l suffix '❯'
|
||
if functions -q fish_is_root_user; and fish_is_root_user
|
||
if set -q fish_color_cwd_root
|
||
set cwd_color (set_color $fish_color_cwd_root)
|
||
end
|
||
set suffix '#'
|
||
end
|
||
|
||
# Color the prompt in red on error
|
||
if test $last_status -ne 0
|
||
set status_color (set_color $fish_color_error)
|
||
set prompt_status $status_color "[" $last_status "]" $normal
|
||
end
|
||
|
||
echo -s (prompt_login) ' ' $cwd_color (prompt_pwd) $vcs_color (fish_vcs_prompt) $normal ' ' $prompt_status
|
||
echo -n -s $status_color $suffix ' ' $normal
|
||
end
|