mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
* 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:
parent
e978fb30b6
commit
e0a0d1621d
6 changed files with 18 additions and 15 deletions
5
debian/changelog
vendored
5
debian/changelog
vendored
|
@ -69,6 +69,11 @@ byobu (4.18) unreleased; urgency=low
|
|||
tmux to interpret the time format sequence)
|
||||
- install the tmux profile
|
||||
- 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 ]
|
||||
* usr/lib/byobu/.constants:
|
||||
|
|
|
@ -98,6 +98,8 @@ while [ $(stat -c%a "$screen") != "6755" ]; do
|
|||
case "$c" in
|
||||
y|Y)
|
||||
dpkg-statoverride --add root root 6755 "$screen"
|
||||
chmod 6755 "$screen"
|
||||
chmod 755 /var/run/screen
|
||||
info "Updated $screen"
|
||||
echo
|
||||
info "To revert this later, run:"
|
||||
|
@ -111,7 +113,7 @@ while [ $(stat -c%a "$screen") != "6755" ]; do
|
|||
done
|
||||
|
||||
# Ensure correct permissions on screen's run directory
|
||||
service restart screen-cleanup
|
||||
service screen-cleanup start
|
||||
|
||||
# Ensure that SSH configuration is correct
|
||||
while [ $(grep -c "#byobu-classrom" /etc/ssh/sshd_config) != "4" ]; do
|
||||
|
|
|
@ -25,11 +25,8 @@ PKG="byobu"
|
|||
while read i; do
|
||||
cache="$BYOBU_RUN_DIR/status/$i"
|
||||
if [ -s "$cache" ]; then
|
||||
IFS=
|
||||
read c < "$cache"
|
||||
printf "%s" "$c"
|
||||
case "$i" in
|
||||
color|menu|time) true ;;
|
||||
*) printf " " ;;
|
||||
esac
|
||||
fi
|
||||
done < "$BYOBU_CONFIG_DIR/status.$1"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# byobu-status-print: concatenate the status cache
|
||||
# byobu-statusd: byobu's status gathering daemon
|
||||
#
|
||||
# Copyright (C) 2011 Dustin Kirkland
|
||||
#
|
||||
|
|
|
@ -54,14 +54,14 @@ __battery() {
|
|||
done < "$bat/state"
|
||||
percent=$(((100*$rem)/$full))
|
||||
if [ "$percent" -lt 33 ]; then
|
||||
color="R w"
|
||||
bcolor="b R w"
|
||||
color="R k"
|
||||
bcolor="b R k"
|
||||
elif [ "$percent" -lt 67 ]; then
|
||||
color="Y w"
|
||||
bcolor="b Y w"
|
||||
color="Y k"
|
||||
bcolor="b Y k"
|
||||
else
|
||||
color="G w"
|
||||
bcolor="b G w"
|
||||
color="G k"
|
||||
bcolor="b G k"
|
||||
fi
|
||||
percent="$percent%"
|
||||
case $state in
|
||||
|
|
|
@ -20,9 +20,8 @@
|
|||
# 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
|
||||
aclchg guest +r-w-x '#?'
|
||||
aclchg guest +x 'prev,next,select,detach'
|
||||
aclchg guest +x 'detach'
|
||||
multiuser on
|
||||
escape "^Bb"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue