* experimental/byobu-classroom, usr/bin/byobu-statusd, usr/bin/byobu-

status-print, usr/lib/byobu/battery,
  usr/share/byobu/profiles/classroom:
  - fixup byobu-classroom
  - fix whitespace printing in byobu-status-print
This commit is contained in:
Dustin Kirkland 2011-07-13 21:14:48 -05:00
commit e0a0d1621d
6 changed files with 18 additions and 15 deletions

5
debian/changelog vendored
View file

@ -69,6 +69,11 @@ byobu (4.18) unreleased; urgency=low
tmux to interpret the time format sequence) tmux to interpret the time format sequence)
- install the tmux profile - install the tmux profile
- get the tmux profile using the new status print methodology - get the tmux profile using the new status print methodology
* experimental/byobu-classroom, usr/bin/byobu-statusd, usr/bin/byobu-
status-print, usr/lib/byobu/battery,
usr/share/byobu/profiles/classroom:
- fixup byobu-classroom
- fix whitespace printing in byobu-status-print
[ James Spencer ] [ James Spencer ]
* usr/lib/byobu/.constants: * usr/lib/byobu/.constants:

View file

@ -98,6 +98,8 @@ while [ $(stat -c%a "$screen") != "6755" ]; do
case "$c" in case "$c" in
y|Y) y|Y)
dpkg-statoverride --add root root 6755 "$screen" dpkg-statoverride --add root root 6755 "$screen"
chmod 6755 "$screen"
chmod 755 /var/run/screen
info "Updated $screen" info "Updated $screen"
echo echo
info "To revert this later, run:" info "To revert this later, run:"
@ -111,7 +113,7 @@ while [ $(stat -c%a "$screen") != "6755" ]; do
done done
# Ensure correct permissions on screen's run directory # Ensure correct permissions on screen's run directory
service restart screen-cleanup service screen-cleanup start
# Ensure that SSH configuration is correct # Ensure that SSH configuration is correct
while [ $(grep -c "#byobu-classrom" /etc/ssh/sshd_config) != "4" ]; do while [ $(grep -c "#byobu-classrom" /etc/ssh/sshd_config) != "4" ]; do

View file

@ -25,11 +25,8 @@ PKG="byobu"
while read i; do while read i; do
cache="$BYOBU_RUN_DIR/status/$i" cache="$BYOBU_RUN_DIR/status/$i"
if [ -s "$cache" ]; then if [ -s "$cache" ]; then
IFS=
read c < "$cache" read c < "$cache"
printf "%s" "$c" printf "%s" "$c"
case "$i" in
color|menu|time) true ;;
*) printf " " ;;
esac
fi fi
done < "$BYOBU_CONFIG_DIR/status.$1" done < "$BYOBU_CONFIG_DIR/status.$1"

View file

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# #
# byobu-status-print: concatenate the status cache # byobu-statusd: byobu's status gathering daemon
# #
# Copyright (C) 2011 Dustin Kirkland # Copyright (C) 2011 Dustin Kirkland
# #

View file

@ -54,14 +54,14 @@ __battery() {
done < "$bat/state" done < "$bat/state"
percent=$(((100*$rem)/$full)) percent=$(((100*$rem)/$full))
if [ "$percent" -lt 33 ]; then if [ "$percent" -lt 33 ]; then
color="R w" color="R k"
bcolor="b R w" bcolor="b R k"
elif [ "$percent" -lt 67 ]; then elif [ "$percent" -lt 67 ]; then
color="Y w" color="Y k"
bcolor="b Y w" bcolor="b Y k"
else else
color="G w" color="G k"
bcolor="b G w" bcolor="b G k"
fi fi
percent="$percent%" percent="$percent%"
case $state in case $state in

View file

@ -20,9 +20,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
############################################################################### ###############################################################################
source /usr/share/byobu/profiles/byoburc
aclumask guest+r guest-w guest-x aclumask guest+r guest-w guest-x
aclchg guest +r-w-x '#?' aclchg guest +r-w-x '#?'
aclchg guest +x 'prev,next,select,detach' aclchg guest +x 'detach'
multiuser on multiuser on
escape "^Bb"