Skip to content
This repository has been archived by the owner on Feb 20, 2022. It is now read-only.

A bash script that generates themes for Telegram based on an arbitrary 16-colors palette or by sourcing the colors generated by pywal/wal.

License

Notifications You must be signed in to change notification settings

NyaomiDEV/telegram-palette-gen

 
 

Repository files navigation

Installation

NOW SUPPORTING FOLDERS!

git clone https://github.com/alecsferra/telegram-palette-gen
cd telegram-palette-gen
./telegram-palette-gen

Generate the color palette

# 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'

Set the color palette

To set the palette follow these steps:

  1. Open telegram, go to "settings/chat background" and click on choose from file:

instruction 1

  1. Toggle hidden files (in english that's show hidden files):

instruction 2

  1. Double click on ~/.cache/telegram-palette-gen/colors.tdesktop-palette:

instruction 3

  1. Click on keep changes:

instruction 4

  1. Double click on ~/.cache/telegram-palette-gen/background.png or jpg depending on your wallpaper:

instruction 5

Updating

You can update telegram-palette-gen by running git pull inside ~/.telegram-palette-gen:

cd ~/.telegram-palette-gen
git pull

Screenshots

demo

demo

demo

Palette specifications

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'

Important notes

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.

About

A bash script that generates themes for Telegram based on an arbitrary 16-colors palette or by sourcing the colors generated by pywal/wal.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%