Skip to content

Simple script written in Bash for slide presentations in terminal

License

Notifications You must be signed in to change notification settings

skontar/bash-slides

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bash Slides

This is a simple script written in Bash for slide presentations in terminal.

It is inspired by https://github.com/fxn/tkn.

It requires terminal which supports 256 colors and formatting. xterm-256color should do fine.

Installation

Clone the repository.

Required dependencies:

  • Bash 4.x + typical GNU utils (tput, head, tail, sed, date, etc.)
  • highlight (for code highlighting)

Optional dependencies:

  • unclutter (for hiding mouse cursor during presentation)
  • Imagemagick (for export to PDF)
  • Xorg (for export to PDF)
  • xprop (for export to PDF)
  • FontAwesome (for nice icons in text)

On Fedora, just run the following:

# dnf install highlight unclutter ImageMagick xorg-x11-utils fontawesome-fonts 

Usage

Run the following for example slides:

$ ./slides

The example slides is a showcase of capabilities and contains slide about controls. You can also open generated PDF of the example slides.

For running your own slides, use the following:

$ ./slides my-slide-deck-file

Export to PDF

This feature is one big hack. It only works in X server, not Wayland. It finds your active window (with a bit of luck it is the terminal emulator window). It makes a screenshot of it as PNG, then it moves to the next slide. In the end it stitches all screenshots in one PDF.

Tips

  • Enlarge your font as much as you can, slides will warn you if it will not fit.
  • When playing with font size, you can use R key to reload slides.
  • When exporting slides to PDF, use your terminal in full screen with the biggest font

Testing

Tested on Fedora 28 in xfce4-terminal.

Example presentation

Slide 1

Slide 2

Slide 3

Slide 4

Slide 5

Slide 6

Slide 7

Slide 8

Slide 9

About

Simple script written in Bash for slide presentations in terminal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages