diff --git a/README.md b/README.md index cc72321..b8ff046 100644 --- a/README.md +++ b/README.md @@ -188,7 +188,16 @@ include ~/.cache/wal/colors-kitty.conf _Next time you open Kitty, it will perfectly match your wallpaper._ -### Example 2: Dunst (Notification Daemon) +### Example 2: Ghostty + +Ghostty allows to link custom theme files. copy the `templates/colors-ghostty-custom` file to `~/.config/wal/templates`. +Then, in your Ghostty config file `~/.config/ghostty/config.ghostty` add this line: +```conf +config-file = ?~/.cache/wal/colors-ghostty-custom +``` +Ghostty will hot reload the theme and also save it for the next time you open it. + +### Example 3: Dunst (Notification Daemon) Pywal doesn't generate a theme for every application, hence you have to define some templates yourself in `~/.config/wal/templates`. In this case we will create a template for Dunst: diff --git a/templates/colors-ghostty-custom b/templates/colors-ghostty-custom new file mode 100644 index 0000000..6b9a897 --- /dev/null +++ b/templates/colors-ghostty-custom @@ -0,0 +1,25 @@ +# Pywal 16-color template for Ghostty +palette = 0={color0} +palette = 1={color1} +palette = 2={color2} +palette = 3={color3} +palette = 4={color4} +palette = 5={color5} +palette = 6={color6} +palette = 7={color7} +palette = 8={color8} +palette = 9={color9} +palette = 10={color10} +palette = 11={color11} +palette = 12={color12} +palette = 13={color13} +palette = 14={color14} +palette = 15={color15} + +background = {background} +foreground = {foreground} +cursor-color = {cursor} +selection-background = {color4} +selection-foreground = {background} + +background-opacity = 0.85