mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -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
|
||||
* debian/release,sh, debian/release-build.sh: drop, no longer needed,
|
||||
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
|
||||
sessions, LP: #599334
|
||||
|
||||
|
|
|
@ -60,10 +60,6 @@ fi
|
|||
# Affects: Symlinks pointing to color profiles
|
||||
if [ -h "$PROFILE" ]; then
|
||||
case "$(stat $PROFILE)" in
|
||||
*File:*-\>*/usr/share/byobu/profiles/common)
|
||||
# All good, nothing to do
|
||||
true
|
||||
;;
|
||||
*File:*-\>*/usr/share/byobu/profiles/*)
|
||||
# Set default colors
|
||||
BG=W
|
||||
|
@ -71,6 +67,7 @@ if [ -h "$PROFILE" ]; then
|
|||
color=$(ls -l "$PROFILE")
|
||||
color=${color##*/}
|
||||
case "$color" in
|
||||
common) BG=; FG=;;
|
||||
black|dark) BG=k; FG=W;;
|
||||
dark_blue) BG=b; FG=W;;
|
||||
dark_cyan) BG=c; FG=W;;
|
||||
|
@ -87,8 +84,10 @@ if [ -h "$PROFILE" ]; then
|
|||
light_yellow) BG=Y; FG=k;;
|
||||
*) BG=W; FG=k;;
|
||||
esac
|
||||
rm -f "$PROFILE" 2>/dev/null
|
||||
byobu-select-profile -b $BG -f $FG >/dev/null 2>&1
|
||||
if [ -n "$BG" ] && [ -n "$FG" ]; then
|
||||
rm -f "$PROFILE" 2>/dev/null
|
||||
byobu-select-profile -b $BG -f $FG >/dev/null 2>&1
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue