mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 22:13:19 -07:00
* 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:
parent
cb9467a142
commit
4351008d97
4 changed files with 8 additions and 12 deletions
6
debian/changelog
vendored
6
debian/changelog
vendored
|
@ -1,6 +1,10 @@
|
|||
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
|
||||
|
||||
|
|
1
debian/control
vendored
1
debian/control
vendored
|
@ -30,6 +30,7 @@ Suggests:
|
|||
lsb-release,
|
||||
po-debconf,
|
||||
screen,
|
||||
speedometer,
|
||||
ttf-ubuntu-font-family (>= 0.80-0ubuntu1~medium),
|
||||
update-notifier-common,
|
||||
vim,
|
||||
|
|
|
@ -32,12 +32,14 @@ router=$(ip route show|head -n 1|awk '{print $3}')
|
|||
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"
|
||||
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" \; \
|
||||
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 -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 -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
|
||||
fi
|
||||
|
||||
|
|
|
@ -30,17 +30,6 @@ if [ -n "$TMUX" ] || [ "${TERMCAP#*screen}" != "${TERMCAP}" ]; then
|
|||
byobu_prompt_symbol() {
|
||||
if [ "$USER" = "root" ]; then
|
||||
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
|
||||
printf "%s" "\$"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue