Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guillaumeboehm/wal-telegram
A bash script that generates themes for Telegram based on an arbitrary 16-colors palette or by sourcing the colors generated by pywal/wal.
https://github.com/guillaumeboehm/wal-telegram
Last synced: 3 months ago
JSON representation
A bash script that generates themes for Telegram based on an arbitrary 16-colors palette or by sourcing the colors generated by pywal/wal.
- Host: GitHub
- URL: https://github.com/guillaumeboehm/wal-telegram
- Owner: guillaumeboehm
- License: mit
- Created: 2022-01-14T13:53:04.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-11-06T19:59:28.000Z (about 1 year ago)
- Last Synced: 2024-08-01T19:55:23.248Z (6 months ago)
- Language: Shell
- Size: 59.6 KB
- Stars: 48
- Watchers: 2
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - guillaumeboehm/wal-telegram - A bash script that generates themes for Telegram based on an arbitrary 16-colors palette or by sourcing the colors generated by pywal/wal. (Shell)
README
Based on [telegram-palette-gen] which is not maintained anymore
# /!\ This project is not maintained anymore
## For a maintained and reworked version use [walogram](https://codeberg.org/thirtysixpw/walogram)
## For a rust version of wal-telegram use [wal-telegram-rs](https://github.com/guillaumeboehm/wal-telegram-rs)# Installation
Dependencies:
[imagemagick]
[zip]## Arch and Arch based (Manjaro,...)
install the [wal-telegram-git] package from the aur.## Manual
```bash
git clone --depth 1 https://github.com/guillaumeboehm/wal-telegram ~/.wal-telegram
cd ~/.wal-telegram
sudo make install
cd && rm -rf ~/.wal-telegram
```# Generate the color palette
[wal] needs to be run separately from this program.```bash
# If you want to use the colors generated by pywal/wal (default behavior).
wal-telegram --wal# If you want to use a 16-colors palette of yours.
wal-telegram --palette '/path/to/palette.sh'# If you want to use a single color background based on your palette.
wal-telegram --wal --tiled
wal-telegram --palette '/path/to/palette.sh' --tiled# If you want a specific image as the background image.
wal-telegram --background# If you want to blur the background.
wal-telegram -g# If you want to restart telegram on generation.
wal-telegram -r# If you want to see detailed use of the script.
wal-telegram --help
```# Set the color palette
To set the palette follow these steps:
1. Open telegram, go to "settings/chat settings" and click on choose from file:
![instruction 1](https://user-images.githubusercontent.com/12833794/149529858-fd874908-e0c9-4fd2-b2cf-e4b399ca6e0b.png)
2. Toggle hidden files
![instruction 2](https://user-images.githubusercontent.com/12833794/149529871-7e78aa31-cd17-4b20-a11e-e310d8ad0320.png)
3. Double click on ~/.cache/wal-telegram/wal.tdesktop-theme or ~/.cache/wal-telegram/palette.tdesktop-theme:
![instruction 3](https://user-images.githubusercontent.com/12833794/149529880-6ec34462-e0f5-4e84-bb48-90f7a0041221.png)
4. Click on keep changes:
![instruction 4](https://user-images.githubusercontent.com/12833794/149529889-d523d0f2-6adf-4650-93b2-d101b8472584.png)
# Updating
You can update wal-telegram by running git pull inside ~/.wal-telegram:
```bash
cd ~/.wal-telegram
git pull
```# Screenshots
# Palette specifications
If you want, you can import the colors from a shell script that needs to be written in the following way:
```bash
# 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.
[pywal]: https://github.com/dylanaraps/pywal
[wal]: https://github.com/dylanaraps/wal
[telegram-palette-gen]: https://github.com/agnipau/telegram-palette-gen
[wal-telegram-git]: https://aur.archlinux.org/packages/wal-telegram-git/
[imagemagick]: https://imagemagick.org/index.php
[zip]: http://infozip.sourceforge.net/Zip.html