pywal16 3.5.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pywal16-3.5.2/.pylintrc +16 -0
- pywal16-3.5.2/LICENSE.md +9 -0
- pywal16-3.5.2/MANIFEST.in +11 -0
- pywal16-3.5.2/PKG-INFO +41 -0
- pywal16-3.5.2/README.md +22 -0
- pywal16-3.5.2/pywal/__init__.py +31 -0
- pywal16-3.5.2/pywal/__main__.py +240 -0
- pywal16-3.5.2/pywal/backends/__init__.py +10 -0
- pywal16-3.5.2/pywal/backends/colorthief.py +54 -0
- pywal16-3.5.2/pywal/backends/colorz.py +43 -0
- pywal16-3.5.2/pywal/backends/fast_colorthief.py +37 -0
- pywal16-3.5.2/pywal/backends/haishoku.py +37 -0
- pywal16-3.5.2/pywal/backends/schemer2.py +35 -0
- pywal16-3.5.2/pywal/backends/wal.py +69 -0
- pywal16-3.5.2/pywal/colors.py +224 -0
- pywal16-3.5.2/pywal/colorschemes/dark/3024.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/ashes.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-3024.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-apathy.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-ashes.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-atelier-cave.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-atelier-dune.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-atelier-estuary.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-atelier-forest.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-atelier-heath.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-atelier-lakeside.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-atelier-plateau.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-atelier-savanna.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-atelier-seaside.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-atelier-sulphurpool.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-bespin.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-black-metal-bathory.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-black-metal-burzum.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-black-metal-funeral.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-black-metal-gorgoroth.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-black-metal-immortal.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-black-metal-khold.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-black-metal-marduk.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-black-metal-mayhem.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-black-metal-nile.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-black-metal-venom.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-black-metal.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-brewer.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-bright.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-brushtrees.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-chalk.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-circus.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-classic.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-codeschool.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-default.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-dracula.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-eighties.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-embers.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-flat.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-google.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-grayscale.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-greenscreen.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-gruvbox-hard.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-gruvbox-medium.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-gruvbox-pale.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-gruvbox-soft.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-harmonic.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-hopscotch.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-icy.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-irblack.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-isotope.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-macintosh.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-marrakesh.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-materia.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-material-palenight.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-material.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-materialer.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-mellow-purple.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-mocha.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-monokai.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-nord.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-ocean.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-oceanicnext.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-onedark.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-outrun.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-paraiso.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-phd.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-pico.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-pop.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-porple.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-railscasts.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-rebecca.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-seti.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-snazzy.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-solarflare.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-solarized.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-spacemacs.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-summerfruit.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-tomorrow-night.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-tube.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-twilight.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-unikitty.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-woodland.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-xcode-dusk.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16-zenburn.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/base16tooth.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/darktooth.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-5725.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-amiox.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-bark.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-blend.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-blok.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-bluetype.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-blumune.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-book.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-branch.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-brownstone.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-bulb.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-chaires.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-coco.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-corduroy.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-depth.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-designr.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-diner.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-escen.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-fendr.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-flapr.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-forst.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-fury.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-harbing.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-kit.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-leaf.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-link.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-mattd.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-novmbr.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-owl.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-paints.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-parkd.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-pastely.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-petal.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-poly.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-prevail.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-provrb.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-raild.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-relax.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-scag.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-scape.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-shade.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-simplicity.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-skigh.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-slate.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-soundwave.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-spire.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-sprout.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-squares.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-stv.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-subtle.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-sundr.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-tealights.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-traffic.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-transposet.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-urban.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-vans.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-victory.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-view.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/dkeg-wintry.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/gruvbox.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/hybrid-material.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/monokai.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-astromouse.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-belge.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-bitmute.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-cloud.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-colorfulcolors.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-dawn.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-deafened.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-derp.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-digerati.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-doomicideocean.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-dotshare.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-dwmrob.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-eqie6.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-euphrasia.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-gjm.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-gnometerm.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-gotham.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-gslob-nature-suede.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-hund.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-hybrid.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-insignificato.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-invisibone.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-jasonwryan.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-kasugano.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-material.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-mikado.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-mikazuki.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-monokai.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-muse.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-nancy.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-navy-and-ivory.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-neon.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-numixdarkest.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-orangish.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-parker_brothers.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-phrak1.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-pretty-and-pastel.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-rasi.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-rezza.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-rydgel.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-s3r0-modified.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-sexcolors.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-simple_rainbow.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-splurge.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-swayr.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-sweetlove.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-tango.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-tangoesque.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-tartan.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-theme2.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-thwump.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-tlh.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-trim-yer-beard.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-user-77-mashup-colors.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-vacuous2.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-visibone-alt-2.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-visibone.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-x-dotshare.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/sexy-zenburn.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/solarized.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/tempus_autumn.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/tempus_dusk.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/tempus_future.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/tempus_rift.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/tempus_spring.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/tempus_summer.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/tempus_warp.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/tempus_winter.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/vscode.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/dark/zenburn.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/3024.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/ashes.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/base16-atelier-cave.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/base16-atelier-dune.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/base16-atelier-estuary.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/base16-atelier-forest.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/base16-atelier-heath.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/base16-atelier-lakeside.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/base16-atelier-plateau.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/base16-atelier-savanna.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/base16-atelier-seaside.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/base16-atelier-sulphurpool.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/base16-classic.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/base16-cupcake.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/base16-cupertino.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/base16-default.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/base16-github.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/base16-google.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/base16-grayscale.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/base16-gruvbox-hard.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/base16-gruvbox-medium.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/base16-gruvbox-soft.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/base16-harmonic.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/base16-materialer.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/base16-mexico.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/base16-one.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/base16-shapeshifter.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/base16-solarized.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/base16-summerfruit.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/base16-tomorrow.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/base16-unikitty.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/github.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/sexy-mostly-bright.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/solarized.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/tempus_dawn.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/tempus_fugit.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/tempus_past.json +1 -0
- pywal16-3.5.2/pywal/colorschemes/light/tempus_totus.json +1 -0
- pywal16-3.5.2/pywal/export.py +146 -0
- pywal16-3.5.2/pywal/image.py +109 -0
- pywal16-3.5.2/pywal/reload.py +105 -0
- pywal16-3.5.2/pywal/scripts/gtk_reload.py +27 -0
- pywal16-3.5.2/pywal/sequences.py +95 -0
- pywal16-3.5.2/pywal/settings.py +28 -0
- pywal16-3.5.2/pywal/templates/Colors.hs +37 -0
- pywal16-3.5.2/pywal/templates/colors +16 -0
- pywal16-3.5.2/pywal/templates/colors--nodim-alacritty.yml +53 -0
- pywal16-3.5.2/pywal/templates/colors-alacritty.toml +62 -0
- pywal16-3.5.2/pywal/templates/colors-alacritty.yml +63 -0
- pywal16-3.5.2/pywal/templates/colors-kitty.conf +30 -0
- pywal16-3.5.2/pywal/templates/colors-konsole.colorscheme +63 -0
- pywal16-3.5.2/pywal/templates/colors-leftwm-theme.ron +9 -0
- pywal16-3.5.2/pywal/templates/colors-nqq.css +31 -0
- pywal16-3.5.2/pywal/templates/colors-oomox +17 -0
- pywal16-3.5.2/pywal/templates/colors-putty.reg +26 -0
- pywal16-3.5.2/pywal/templates/colors-rgb +16 -0
- pywal16-3.5.2/pywal/templates/colors-rofi-dark.rasi +166 -0
- pywal16-3.5.2/pywal/templates/colors-rofi-light.rasi +166 -0
- pywal16-3.5.2/pywal/templates/colors-speedcrunch.json +15 -0
- pywal16-3.5.2/pywal/templates/colors-sway +21 -0
- pywal16-3.5.2/pywal/templates/colors-themer.js +20 -0
- pywal16-3.5.2/pywal/templates/colors-tilix.json +35 -0
- pywal16-3.5.2/pywal/templates/colors-tty.sh +19 -0
- pywal16-3.5.2/pywal/templates/colors-vscode.json +14 -0
- pywal16-3.5.2/pywal/templates/colors-wal-dmenu.h +6 -0
- pywal16-3.5.2/pywal/templates/colors-wal-dwm.h +18 -0
- pywal16-3.5.2/pywal/templates/colors-wal-st.h +34 -0
- pywal16-3.5.2/pywal/templates/colors-wal-tabbed.h +6 -0
- pywal16-3.5.2/pywal/templates/colors-wal.vim +23 -0
- pywal16-3.5.2/pywal/templates/colors-waybar.css +20 -0
- pywal16-3.5.2/pywal/templates/colors.Xresources +68 -0
- pywal16-3.5.2/pywal/templates/colors.css +28 -0
- pywal16-3.5.2/pywal/templates/colors.hs +37 -0
- pywal16-3.5.2/pywal/templates/colors.json +28 -0
- pywal16-3.5.2/pywal/templates/colors.scss +26 -0
- pywal16-3.5.2/pywal/templates/colors.sh +36 -0
- pywal16-3.5.2/pywal/templates/colors.styl +24 -0
- pywal16-3.5.2/pywal/templates/colors.yml +24 -0
- pywal16-3.5.2/pywal/theme.py +174 -0
- pywal16-3.5.2/pywal/util.py +296 -0
- pywal16-3.5.2/pywal/wallpaper.py +221 -0
- pywal16-3.5.2/pywal16.egg-info/PKG-INFO +41 -0
- pywal16-3.5.2/pywal16.egg-info/SOURCES.txt +334 -0
- pywal16-3.5.2/pywal16.egg-info/dependency_links.txt +1 -0
- pywal16-3.5.2/pywal16.egg-info/entry_points.txt +2 -0
- pywal16-3.5.2/pywal16.egg-info/not-zip-safe +1 -0
- pywal16-3.5.2/pywal16.egg-info/top_level.txt +1 -0
- pywal16-3.5.2/setup.cfg +4 -0
- pywal16-3.5.2/setup.py +39 -0
- pywal16-3.5.2/tests/__init__.py +4 -0
- pywal16-3.5.2/tests/test_colors.py +43 -0
- pywal16-3.5.2/tests/test_export.py +56 -0
- pywal16-3.5.2/tests/test_files/test.jpg +0 -0
- pywal16-3.5.2/tests/test_files/test.png +0 -0
- pywal16-3.5.2/tests/test_files/test2.jpg +0 -0
- pywal16-3.5.2/tests/test_files/test_file +1 -0
- pywal16-3.5.2/tests/test_files/test_file.json +28 -0
- pywal16-3.5.2/tests/test_files/test_file2.json +25 -0
- pywal16-3.5.2/tests/test_files/test_file3.json +29 -0
- pywal16-3.5.2/tests/test_image.py +31 -0
- pywal16-3.5.2/tests/test_sequences.py +55 -0
- pywal16-3.5.2/tests/test_util.py +99 -0
pywal16-3.5.2/.pylintrc
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
[BASIC]
|
|
2
|
+
good-names=i,j,k,n,x,y,fg,bg,r,g,b,i3,r1,r2,r3,g1,g2,g3,b1,b2,b3,h,s,v,l
|
|
3
|
+
|
|
4
|
+
[MESSAGES CONTROL]
|
|
5
|
+
# inconsistent-return-statements:
|
|
6
|
+
# Disabled as it's a false-positive and a bug in pylint.
|
|
7
|
+
# too-many-branches:
|
|
8
|
+
# Disabled as it's a non-issue and only occurs in the
|
|
9
|
+
# process_args() function.
|
|
10
|
+
# too-many-statements:
|
|
11
|
+
# Disabled as it's a non-issue and only occurs in the
|
|
12
|
+
# process_args() function.
|
|
13
|
+
disable=inconsistent-return-statements,too-many-branches,too-many-statements,too-many-return-statements
|
|
14
|
+
|
|
15
|
+
[SIMILARITIES]
|
|
16
|
+
ignore-imports=y
|
pywal16-3.5.2/LICENSE.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2017 Dylan Araps
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
include pywal/templates/*
|
|
2
|
+
include pywal/backends/*
|
|
3
|
+
include pywal/scripts/*
|
|
4
|
+
include pywal/colorschemes/*
|
|
5
|
+
include pywal/colorschemes/light/*
|
|
6
|
+
include pywal/colorschemes/dark/*
|
|
7
|
+
include tests/*
|
|
8
|
+
include tests/test_files/*
|
|
9
|
+
include .pylintrc
|
|
10
|
+
include README.md
|
|
11
|
+
include LICENSE.md
|
pywal16-3.5.2/PKG-INFO
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: pywal16
|
|
3
|
+
Version: 3.5.2
|
|
4
|
+
Summary: Generate and change color-schemes on the fly
|
|
5
|
+
Home-page: https://github.com/eylles/pywal16
|
|
6
|
+
Download-URL: https://github.com/eylles/pywal16/archive/3.5.2.tar.gz
|
|
7
|
+
Author: Dylan Araps
|
|
8
|
+
Author-email: dylan.araps@gmail.com
|
|
9
|
+
License: MIT
|
|
10
|
+
Keywords: wal colorscheme terminal-emulators changing-colorschemes
|
|
11
|
+
Classifier: Environment :: X11 Applications
|
|
12
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
13
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.5
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.6
|
|
16
|
+
Requires-Python: >=3.5
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
License-File: LICENSE.md
|
|
19
|
+
|
|
20
|
+
## This project is a 16 colors fork of [pywal](https://github.com/dylanaraps/pywal)
|
|
21
|
+
<h3 align="center"><img src="https://i.imgur.com/5WgMACe.gif" width="200px"></h3>
|
|
22
|
+
<p align="center">Generate and change color-schemes on the fly.</p>
|
|
23
|
+
|
|
24
|
+
<p align="center">
|
|
25
|
+
<a href="./LICENSE.md"><img src="https://img.shields.io/badge/license-MIT-blue.svg"></a>
|
|
26
|
+
<a href="https://pypi.python.org/pypi/pywal16/"><img src="https://img.shields.io/pypi/v/pywal16.svg"></a>
|
|
27
|
+
</p>
|
|
28
|
+
|
|
29
|
+
<img src="https://i.imgur.com/V1FuvJP.png" alt="img" align="right" width="400px">
|
|
30
|
+
|
|
31
|
+
Pywal is a tool that generates a color palette from the dominant colors in an image. It then applies the colors system-wide and on-the-fly in all of your favourite programs.
|
|
32
|
+
|
|
33
|
+
There are currently 5 supported color generation backends, each providing a different palette of colors from each image. You're bound to find an appealing color-scheme.
|
|
34
|
+
|
|
35
|
+
Pywal also supports predefined themes and has over 250 themes built-in. You can also create your own theme files to share with others.
|
|
36
|
+
|
|
37
|
+
The goal of Pywal was to be as out of the way as possible. It doesn't modify any of your existing configuration files. Instead it works around them and provides tools to integrate your system as you see fit.
|
|
38
|
+
|
|
39
|
+
Terminal emulators and TTYs have their color-schemes updated in real-time with no delay. With minimal configuration this functionality can be extended to almost anything running on your system.
|
|
40
|
+
|
|
41
|
+
### More: \[[Installation](https://github.com/eylles/pywal16/wiki/Installation)] \[[Getting Started](https://github.com/eylles/pywal16/wiki/Getting-Started)] \[[Customization](https://github.com/eylles/pywal16/wiki/Customization)] \[[Wiki](https://github.com/eylles/pywal16/wiki)] \[[Screenshots](https://www.reddit.com/r/unixporn/search?q=wal&restrict_sr=on&sort=relevance&t=all)]
|
pywal16-3.5.2/README.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
## This project is a 16 colors fork of [pywal](https://github.com/dylanaraps/pywal)
|
|
2
|
+
<h3 align="center"><img src="https://i.imgur.com/5WgMACe.gif" width="200px"></h3>
|
|
3
|
+
<p align="center">Generate and change color-schemes on the fly.</p>
|
|
4
|
+
|
|
5
|
+
<p align="center">
|
|
6
|
+
<a href="./LICENSE.md"><img src="https://img.shields.io/badge/license-MIT-blue.svg"></a>
|
|
7
|
+
<a href="https://pypi.python.org/pypi/pywal16/"><img src="https://img.shields.io/pypi/v/pywal16.svg"></a>
|
|
8
|
+
</p>
|
|
9
|
+
|
|
10
|
+
<img src="https://i.imgur.com/V1FuvJP.png" alt="img" align="right" width="400px">
|
|
11
|
+
|
|
12
|
+
Pywal is a tool that generates a color palette from the dominant colors in an image. It then applies the colors system-wide and on-the-fly in all of your favourite programs.
|
|
13
|
+
|
|
14
|
+
There are currently 5 supported color generation backends, each providing a different palette of colors from each image. You're bound to find an appealing color-scheme.
|
|
15
|
+
|
|
16
|
+
Pywal also supports predefined themes and has over 250 themes built-in. You can also create your own theme files to share with others.
|
|
17
|
+
|
|
18
|
+
The goal of Pywal was to be as out of the way as possible. It doesn't modify any of your existing configuration files. Instead it works around them and provides tools to integrate your system as you see fit.
|
|
19
|
+
|
|
20
|
+
Terminal emulators and TTYs have their color-schemes updated in real-time with no delay. With minimal configuration this functionality can be extended to almost anything running on your system.
|
|
21
|
+
|
|
22
|
+
### More: \[[Installation](https://github.com/eylles/pywal16/wiki/Installation)] \[[Getting Started](https://github.com/eylles/pywal16/wiki/Getting-Started)] \[[Customization](https://github.com/eylles/pywal16/wiki/Customization)] \[[Wiki](https://github.com/eylles/pywal16/wiki)] \[[Screenshots](https://www.reddit.com/r/unixporn/search?q=wal&restrict_sr=on&sort=relevance&t=all)]
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"""
|
|
2
|
+
'||
|
|
3
|
+
... ... .... ... ... ... ... .... ||
|
|
4
|
+
||' || '|. | || || | '' .|| ||
|
|
5
|
+
|| | '|.| ||| ||| .|' || ||
|
|
6
|
+
||...' '| | | '|..'|' .||.
|
|
7
|
+
|| .. |
|
|
8
|
+
'''' ''
|
|
9
|
+
Created by Dylan Araps.
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
from .settings import __version__, __cache_version__
|
|
13
|
+
from . import colors
|
|
14
|
+
from . import export
|
|
15
|
+
from . import image
|
|
16
|
+
from . import reload
|
|
17
|
+
from . import sequences
|
|
18
|
+
from . import theme
|
|
19
|
+
from . import wallpaper
|
|
20
|
+
|
|
21
|
+
__all__ = [
|
|
22
|
+
"__version__",
|
|
23
|
+
"__cache_version__",
|
|
24
|
+
"colors",
|
|
25
|
+
"export",
|
|
26
|
+
"image",
|
|
27
|
+
"reload",
|
|
28
|
+
"sequences",
|
|
29
|
+
"theme",
|
|
30
|
+
"wallpaper",
|
|
31
|
+
]
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
"""
|
|
2
|
+
'||
|
|
3
|
+
... ... .... ... ... ... ... .... ||
|
|
4
|
+
||' || '|. | || || | '' .|| ||
|
|
5
|
+
|| | '|.| ||| ||| .|' || ||
|
|
6
|
+
||...' '| | | '|..'|' .||.
|
|
7
|
+
|| .. |
|
|
8
|
+
'''' ''
|
|
9
|
+
Created by Dylan Araps.
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
import argparse
|
|
13
|
+
import logging
|
|
14
|
+
import os
|
|
15
|
+
import shutil
|
|
16
|
+
import sys
|
|
17
|
+
|
|
18
|
+
from .settings import __version__, CACHE_DIR, CONF_DIR
|
|
19
|
+
from . import colors
|
|
20
|
+
from . import export
|
|
21
|
+
from . import image
|
|
22
|
+
from . import reload
|
|
23
|
+
from . import sequences
|
|
24
|
+
from . import theme
|
|
25
|
+
from . import util
|
|
26
|
+
from . import wallpaper
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def get_args():
|
|
30
|
+
"""Get the script arguments."""
|
|
31
|
+
description = "wal - Generate colorschemes on the fly"
|
|
32
|
+
arg = argparse.ArgumentParser(description=description)
|
|
33
|
+
|
|
34
|
+
arg.add_argument("-a", metavar="\"alpha\"",
|
|
35
|
+
help="Set terminal background transparency. \
|
|
36
|
+
*Only works in URxvt*")
|
|
37
|
+
|
|
38
|
+
arg.add_argument("-b", metavar="background",
|
|
39
|
+
help="Custom background color to use.")
|
|
40
|
+
|
|
41
|
+
arg.add_argument("--backend", metavar="backend",
|
|
42
|
+
help="Which color backend to use. \
|
|
43
|
+
Use 'wal --backend' to list backends.",
|
|
44
|
+
const="list_backends", type=str, nargs="?")
|
|
45
|
+
|
|
46
|
+
arg.add_argument("--theme", "-f", metavar="/path/to/file or theme_name",
|
|
47
|
+
help="Which colorscheme file to use. \
|
|
48
|
+
Use 'wal --theme' to list builtin and user themes.",
|
|
49
|
+
const="list_themes", nargs="?")
|
|
50
|
+
|
|
51
|
+
arg.add_argument("--iterative", action="store_true",
|
|
52
|
+
help="When pywal is given a directory as input and this "
|
|
53
|
+
"flag is used: Go through the images in order "
|
|
54
|
+
"instead of shuffled.")
|
|
55
|
+
|
|
56
|
+
arg.add_argument("--cols16", metavar="method", required=False, nargs='?',
|
|
57
|
+
default=False, const="darken",
|
|
58
|
+
choices=['darken', 'lighten'],
|
|
59
|
+
help='Use 16 color output '
|
|
60
|
+
'\"darken\" or \"lighten\" default: darken')
|
|
61
|
+
|
|
62
|
+
arg.add_argument("--recursive", action="store_true",
|
|
63
|
+
help="When pywal is given a directory as input and this "
|
|
64
|
+
"flag is used: Search for images recursively in "
|
|
65
|
+
"subdirectories instead of the root only.")
|
|
66
|
+
|
|
67
|
+
arg.add_argument("--saturate", metavar="0.0-1.0",
|
|
68
|
+
help="Set the color saturation.")
|
|
69
|
+
|
|
70
|
+
arg.add_argument("--preview", action="store_true",
|
|
71
|
+
help="Print the current color palette.")
|
|
72
|
+
|
|
73
|
+
arg.add_argument("--vte", action="store_true",
|
|
74
|
+
help="Fix text-artifacts printed in VTE terminals.")
|
|
75
|
+
|
|
76
|
+
arg.add_argument("-c", action="store_true",
|
|
77
|
+
help="Delete all cached colorschemes.")
|
|
78
|
+
|
|
79
|
+
arg.add_argument("-i", metavar="\"/path/to/img.jpg\"",
|
|
80
|
+
help="Which image or directory to use.")
|
|
81
|
+
|
|
82
|
+
arg.add_argument("-l", action="store_true",
|
|
83
|
+
help="Generate a light colorscheme.")
|
|
84
|
+
|
|
85
|
+
arg.add_argument("-n", action="store_true",
|
|
86
|
+
help="Skip setting the wallpaper.")
|
|
87
|
+
|
|
88
|
+
arg.add_argument("-o", metavar="\"script_name\"", action="append",
|
|
89
|
+
help="External script to run after \"wal\".")
|
|
90
|
+
|
|
91
|
+
arg.add_argument("-p", metavar="\"theme_name\"",
|
|
92
|
+
help="permanently save theme to "
|
|
93
|
+
"$XDG_CONFIG_HOME/wal/colorschemes with "
|
|
94
|
+
"the specified name")
|
|
95
|
+
|
|
96
|
+
arg.add_argument("-q", action="store_true",
|
|
97
|
+
help="Quiet mode, don\'t print anything.")
|
|
98
|
+
|
|
99
|
+
arg.add_argument("-r", action="store_true",
|
|
100
|
+
help="'wal -r' is deprecated: Use \
|
|
101
|
+
(cat ~/.cache/wal/sequences &) instead.")
|
|
102
|
+
|
|
103
|
+
arg.add_argument("-R", action="store_true",
|
|
104
|
+
help="Restore previous colorscheme.")
|
|
105
|
+
|
|
106
|
+
arg.add_argument("-s", action="store_true",
|
|
107
|
+
help="Skip changing colors in terminals.")
|
|
108
|
+
|
|
109
|
+
arg.add_argument("-t", action="store_true",
|
|
110
|
+
help="Skip changing colors in tty.")
|
|
111
|
+
|
|
112
|
+
arg.add_argument("-v", action="store_true",
|
|
113
|
+
help="Print \"wal\" version.")
|
|
114
|
+
|
|
115
|
+
arg.add_argument("-w", action="store_true",
|
|
116
|
+
help="Use last used wallpaper for color generation.")
|
|
117
|
+
|
|
118
|
+
arg.add_argument("-e", action="store_true",
|
|
119
|
+
help="Skip reloading gtk/xrdb/i3/sway/polybar")
|
|
120
|
+
|
|
121
|
+
return arg
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
def parse_args_exit(parser):
|
|
125
|
+
"""Process args that exit."""
|
|
126
|
+
args = parser.parse_args()
|
|
127
|
+
|
|
128
|
+
if len(sys.argv) <= 1:
|
|
129
|
+
parser.print_help()
|
|
130
|
+
sys.exit(1)
|
|
131
|
+
|
|
132
|
+
if args.v:
|
|
133
|
+
parser.exit(0, "wal %s\n" % __version__)
|
|
134
|
+
|
|
135
|
+
if args.preview:
|
|
136
|
+
print("Current colorscheme:", sep='')
|
|
137
|
+
colors.palette()
|
|
138
|
+
sys.exit(0)
|
|
139
|
+
|
|
140
|
+
if args.r:
|
|
141
|
+
reload.colors()
|
|
142
|
+
sys.exit(0)
|
|
143
|
+
|
|
144
|
+
if args.c:
|
|
145
|
+
scheme_dir = os.path.join(CACHE_DIR, "schemes")
|
|
146
|
+
shutil.rmtree(scheme_dir, ignore_errors=True)
|
|
147
|
+
sys.exit(0)
|
|
148
|
+
|
|
149
|
+
if not args.i and \
|
|
150
|
+
not args.theme and \
|
|
151
|
+
not args.R and \
|
|
152
|
+
not args.w and \
|
|
153
|
+
not args.backend:
|
|
154
|
+
parser.error("No input specified.\n"
|
|
155
|
+
"--backend, --theme, -i or -R are required.")
|
|
156
|
+
|
|
157
|
+
if args.theme == "list_themes":
|
|
158
|
+
theme.list_out()
|
|
159
|
+
sys.exit(0)
|
|
160
|
+
|
|
161
|
+
if args.backend == "list_backends":
|
|
162
|
+
print("\n - ".join(["\033[1;32mBackends\033[0m:",
|
|
163
|
+
*colors.list_backends()]))
|
|
164
|
+
sys.exit(0)
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
def parse_args(parser):
|
|
168
|
+
"""Process args."""
|
|
169
|
+
args = parser.parse_args()
|
|
170
|
+
|
|
171
|
+
if args.q:
|
|
172
|
+
logging.getLogger().disabled = True
|
|
173
|
+
sys.stdout = sys.stderr = open(os.devnull, "w")
|
|
174
|
+
|
|
175
|
+
if args.a:
|
|
176
|
+
util.Color.alpha_num = args.a
|
|
177
|
+
|
|
178
|
+
if args.i and not args.theme:
|
|
179
|
+
image_file = image.get(args.i, iterative=args.iterative,
|
|
180
|
+
recursive=args.recursive)
|
|
181
|
+
colors_plain = colors.get(image_file, args.l, args.cols16, args.backend,
|
|
182
|
+
sat=args.saturate)
|
|
183
|
+
|
|
184
|
+
if args.theme:
|
|
185
|
+
colors_plain = theme.file(args.theme, args.l)
|
|
186
|
+
if args.i:
|
|
187
|
+
colors_plain["wallpaper"] = args.i
|
|
188
|
+
|
|
189
|
+
if args.R:
|
|
190
|
+
colors_plain = theme.file(os.path.join(CACHE_DIR, "colors.json"))
|
|
191
|
+
|
|
192
|
+
if args.w:
|
|
193
|
+
cached_wallpaper = util.read_file(os.path.join(CACHE_DIR, "wal"))
|
|
194
|
+
colors_plain = colors.get(cached_wallpaper[0], args.l, args.cols16, args.backend,
|
|
195
|
+
sat=args.saturate)
|
|
196
|
+
|
|
197
|
+
if args.b:
|
|
198
|
+
args.b = "#%s" % (args.b.strip("#"))
|
|
199
|
+
colors_plain["special"]["background"] = args.b
|
|
200
|
+
colors_plain["colors"]["color0"] = args.b
|
|
201
|
+
|
|
202
|
+
if not args.n:
|
|
203
|
+
wallpaper.change(colors_plain["wallpaper"])
|
|
204
|
+
|
|
205
|
+
if args.p:
|
|
206
|
+
theme.save(colors_plain, args.p, args.l)
|
|
207
|
+
|
|
208
|
+
sequences.send(colors_plain, to_send=not args.s, vte_fix=args.vte)
|
|
209
|
+
|
|
210
|
+
if sys.stdout.isatty():
|
|
211
|
+
colors.palette()
|
|
212
|
+
|
|
213
|
+
export.every(colors_plain)
|
|
214
|
+
|
|
215
|
+
if not args.e:
|
|
216
|
+
reload.env(tty_reload=not args.t)
|
|
217
|
+
|
|
218
|
+
if args.o:
|
|
219
|
+
for cmd in args.o:
|
|
220
|
+
util.disown([cmd])
|
|
221
|
+
|
|
222
|
+
if not args.e:
|
|
223
|
+
reload.gtk()
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
def main():
|
|
227
|
+
"""Main script function."""
|
|
228
|
+
util.create_dir(os.path.join(CONF_DIR, "templates"))
|
|
229
|
+
util.create_dir(os.path.join(CONF_DIR, "colorschemes/light/"))
|
|
230
|
+
util.create_dir(os.path.join(CONF_DIR, "colorschemes/dark/"))
|
|
231
|
+
|
|
232
|
+
util.setup_logging()
|
|
233
|
+
parser = get_args()
|
|
234
|
+
|
|
235
|
+
parse_args_exit(parser)
|
|
236
|
+
parse_args(parser)
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
if __name__ == "__main__":
|
|
240
|
+
main()
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Generate a colorscheme using ColorThief.
|
|
3
|
+
"""
|
|
4
|
+
import logging
|
|
5
|
+
import sys
|
|
6
|
+
|
|
7
|
+
try:
|
|
8
|
+
from colorthief import ColorThief
|
|
9
|
+
|
|
10
|
+
except ImportError:
|
|
11
|
+
logging.error("ColorThief wasn't found on your system.")
|
|
12
|
+
logging.error("Try another backend. (wal --backend)")
|
|
13
|
+
sys.exit(1)
|
|
14
|
+
|
|
15
|
+
from .. import colors
|
|
16
|
+
from .. import util
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def gen_colors(img):
|
|
20
|
+
"""Loop until 16 colors are generated."""
|
|
21
|
+
color_cmd = ColorThief(img).get_palette
|
|
22
|
+
|
|
23
|
+
for i in range(0, 10, 1):
|
|
24
|
+
raw_colors = color_cmd(color_count=8 + i)
|
|
25
|
+
|
|
26
|
+
if len(raw_colors) >= 8:
|
|
27
|
+
break
|
|
28
|
+
|
|
29
|
+
if i == 10:
|
|
30
|
+
logging.error("ColorThief couldn't generate a suitable palette.")
|
|
31
|
+
sys.exit(1)
|
|
32
|
+
|
|
33
|
+
else:
|
|
34
|
+
logging.warning("ColorThief couldn't generate a palette.")
|
|
35
|
+
logging.warning("Trying a larger palette size %s", 8 + i)
|
|
36
|
+
|
|
37
|
+
return [util.rgb_to_hex(color) for color in raw_colors]
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def adjust(cols, light, cols16):
|
|
41
|
+
"""Create palette."""
|
|
42
|
+
cols.sort(key=util.rgb_to_yiq)
|
|
43
|
+
raw_colors = [*cols, *cols]
|
|
44
|
+
for color in raw_colors:
|
|
45
|
+
color = util.lighten_color(color, 0.40)
|
|
46
|
+
raw_colors[0] = util.darken_color(cols[0], 0.80)
|
|
47
|
+
|
|
48
|
+
return colors.generic_adjust(raw_colors, light, cols16)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def get(img, light=False, cols16=False):
|
|
52
|
+
"""Get colorscheme."""
|
|
53
|
+
cols = gen_colors(img)
|
|
54
|
+
return adjust(cols, light, cols16)
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Generate a colorscheme using Colorz.
|
|
3
|
+
"""
|
|
4
|
+
import logging
|
|
5
|
+
import sys
|
|
6
|
+
|
|
7
|
+
try:
|
|
8
|
+
import colorz
|
|
9
|
+
|
|
10
|
+
except ImportError:
|
|
11
|
+
logging.error("colorz wasn't found on your system.")
|
|
12
|
+
logging.error("Try another backend. (wal --backend)")
|
|
13
|
+
sys.exit(1)
|
|
14
|
+
|
|
15
|
+
from .. import colors
|
|
16
|
+
from .. import util
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def gen_colors(img):
|
|
20
|
+
"""Generate a colorscheme using Colorz."""
|
|
21
|
+
# pylint: disable=not-callable
|
|
22
|
+
raw_colors = colorz.colorz(img, n=6, bold_add=0)
|
|
23
|
+
return [util.rgb_to_hex([*color[0]]) for color in raw_colors]
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def adjust(cols, light, cols16):
|
|
27
|
+
"""Create palette."""
|
|
28
|
+
raw_colors = [cols[0], *cols, "#FFFFFF",
|
|
29
|
+
"#000000", *cols, "#FFFFFF"]
|
|
30
|
+
|
|
31
|
+
return colors.generic_adjust(raw_colors, light, cols16)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def get(img, light=False, cols16=False):
|
|
35
|
+
"""Get colorscheme."""
|
|
36
|
+
cols = gen_colors(img)
|
|
37
|
+
|
|
38
|
+
if len(cols) < 6:
|
|
39
|
+
logging.error("colorz failed to generate enough colors.")
|
|
40
|
+
logging.error("Try another backend or another image. (wal --backend)")
|
|
41
|
+
sys.exit(1)
|
|
42
|
+
|
|
43
|
+
return adjust(cols, light, cols16)
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Generate a colorscheme using fast_colorthief.
|
|
3
|
+
"""
|
|
4
|
+
import logging
|
|
5
|
+
import sys
|
|
6
|
+
|
|
7
|
+
try:
|
|
8
|
+
import fast_colorthief
|
|
9
|
+
|
|
10
|
+
except ImportError:
|
|
11
|
+
logging.error("fast_colorthief wasn't found on your system.")
|
|
12
|
+
logging.error("Try another backend. (wal --backend)")
|
|
13
|
+
sys.exit(1)
|
|
14
|
+
|
|
15
|
+
from .. import util
|
|
16
|
+
from .. import colors
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def gen_colors(img):
|
|
20
|
+
""" Ask backend to generate 16 colors. """
|
|
21
|
+
raw_colors = fast_colorthief.get_palette(img, 16)
|
|
22
|
+
|
|
23
|
+
return [util.rgb_to_hex(color) for color in raw_colors]
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def adjust(cols, light, cols16):
|
|
27
|
+
"""Create palette."""
|
|
28
|
+
cols.sort(key=util.rgb_to_yiq)
|
|
29
|
+
raw_colors = [*cols, *cols]
|
|
30
|
+
|
|
31
|
+
return colors.generic_adjust(raw_colors, light, cols16)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def get(img, light=False, cols16=False):
|
|
35
|
+
"""Get colorscheme."""
|
|
36
|
+
cols = gen_colors(img)
|
|
37
|
+
return adjust(cols, light, cols16)
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Generate a colorscheme using Haishoku.
|
|
3
|
+
"""
|
|
4
|
+
import logging
|
|
5
|
+
import sys
|
|
6
|
+
|
|
7
|
+
try:
|
|
8
|
+
from haishoku.haishoku import Haishoku
|
|
9
|
+
|
|
10
|
+
except ImportError:
|
|
11
|
+
logging.error("Haishoku wasn't found on your system.")
|
|
12
|
+
logging.error("Try another backend. (wal --backend)")
|
|
13
|
+
sys.exit(1)
|
|
14
|
+
|
|
15
|
+
from .. import colors
|
|
16
|
+
from .. import util
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def gen_colors(img):
|
|
20
|
+
"""Generate a colorscheme using Colorz."""
|
|
21
|
+
palette = Haishoku.getPalette(img)
|
|
22
|
+
return [util.rgb_to_hex(col[1]) for col in palette]
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def adjust(cols, light, cols16):
|
|
26
|
+
"""Create palette."""
|
|
27
|
+
cols.sort(key=util.rgb_to_yiq)
|
|
28
|
+
raw_colors = [*cols, *cols]
|
|
29
|
+
raw_colors[0] = util.lighten_color(cols[0], 0.40)
|
|
30
|
+
|
|
31
|
+
return colors.generic_adjust(raw_colors, light, cols16)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def get(img, light=False, cols16=False):
|
|
35
|
+
"""Get colorscheme."""
|
|
36
|
+
cols = gen_colors(img)
|
|
37
|
+
return adjust(cols, light, cols16)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Generate a colorscheme using Schemer2.
|
|
3
|
+
"""
|
|
4
|
+
import logging
|
|
5
|
+
import shutil
|
|
6
|
+
import subprocess
|
|
7
|
+
import sys
|
|
8
|
+
|
|
9
|
+
from .. import colors
|
|
10
|
+
from .. import util
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def gen_colors(img):
|
|
14
|
+
"""Generate a colorscheme using Colorz."""
|
|
15
|
+
cmd = ["schemer2", "-format", "img::colors", "-minBright", "75", "-in"]
|
|
16
|
+
return subprocess.check_output([*cmd, img]).splitlines()
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def adjust(cols, light, cols16):
|
|
20
|
+
"""Create palette."""
|
|
21
|
+
cols.sort(key=util.rgb_to_yiq)
|
|
22
|
+
raw_colors = [*cols[8:], *cols[8:]]
|
|
23
|
+
|
|
24
|
+
return colors.generic_adjust(raw_colors, light, cols16)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def get(img, light=False, cols16=False):
|
|
28
|
+
"""Get colorscheme."""
|
|
29
|
+
if not shutil.which("schemer2"):
|
|
30
|
+
logging.error("Schemer2 wasn't found on your system.")
|
|
31
|
+
logging.error("Try another backend. (wal --backend)")
|
|
32
|
+
sys.exit(1)
|
|
33
|
+
|
|
34
|
+
cols = [col.decode('UTF-8') for col in gen_colors(img)]
|
|
35
|
+
return adjust(cols, light, cols16)
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Generate a colorscheme using imagemagick.
|
|
3
|
+
"""
|
|
4
|
+
import logging
|
|
5
|
+
import re
|
|
6
|
+
import shutil
|
|
7
|
+
import subprocess
|
|
8
|
+
import sys
|
|
9
|
+
|
|
10
|
+
from .. import colors
|
|
11
|
+
from .. import util
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def imagemagick(color_count, img, magick_command):
|
|
15
|
+
"""Call Imagemagick to generate a scheme."""
|
|
16
|
+
flags = ["-resize", "25%", "-colors", str(color_count),
|
|
17
|
+
"-unique-colors", "txt:-"]
|
|
18
|
+
img += "[0]"
|
|
19
|
+
|
|
20
|
+
return subprocess.check_output([*magick_command, img, *flags]).splitlines()
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def has_im():
|
|
24
|
+
"""Check to see if the user has im installed."""
|
|
25
|
+
if shutil.which("magick"):
|
|
26
|
+
return ["magick", "convert"]
|
|
27
|
+
|
|
28
|
+
if shutil.which("convert"):
|
|
29
|
+
return ["convert"]
|
|
30
|
+
|
|
31
|
+
logging.error("Imagemagick wasn't found on your system.")
|
|
32
|
+
logging.error("Try another backend. (wal --backend)")
|
|
33
|
+
sys.exit(1)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def gen_colors(img):
|
|
37
|
+
"""Format the output from imagemagick into a list
|
|
38
|
+
of hex colors."""
|
|
39
|
+
magick_command = has_im()
|
|
40
|
+
|
|
41
|
+
for i in range(0, 20, 1):
|
|
42
|
+
raw_colors = imagemagick(16 + i, img, magick_command)
|
|
43
|
+
|
|
44
|
+
if len(raw_colors) > 16:
|
|
45
|
+
break
|
|
46
|
+
|
|
47
|
+
if i == 19:
|
|
48
|
+
logging.error("Imagemagick couldn't generate a suitable palette.")
|
|
49
|
+
sys.exit(1)
|
|
50
|
+
|
|
51
|
+
else:
|
|
52
|
+
logging.warning("Imagemagick couldn't generate a palette.")
|
|
53
|
+
logging.warning("Trying a larger palette size %s", 16 + i)
|
|
54
|
+
|
|
55
|
+
return [re.search("#.{6}", str(col)).group(0) for col in raw_colors[1:]]
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
def adjust(cols, light, cols16):
|
|
59
|
+
"""Adjust the generated colors and store them in a dict that
|
|
60
|
+
we will later save in json format."""
|
|
61
|
+
raw_colors = cols[:1] + cols[8:16] + cols[8:-1]
|
|
62
|
+
|
|
63
|
+
return colors.generic_adjust(raw_colors, light, cols16)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
def get(img, light=False, cols16=False):
|
|
67
|
+
"""Get colorscheme."""
|
|
68
|
+
colors = gen_colors(img)
|
|
69
|
+
return adjust(colors, light, cols16)
|