Skip to content

mluna-again/samurai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TMUX Screen Saver

a tmux "screen saver". i know the samurai logo doesn't look centered but it is ok, the chin is just not in the center.

anyways, you can use it like this

$ tmux list-sessions -F '#{session_last_attached}@#{session_name}' | sort -r | awk -F@ '{printf "%s@%s\n", $2, $1}' | samurai

This will display your last 10 sessions.

output.mp4
Usage
samurai reads from stdin and accepts up to 10 lines. each line can have 2 components, one on the right and one on the left, they should be separated by -sep

$ tmux list-sessions -a -F '#{session_name}@#{session_created}' | samurai -sep @

  -noanimate
    	don't animate ascii art
  -rformat string
    	Treats right components as epoch values and formats them with the given format, an empty string disables this (default "3:04PM")
  -sep string
    	component separator (default "@")
  -title string
    	Sessions header (default " Recent sessions ")

About

cyberpunk 2077 inspired tmux screen saver

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published