* usr/bin/wifi-status:

- add a speedometer split
* debian/control, usr/bin/wifi-status,
  usr/share/byobu/profiles/bashrc:
  - kill the double bracket;  doesn't always print nicely
This commit is contained in:
Dustin Kirkland 2017-10-11 17:09:08 -04:00
commit 4351008d97
4 changed files with 8 additions and 12 deletions

6
debian/changelog vendored
View file

@ -1,6 +1,10 @@
byobu (5.124) unreleased; urgency=medium byobu (5.124) unreleased; urgency=medium
* UNRELEASED * usr/bin/wifi-status:
- add a speedometer split
* debian/control, usr/bin/wifi-status,
usr/share/byobu/profiles/bashrc:
- kill the double bracket; doesn't always print nicely
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 25 Sep 2017 10:28:42 -0500 -- Dustin Kirkland <kirkland@ubuntu.com> Mon, 25 Sep 2017 10:28:42 -0500

1
debian/control vendored
View file

@ -30,6 +30,7 @@ Suggests:
lsb-release, lsb-release,
po-debconf, po-debconf,
screen, screen,
speedometer,
ttf-ubuntu-font-family (>= 0.80-0ubuntu1~medium), ttf-ubuntu-font-family (>= 0.80-0ubuntu1~medium),
update-notifier-common, update-notifier-common,
vim, vim,

View file

@ -32,12 +32,14 @@ router=$(ip route show|head -n 1|awk '{print $3}')
if [ -z "$TMUX" ]; then if [ -z "$TMUX" ]; then
watch -n1 "iw $dev info; ip addr show $dev; ip route; echo; (journalctl -b --no-pager -q | grep -i $dev | tail -n 10 | sort -r); echo; ping -I $dev -c 1 8.8.8.8" watch -n1 "iw $dev info; ip addr show $dev; ip route; echo; (journalctl -b --no-pager -q | grep -i $dev | tail -n 10 | sort -r); echo; ping -I $dev -c 1 8.8.8.8"
else else
# Note that the speedometer item will silently fail, if the speedometer command is not found; I don't want byobu to depend on speedometer, but it can suggest it
tmux new-window -n wifi-status "watch -c iw $dev info \| ccze -A" \; \ tmux new-window -n wifi-status "watch -c iw $dev info \| ccze -A" \; \
split-window -t wifi-status -v "watch -c ip addr show $dev \| ccze -A" \; \ split-window -t wifi-status -v "watch -c ip addr show $dev \| ccze -A" \; \
split-window -t wifi-status -v "watch -c ip route \| ccze -A" \; \ split-window -t wifi-status -v "watch -c ip route \| ccze -A" \; \
split-window -t wifi-status -h "ping -I $dev $router" \; \ split-window -t wifi-status -h "ping -I $dev $router" \; \
split-window -t wifi-status -v "watch -c journalctl -b --no-pager -q \| grep -i $dev \| tail -n 10 \| sort -r \| ccze -A" \; \ split-window -t wifi-status -v "watch -c journalctl -b --no-pager -q \| grep -i $dev \| tail -n 10 \| sort -r \| ccze -A" \; \
split-window -t wifi-status -h "ping -I $dev 8.8.8.8" \; \ split-window -t wifi-status -h "ping -I $dev 8.8.8.8" \; \
split-window -t wifi-status -v "speedometer -t $dev -r $dev" \; \
select-layout -t wifi-status tiled select-layout -t wifi-status tiled
fi fi

View file

@ -30,17 +30,6 @@ if [ -n "$TMUX" ] || [ "${TERMCAP#*screen}" != "${TERMCAP}" ]; then
byobu_prompt_symbol() { byobu_prompt_symbol() {
if [ "$USER" = "root" ]; then if [ "$USER" = "root" ]; then
printf "%s" "#"; printf "%s" "#";
elif [ "$BYOBU_DISTRO" = "Ubuntu" ]; then
case "$BYOBU_CHARMAP" in
"UTF-8")
# MATHEMATICAL RIGHT DOUBLE ANGLE BRACKET (U+27EB, Pe): ⟫
printf "%s" "⟫"
;;
*)
# Simple ASCII greater-than sign
printf "%s" ">"
;;
esac
else else
printf "%s" "\$" printf "%s" "\$"
fi fi