mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 22:13:19 -07:00
* usr/lib/byobu/include/icons, usr/lib/byobu/session:
- use an icon for the session status item
This commit is contained in:
parent
f81e017755
commit
971f3c1971
3 changed files with 10 additions and 1 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -4,6 +4,8 @@ byobu (5.68) unreleased; urgency=low
|
|||
usr/lib/byobu/session, usr/share/byobu/status/status,
|
||||
usr/share/man/man1/byobu.1:
|
||||
- add a new status item, to show the session name
|
||||
* usr/lib/byobu/include/icons, usr/lib/byobu/session:
|
||||
- use an icon for the session status item
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 02 Dec 2013 18:46:28 -0600
|
||||
|
||||
|
|
|
@ -51,6 +51,7 @@ if [ "$BYOBU_BACKEND" = "tmux" ] && [ "$BYOBU_CHARMAP" = "UTF-8" ]; then
|
|||
ICON_GHz="GHz"
|
||||
#ICON_MBPS="㏔㎰"
|
||||
ICON_MBPS="Mb"
|
||||
ICON_SESSION="〣"
|
||||
else
|
||||
ICON_C="C"
|
||||
ICON_F="F"
|
||||
|
@ -72,4 +73,5 @@ else
|
|||
ICON_MHz="MHz"
|
||||
ICON_GHz="GHz"
|
||||
ICON_MBPS="Mbps"
|
||||
ICON_SESSION="|"
|
||||
fi
|
||||
|
|
|
@ -24,7 +24,12 @@ __session_detail() {
|
|||
|
||||
__session() {
|
||||
# Note: This will only work in byobu-tmux
|
||||
color u W k; echo "#S"; color --
|
||||
local count=$(tmux list-sessions 2>/dev/null | wc -l)
|
||||
if [ $count -gt 1 ]; then
|
||||
color u W k; printf "$ICON_SESSION#S"; color --
|
||||
else
|
||||
echo
|
||||
fi
|
||||
}
|
||||
|
||||
# vi: syntax=sh ts=4 noexpandtab
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue