mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 14:03:18 -07:00
* usr/bin/byobu-layout.in:
- add a list-layouts command
This commit is contained in:
parent
bb6ea888ac
commit
7dceb557b8
2 changed files with 11 additions and 3 deletions
4
debian/changelog
vendored
4
debian/changelog
vendored
|
@ -9,6 +9,10 @@ byobu (5.85) unreleased; urgency=medium
|
|||
session names start with an underscore, adding this feature to tmux
|
||||
based byobu.
|
||||
|
||||
[ Srdjan Grubor ]
|
||||
* usr/bin/byobu-layout.in:
|
||||
- add a list-layouts command
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 28 Jul 2014 09:12:13 +0100
|
||||
|
||||
byobu (5.84-0ubuntu1) utopic; urgency=medium
|
||||
|
|
|
@ -29,8 +29,6 @@ PRESETS="even-horizontal even-vertical main-horizontal main-vertical tiled"
|
|||
current_panes=$(tmux list-panes | wc -l)
|
||||
|
||||
list_layouts() {
|
||||
echo
|
||||
echo "Restore layout with <shift-F8>, save a layout with <shift-ctrl-F8>"
|
||||
echo
|
||||
echo "Byobu Saved Layouts"
|
||||
local count=0 i= desc= count= p=
|
||||
|
@ -52,6 +50,8 @@ case "$1" in
|
|||
if [ -n "$2" ]; then
|
||||
name="$2"
|
||||
else
|
||||
echo
|
||||
echo "Restore layout with <shift-F8>, save a layout with <shift-ctrl-F8>"
|
||||
while true; do
|
||||
list_layouts
|
||||
echo -n "Enter a unique name to save this layout: "
|
||||
|
@ -115,8 +115,12 @@ case "$1" in
|
|||
tmux select-layout "$layout"
|
||||
tmux source "$BYOBU_PREFIX/share/byobu/profiles/tmuxrc"
|
||||
;;
|
||||
list)
|
||||
list_layouts
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
echo "ERROR: Invalid argument, try [save|restore]" 2>&1
|
||||
echo "ERROR: Invalid argument, try [save|restore|list]" 2>&1
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue