From c6147fd0eb0387c5cc4334dfe9c17f097fdea246 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 22 Jul 2017 10:04:56 +1000 Subject: examples: Move examples out of the repo to the wiki. --- examples/example.py | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 examples/example.py (limited to 'examples/example.py') diff --git a/examples/example.py b/examples/example.py deleted file mode 100644 index b4b40e1..0000000 --- a/examples/example.py +++ /dev/null @@ -1,31 +0,0 @@ -"""Simple script for wal api.""" -import pywal - - -def main(): - """Main function.""" - # Validate image and pick a random image if a - # directory is given below. - image = pywal.get_image("/home/dylan/Pictures/Wallpapers/") - - # Return a dict with the palette. - # Set quiet to 'True' to disable notifications. - colors = pywal.create_palette(image, quiet=False) - - # Apply the palette to all open terminals. - # Second argument is a boolean for VTE terminals. - # Set it to true if the terminal you're using is - # VTE based. (xfce4-terminal, termite, gnome-terminal.) - pywal.send_sequences(colors, vte=False) - - # Reload xrdb, i3 and polybar. - pywal.reload_env() - - # Export template files. - pywal.export_all_templates(colors) - - # Set the wallpaper. - pywal.set_wallpaper(image) - - -main() -- cgit v1.2.3