NOW SUPPORTING FOLDERS!
git clone https://github.com/alecsferra/telegram-palette-gen
cd telegram-palette-gen
./telegram-palette-gen
# If you want to use the colors generated by pywal/wal.
~/.telegram-palette-gen/telegram-palette-gen --wal
# If you want to use a 16-colors palette of yours.
~/.telegram-palette-gen/telegram-palette-gen --palette '/path/to/palette.sh'
To set the palette follow these steps:
- Open telegram, go to "settings/chat background" and click on choose from file:
- Toggle hidden files (in english that's show hidden files):
- Double click on ~/.cache/telegram-palette-gen/colors.tdesktop-palette:
- Click on keep changes:
- Double click on ~/.cache/telegram-palette-gen/background.png or jpg depending on your wallpaper:
You can update telegram-palette-gen by running git pull inside ~/.telegram-palette-gen:
cd ~/.telegram-palette-gen
git pull
If you want, you can import the colors from a shell script that needs to be written in the following way:
# For example:
color0='#263238'
color1='#f07178'
color2='#c3e88d'
color3='#ffcb6b'
color4='#82aaff'
color5='#c792ea'
color6='#89ddff'
color7='#eeffff'
color8='#546e7a'
color9='#f78c6c'
color10='#c3e88d'
color11='#ffcb6b'
color12='#82aaff'
color13='#37474f'
color14='#89ddff'
color15='#eeffff'
Some color constants in colors.tdesktop-palette are marked as // [UNTESTED], this because I couldn't find the elements responsable in the app. So if you find something strange open an issue (with a screenshot of the element and it's name if possible) and I'll fix.
You can also use light colorschemes, no need for extra option, just run the script normally.
The palette works with wal too, not just pywal and with every color palette that respects the specifications mentioned above.