Skip to content

Python script to use your pywal generated color palette with cosmic-term

Notifications You must be signed in to change notification settings

dharmik2319/pywal-cosmic-term

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

COSMIC Terminal is a terminal emulator for COSMIC. When I used it, I noticed that with the default theme, i.e., Cosmic Dark, my pywal colors were messed up.

To solve this I manually copied and pasted colors 0-7 and respective foreground and cursor color from the colors.sh file at ~/.cache/wal/colors.sh.

How to use

Generate theme

  • First, clone this repo:
git clone https://github.com/dharmik2319/pywal-cosmic-term.git
  • Then, after cding into the directory, install the dependencies.
pip install -r requirements.txt
  • Now the script is ready for use:
python main.py

That's it. For advanced usage run with -h flag. You can output to a custom file [Default: ./pywal.ron], use your own sample file [Default: ./COSMIC Dark.ron], and give the path to your pywal colors file [Default: ~/.cache/wal/colors].

Apply theme in cosmic-term

  • View > Colour Schemes > Dark/Light> Import > /path/to/pywal.ron

  • View > Settings > Colour scheme dark/light > pywal

Images for reference

  • Before: screenshot-2024-08-05-11-29-19

    (it may look like the above are normal colours, but with other commands like ls and htop the text is illegible. it is not fixed with wal -R]

  • After: screenshot-2024-08-05-11-28-10

(The terminal and other Cosmic components themed with cosmic_ext_bg_theme.)

Acknowledgement

About

Python script to use your pywal generated color palette with cosmic-term

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages