-
Notifications
You must be signed in to change notification settings - Fork 11
Taking Screenshots
All current screenshots are available in the vim-crystalline README.
To update the screenshots, clone this wiki and update the screenshots/
directory.
To take screenshots like the ones in the README, use this script.
!!! This script temporarily overwrites your .vimrc, back it up before running any functions !!!
It requires xdotool, shotgun, ImageMagick, the Inconsolata powerline font, and gvim.
Download the script to a file and set it up using source take_crystalline_screenshots.sh
.
You can take screenshots of all the themes with take_all_screenshots
.
You can take a screenshot of a single mode with take_screenshots [theme] [background]
.
Screenshots will be saved to ~/crystalline_screenshots
.
Set the environment variables WIN_W
, WIN_H
, and WIN_X
to adjust the position of the window so it fits into the captured area.
If you are using a tiling window manager, you may have to set it to floating mode so the window will be resized properly.
The captured area is hardcoded to keep all screenshots the same size.
If the window is not captured in time, set the WAIT_TIME
environment variable.