mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-06-19 08:06:38 +02:00
general: Start work on a proper api.
This commit is contained in:
parent
9c871ec567
commit
9587854303
@ -3,3 +3,34 @@ wal - Generate and change colorschemes on the fly.
|
|||||||
Created by Dylan Araps.
|
Created by Dylan Araps.
|
||||||
"""
|
"""
|
||||||
from pywal.settings import __version__ # noqa: F401
|
from pywal.settings import __version__ # noqa: F401
|
||||||
|
from pywal import magic
|
||||||
|
from pywal import reload
|
||||||
|
from pywal import sequences
|
||||||
|
from pywal import wallpaper
|
||||||
|
|
||||||
|
|
||||||
|
def create_palette(img):
|
||||||
|
"""Create a palette and return it as a dict."""
|
||||||
|
colors = magic.gen_colors(img)
|
||||||
|
colors = magic.sort_colors(img, colors)
|
||||||
|
return colors
|
||||||
|
|
||||||
|
|
||||||
|
def send_sequences(colors, vte):
|
||||||
|
"""Send the sequences."""
|
||||||
|
sequences.send_sequences(colors, vte)
|
||||||
|
|
||||||
|
|
||||||
|
def reload_env():
|
||||||
|
"""Reload the environment."""
|
||||||
|
reload.reload_env()
|
||||||
|
|
||||||
|
|
||||||
|
def set_wallpaper(img):
|
||||||
|
"""Set the wallpaper."""
|
||||||
|
wallpaper.set_wallpaper(img)
|
||||||
|
|
||||||
|
|
||||||
|
# def reload_colors(vte):
|
||||||
|
# """Reload the colors."""
|
||||||
|
# sequences.reload_colors(vte)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user