Vivamus maximus ligula maximus nunc eleifend tincidunt. Proin venenatis vulputate est sit amet pellentesque. Vestibulum ornare dui ut risus faucibus lacinia. Nulla risus leo, finibus vitae dolor sed, eleifend viverra est. Phasellus consectetur euismod tellus id pretium. Fusce et massa finibus justo fringilla eleifend. Suspendisse a mauris sapien. Vestibulum tempor facilisis lacus, at tempus orci sagittis nec. Nunc lobortis a odio non elementum. Fusce velit magna, aliquam vel vehicula eget, accumsan non nisi. Donec eleifend risus a risus dignissim varius sed eu augue. Etiam ac sollicitudin lorem. Aliquam mollis id nibh vitae faucibus. Aliquam nec pharetra ex, sed faucibus mauris. Curabitur sed ipsum velit. Mauris pellentesque in ex eu vehicula. Sed convallis tortor fringilla blandit mattis. Duis et arcu id arcu accumsan egestas. Aliquam vulputate semper tempor. Nullam mollis pulvinar volutpat.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | #!/bin/bash
#---------------------------------------------------------------------
# Script to display unicode characters representing the level of
# some indicator.
#
# Designed to work with the wonderful byobu(1) but can be run
# stand-alone.
#---------------------------------------------------------------------
#
# Copyright (C) 2011 Canonical Ltd.
#
# Author: James Hunt <james.hunt@canonical.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#---------------------------------------------------------------------
#------------------------------
# Themes with 2 values.
#
# Two-value themes are handled differently to other n-value types of
# theme: the first array entry in each theme is generally some unfilled
# glyph, denoting an "off" value and the second value is the filled
# version of the unfilled glyph and denotes an "on" value. Note that
# you can always change the ordering of these values using the 'invert'
# command-line option.
PKG="byobu"
[ -r "$HOME/.byoburc" ] && . "$HOME/.byoburc"
[ -z "${BYOBU_PREFIX}" ] && export BYOBU_PREFIX="/usr" || export BYOBU_PREFIX
. "${BYOBU_PREFIX}/lib/${PKG}/include/common"
circles_2=(○ ●)
if [ -z "$current" ]
then
error "must specify current value"
usage
exit 1
fi
if [ $permissive = n ]
then
assert "$current >= $min" "current ($current) < minimum ($min)"
assert "$current <= $max" "current ($current) > maximum ($max)"
else
[ ! -z "$(bc_test "$current < $min")" ] && current=$min
[ ! -z "$(bc_test "$current > $max")" ] && current=$max
fi
[ -z "$theme" ] && theme=$theme_default
theme_valid "$theme" || die "invalid theme: $theme"
show_theme_entry $theme $min $max $current
exit 0
|
Vivamus maximus ligula maximus nunc eleifend tincidunt. Proin venenatis vulputate est sit amet pellentesque. Vestibulum ornare dui ut risus faucibus lacinia. Nulla risus leo, finibus vitae dolor sed, eleifend viverra est. Phasellus consectetur euismod tellus id pretium. Fusce et massa finibus justo fringilla eleifend. Suspendisse a mauris sapien. Vestibulum tempor facilisis lacus, at tempus orci sagittis nec. Nunc lobortis a odio non elementum. Fusce velit magna, aliquam vel vehicula eget, accumsan non nisi. Donec eleifend risus a risus dignissim varius sed eu augue. Etiam ac sollicitudin lorem. Aliquam mollis id nibh vitae faucibus. Aliquam nec pharetra ex, sed faucibus mauris. Curabitur sed ipsum velit. Mauris pellentesque in ex eu vehicula. Sed convallis tortor fringilla blandit mattis. Duis et arcu id arcu accumsan egestas. Aliquam vulputate semper tempor. Nullam mollis pulvinar volutpat.