tmux-russian-roulette.sh - various - Various utilities developed at bitreich. | |
git clone git://bitreich.org/various/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinw… | |
Log | |
Files | |
Refs | |
Tags | |
--- | |
tmux-russian-roulette.sh (239B) | |
--- | |
1 #!/bin/sh | |
2 # By ROYGBYTE. | |
3 panes=$( | |
4 tmux list-windows |\ | |
5 wc -l | |
6 ) | |
7 random_window=$(( | |
8 ( RANDOM % panes ) | |
9 )) | |
10 tmux select-window -t $random_window | |
11 message="PEW PEW PEW!" | |
12 tmux display-popup "$message" | |
13 sleep 1 | |
14 tmux kill-window -t $random_window |