Giter VIP home page Giter VIP logo

wal-telegram's Introduction

Based on telegram-palette-gen which is not maintained anymore

Installation

Dependencies: imagemagick zip

Arch and Arch based (Manjaro,...)

install the wal-telegram-git package from the aur.

Manual

git clone --depth 1 https://github.com/guillaumeboehm/wal-telegram ~/.wal-telegram
cd ~/.wal-telegram
sudo make install
cd && rm ~/.wal-telegram

Generate the color palette

wal needs to be run separately from this program.

# 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

  1. Toggle hidden files

instruction 2

  1. Double click on ~/.cache/wal-telegram/wal.tdesktop-theme or ~/.cache/wal-telegram/palette.tdesktop-theme:

instruction 3

  1. Click on keep changes:

instruction 4

Updating

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

cd ~/.wal-telegram
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.

wal-telegram's People

Contributors

guillaumeboehm avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.