Open shizonic opened 5 years ago
Should be easy, yes.
Very nice! Have big thanks!
Would be very nice to have it!
I sadly don't have the time to mess around with fish
currently. It's very easy to add a template file to pywal
.
Here's an example template file:
# Shell variables
# Generated by 'wal'
wallpaper="{wallpaper}"
# Special
background='{background}'
foreground='{foreground}'
cursor='{cursor}'
# Colors
color0='{color0}'
color1='{color1}'
color2='{color2}'
color3='{color3}'
color4='{color4}'
color5='{color5}'
color6='{color6}'
color7='{color7}'
color8='{color8}'
color9='{color9}'
color10='{color10}'
color11='{color11}'
color12='{color12}'
color13='{color13}'
color14='{color14}'
color15='{color15}'
All you need to do is use the color markers ({color1}
etc) and create a file in pywal/templates
. Good luck! If you need any help I'm here.
For anyone too lazy to write their own template, here's mine, saved under ~/.config/wal/templates/colors.fish
:
# set fish_color_normal normal
set fish_color_normal {foreground.strip}
# set fish_color_command 005fd7
set fish_color_command {color2.strip}
# set fish_color_param 00afff
set fish_color_param {color1.strip}
# set fish_color_redirection 00afff
set fish_color_redirection $fish_color_param
# set fish_color_comment 990000
set fish_color_comment {color8.strip}
set fish_color_error ff0000
# set fish_color_escape 00a6b2
set fish_color_escape {color5.strip}
# set fish_color_operator 00a6b2
set fish_color_operator $fish_color_escape
set fish_color_end {color4.strip}
set fish_color_quote {color6.strip}
set fish_color_autosuggestion 555 brblack
set fish_color_user brgreen
# set fish_color_host normal
set fish_color_host $fish_color_normal
set fish_color_valid_path --underline
set fish_color_cwd green
set fish_color_cwd_root red
set fish_color_match --background=brblue
set fish_color_search_match bryellow --background=brblack
set fish_color_selection white --bold --background=brblack
set fish_color_cancel -r
set fish_pager_color_prefix white --bold --underline
set fish_pager_color_completion
# set fish_pager_color_description B3A06D yellow
set fish_pager_color_description $fish_color_quote yellow
set fish_pager_color_progress brwhite --background=cyan
set fish_color_history_current --bold
Commented lines are defaults that have been changed. Because they are universal variables, resetting them can be a pain, so I've left the defaults in the file for reference. Also note that some variables haven't been changed and still hold their default values.
Then in config.fish
, I simply source ~/.cache/wal/colors.fish
.
@ForgottenUmbrella Nice, could you add it to the templates directory ?
My template isn't guaranteed to produce readable results (in fact I have encountered text that is too dark multiple times), which can be problematic since it makes reverting difficult. I'd like to hold off on adding it until improvements have been made to improve readability.
My template isn't guaranteed to produce readable results (in fact I have encountered text that is too dark multiple times), which can be problematic since it makes reverting difficult. I'd like to hold off on adding it until improvements have been made to improve readability.
I would appreciate it if you would like to share the improved version!
@mirthestam I never got around to improving it myself, but check out @mysy00 's pull request #568 if you can't wait for it to be merged.
It changes nothing for me. After source .cache/wal/colors.fish
nothing happens ):
UPD.
I found out that this line
cat ~/.cache/wal/sequences &
in config.fish works perfect for me
Would it be possible to add a new color config which can be used in fish shell?
You could generate the
fish_variables
file which looks like: