mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
* usr/bin/byobu-modrian:
- add a new, fun script - speed it up a bit
This commit is contained in:
parent
8db314433d
commit
1f3f76effe
2 changed files with 4 additions and 8 deletions
5
debian/changelog
vendored
5
debian/changelog
vendored
|
@ -1,9 +1,10 @@
|
|||
byobu (4.49) unreleased; urgency=low
|
||||
|
||||
* usr/bin/byobu-modrian:
|
||||
- add a new, fun script
|
||||
* usr/bin/byobu-select-session:
|
||||
- fix 256-color tmux reattaches
|
||||
* usr/bin/byobu-modrian:
|
||||
- add a new, fun script
|
||||
- speed it up a bit
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 14 Nov 2011 17:43:02 -0600
|
||||
|
||||
|
|
|
@ -40,7 +40,6 @@ nums=$(rand -N 3 -M $TOTAL_SPLITS -u)
|
|||
red=$(echo "$nums" | awk '{print $1}')
|
||||
yellow=$(echo "$nums" | awk '{print $2}')
|
||||
blue=$(echo "$nums" | awk '{print $3}')
|
||||
directions=$(rand -N TOTAL_SPLITS -M 2)
|
||||
|
||||
# Create some splits
|
||||
tmux new-window -n modrian "solid_color $white_color"
|
||||
|
@ -54,10 +53,7 @@ for i in $(seq 0 $((TOTAL_SPLITS-1))); do
|
|||
*) color=$white_color ;;
|
||||
esac
|
||||
CMD="solid_color $color"
|
||||
case "$(head -c 10 /dev/urandom | md5sum | head -c1)" in
|
||||
0|1|2|3|4|5|6|7) SPLIT="-v" ;;
|
||||
8|9|a|b|c|d|e|f) SPLIT="-h" ;;
|
||||
esac
|
||||
[ "$((RANDOM % 2))" = "0" ] && SPLIT="-v" || SPLIT="-h"
|
||||
if ! tmux split-window $SPLIT -t $(get_random_pane) "$CMD" ; then
|
||||
case "$i" in
|
||||
$red) red=$((red+1)) ;;
|
||||
|
@ -65,5 +61,4 @@ for i in $(seq 0 $((TOTAL_SPLITS-1))); do
|
|||
$blue) blue=$((blue+1)) ;;
|
||||
esac
|
||||
fi
|
||||
#sleep 0.1
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue