Terminal screen saver for Zshell. Implements morphogenesis and Mandelbrot
images. Written in pure Zshell (possible thanks to floating point numbers
and to zsh/mathfunc
module). Supports running external commands, for
example cmatrix
.
Screen saver will start after configured time, in last terminal in which a command has been executed.
Video – view on asciinema. You can resize the video by pressing Ctrl-+
or Cmd-+
.
There are 4 zstyles:
zstyle ":morpho" screen-saver "zmorpho" # select screen saver "zmorpho"; available: zmorpho, zmandelbrot, zblank, pmorpho
# this can also be a command, e.g. "cmatrix"
zstyle ":morpho" arguments "-s" # arguments given to screen saver program; -s - every key press ends
zstyle ":morpho" delay "290" # 5 minutes before screen saver starts
zstyle ":morpho" check-interval "60" # check every 1 minute if to run screen saver
To test screen savers run them directly from command line, e.g. issue "pmorpho
".
The plugin is "standalone", which means that only sourcing it is needed. So to
install, unpack zsh-morpho
somewhere and add
source {where-zsh-morpho-is}/zsh-morpho.plugin.zsh
to zshrc
.
If using a plugin manager, then Zplugin
is recommended, but you can use any
other too, and also install with Oh My Zsh
(by copying directory to
~/.oh-my-zsh/custom/plugins
).
Add zplugin load psprint/zsh-morpho
to .zshrc
.
The plugin will be loaded next time you start Zsh
.
To update issue zplugin update psprint/zsh-morpho
from command line.
Add zgen load psprint/zsh-morpho
to .zshrc
and issue a zgen reset
(this
assumes that there is a proper zgen save
construct in .zshrc
).
Add antigen bundle psprint/zsh-morpho
to .zshrc
. There also should be
antigen apply
.
cd ~/.oh-my-zsh/custom/plugins
git clone https://github.com/psprint/zsh-morpho.git
- Add
zsh-morpho
to your plugin list