mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 22:34:23 -07:00
usr/bin/byobu-janitor: clean up launch gardening code; fix color
detection and correction
This commit is contained in:
parent
7e81b43619
commit
4a93edf46f
2 changed files with 7 additions and 7 deletions
3
debian/changelog
vendored
3
debian/changelog
vendored
|
@ -21,7 +21,8 @@ byobu (2.81) unreleased; urgency=low
|
||||||
text, per feedback from Turnkey Linux users
|
text, per feedback from Turnkey Linux users
|
||||||
* debian/release,sh, debian/release-build.sh: drop, no longer needed,
|
* debian/release,sh, debian/release-build.sh: drop, no longer needed,
|
||||||
now in lp:~kirkland/+junk/bin
|
now in lp:~kirkland/+junk/bin
|
||||||
* usr/bin/byobu-janitor: clean up launch gardening code
|
* usr/bin/byobu-janitor: clean up launch gardening code; fix color
|
||||||
|
detection and correction
|
||||||
* byobu, byobu-select-session: name new byobu sessions, only select byobu
|
* byobu, byobu-select-session: name new byobu sessions, only select byobu
|
||||||
sessions, LP: #599334
|
sessions, LP: #599334
|
||||||
|
|
||||||
|
|
|
@ -60,10 +60,6 @@ fi
|
||||||
# Affects: Symlinks pointing to color profiles
|
# Affects: Symlinks pointing to color profiles
|
||||||
if [ -h "$PROFILE" ]; then
|
if [ -h "$PROFILE" ]; then
|
||||||
case "$(stat $PROFILE)" in
|
case "$(stat $PROFILE)" in
|
||||||
*File:*-\>*/usr/share/byobu/profiles/common)
|
|
||||||
# All good, nothing to do
|
|
||||||
true
|
|
||||||
;;
|
|
||||||
*File:*-\>*/usr/share/byobu/profiles/*)
|
*File:*-\>*/usr/share/byobu/profiles/*)
|
||||||
# Set default colors
|
# Set default colors
|
||||||
BG=W
|
BG=W
|
||||||
|
@ -71,6 +67,7 @@ if [ -h "$PROFILE" ]; then
|
||||||
color=$(ls -l "$PROFILE")
|
color=$(ls -l "$PROFILE")
|
||||||
color=${color##*/}
|
color=${color##*/}
|
||||||
case "$color" in
|
case "$color" in
|
||||||
|
common) BG=; FG=;;
|
||||||
black|dark) BG=k; FG=W;;
|
black|dark) BG=k; FG=W;;
|
||||||
dark_blue) BG=b; FG=W;;
|
dark_blue) BG=b; FG=W;;
|
||||||
dark_cyan) BG=c; FG=W;;
|
dark_cyan) BG=c; FG=W;;
|
||||||
|
@ -87,8 +84,10 @@ if [ -h "$PROFILE" ]; then
|
||||||
light_yellow) BG=Y; FG=k;;
|
light_yellow) BG=Y; FG=k;;
|
||||||
*) BG=W; FG=k;;
|
*) BG=W; FG=k;;
|
||||||
esac
|
esac
|
||||||
|
if [ -n "$BG" ] && [ -n "$FG" ]; then
|
||||||
rm -f "$PROFILE" 2>/dev/null
|
rm -f "$PROFILE" 2>/dev/null
|
||||||
byobu-select-profile -b $BG -f $FG >/dev/null 2>&1
|
byobu-select-profile -b $BG -f $FG >/dev/null 2>&1
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue