diff --git a/README.md b/README.md new file mode 100644 index 0000000..b92c5d6 --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +# Zellij Pywal theme generator + +Generates [pywal](https://github.com/dylanaraps/pywal) theme for [Zellij](https://github.com/zellij-org/zellij) + +![Screenshot](./Screenshots/screenshot.png) + +## Usage + +Just run script `./generate-theme.sh` + +However, you need to run this script and restart zellij each time you change pywal colors. +So, make an alias or something like that 🧰. diff --git a/Screenshots/screenshot.png b/Screenshots/screenshot.png new file mode 100644 index 0000000..2b7a4a8 Binary files /dev/null and b/Screenshots/screenshot.png differ diff --git a/generate-theme.sh b/generate-theme.sh new file mode 100644 index 0000000..77a16be --- /dev/null +++ b/generate-theme.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +. "$HOME/.cache/wal/colors.sh" + +rm ~/.config/zellij/themes/pywal.kdl + +echo "themes {" >> ~/.config/zellij/themes/pywal.kdl +echo " default {" >> ~/.config/zellij/themes/pywal.kdl +echo " fg \"$color0\"" >> ~/.config/zellij/themes/pywal.kdl +echo " bg \"$color1\"" >> ~/.config/zellij/themes/pywal.kdl +echo " black \"$foreground\"" >> ~/.config/zellij/themes/pywal.kdl +echo " red \"$color2\"" >> ~/.config/zellij/themes/pywal.kdl +echo " green \"$color3\"" >> ~/.config/zellij/themes/pywal.kdl +echo " yellow \"$color4\"" >> ~/.config/zellij/themes/pywal.kdl +echo " blue \"$color5\"" >> ~/.config/zellij/themes/pywal.kdl +echo " magenta \"$color6\"" >> ~/.config/zellij/themes/pywal.kdl +echo " cyan \"$color7\"" >> ~/.config/zellij/themes/pywal.kdl +echo " white \"$color8\"" >> ~/.config/zellij/themes/pywal.kdl +echo " orange \"$color9\"" >> ~/.config/zellij/themes/pywal.kdl +echo " }" >> ~/.config/zellij/themes/pywal.kdl +echo "}" >> ~/.config/zellij/themes/pywal.kdl