mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 06:23:19 -07:00
* usr/bin/byobu-layout.in: LP: #1278277
- fix layout saving, which broke in tmux 1.8 - incrementally rearrange while building our windows up to restore, as sometimes we run out of room; tiling in between seems to work
This commit is contained in:
parent
ec74d9c4a7
commit
b6475cca6f
2 changed files with 6 additions and 1 deletions
4
debian/changelog
vendored
4
debian/changelog
vendored
|
@ -21,6 +21,10 @@ byobu (5.75) unreleased; urgency=medium
|
||||||
- fix up the uninstallation of byobu launcher
|
- fix up the uninstallation of byobu launcher
|
||||||
* usr/lib/byobu/include/select-session.py: LP: #1279533
|
* usr/lib/byobu/include/select-session.py: LP: #1279533
|
||||||
- quick hack to fix crashes when python can't figure out the encoding
|
- quick hack to fix crashes when python can't figure out the encoding
|
||||||
|
* usr/bin/byobu-layout.in: LP: #1278277
|
||||||
|
- fix layout saving, which broke in tmux 1.8
|
||||||
|
- incrementally rearrange while building our windows up to restore,
|
||||||
|
as sometimes we run out of room; tiling in between seems to work
|
||||||
|
|
||||||
[ Kosuke Asami ]
|
[ Kosuke Asami ]
|
||||||
* usr/lib/byobu/battery: LP: #1289157, #1289157
|
* usr/lib/byobu/battery: LP: #1289157, #1289157
|
||||||
|
|
|
@ -47,7 +47,7 @@ list_layouts() {
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
"save")
|
"save")
|
||||||
layout=$(tmux list-windows | grep "(active)$" | sed -e "s/.*\[layout //" -e "s/\] (active)$//")
|
layout=$(tmux list-windows | grep "(active)$" | sed -e "s/.*\[layout //" -e "s/\] .*(active)$//")
|
||||||
panes=$(tmux list-panes | wc -l)
|
panes=$(tmux list-panes | wc -l)
|
||||||
if [ -n "$2" ]; then
|
if [ -n "$2" ]; then
|
||||||
name="$2"
|
name="$2"
|
||||||
|
@ -109,6 +109,7 @@ case "$1" in
|
||||||
# Create panes if nececessary to restore the layout
|
# Create panes if nececessary to restore the layout
|
||||||
while [ $(tmux list-panes | wc -l) -lt $panes ]; do
|
while [ $(tmux list-panes | wc -l) -lt $panes ]; do
|
||||||
tmux split-window
|
tmux split-window
|
||||||
|
tmux select-layout tiled
|
||||||
done
|
done
|
||||||
# Finally, restore the layout and refresh
|
# Finally, restore the layout and refresh
|
||||||
tmux select-layout "$layout"
|
tmux select-layout "$layout"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue