URI: 
       Add tmux russian roulette. - various - Various utilities developed at bitreich.
  HTML git clone git://bitreich.org/various/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/various/
   DIR Log
   DIR Files
   DIR Refs
   DIR Tags
       ---
   DIR commit 5be178c16d89b7c73b6603c906c06743019a18e0
   DIR parent 446755c48bfc6c809f79d8debc8f9c21127f6fc0
  HTML Author: Christoph Lohmann <20h@r-36.net>
       Date:   Fri,  1 Nov 2024 17:17:16 +0100
       
       Add tmux russian roulette.
       
       Thanks Roygbyte!
       
       Diffstat:
         A tmux-russian-roulette.sh            |      14 ++++++++++++++
       
       1 file changed, 14 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/tmux-russian-roulette.sh b/tmux-russian-roulette.sh
       @@ -0,0 +1,14 @@
       +#!/bin/sh
       +# By ROYGBYTE.
       +panes=$(
       +        tmux list-windows |\
       +        wc -l
       +)
       +random_window=$((
       +        ( RANDOM % panes )
       +))
       +tmux select-window -t $random_window
       +message="PEW PEW PEW!"
       +tmux display-popup "$message"
       +sleep 1
       +tmux kill-window -t $random_window