Introduction
Introduction Statistics Contact Development Disclaimer Help
Add tmux russian roulette. - various - Various utilities developed at bitreich.
git clone git://bitreich.org/various/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinw…
Log
Files
Refs
Tags
---
commit 5be178c16d89b7c73b6603c906c06743019a18e0
parent 446755c48bfc6c809f79d8debc8f9c21127f6fc0
Author: Christoph Lohmann <[email protected]>
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(-)
---
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
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.