feat: first version of generate-theme

this initial version has the basic script docs, the script generate-theme.sd and the screenshots folder
This commit is contained in:
nicoandres rodriguez 2023-09-10 08:47:14 +03:00
parent 3085084fe8
commit 80f4909e36
No known key found for this signature in database
GPG Key ID: 4941B307F0B515B9
3 changed files with 33 additions and 0 deletions

12
README.md Normal file
View File

@ -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 🧰.

BIN
Screenshots/screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

21
generate-theme.sh Normal file
View File

@ -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