mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
debian/install, debian/rules, profiles/common,
profiles_generator/generate, profiles_generator/profile.skel, rpm/byobu.spec: get rid of the generated profiles; now, everything is handled by FOREGROUND and BACKGROUND colors, dynamically
This commit is contained in:
parent
12220a78c4
commit
20a0e2bb9f
7 changed files with 20 additions and 88 deletions
4
debian/changelog
vendored
4
debian/changelog
vendored
|
@ -28,6 +28,10 @@ byobu (2.40) unreleased; urgency=low
|
|||
flexibility
|
||||
* byobu-config, byobu-select-profile: rework to independently select
|
||||
background color and foreground color, rather than profile; improve text
|
||||
* debian/install, debian/rules, profiles/common,
|
||||
profiles_generator/generate, profiles_generator/profile.skel,
|
||||
rpm/byobu.spec: get rid of the generated profiles; now, everything is
|
||||
handled by FOREGROUND and BACKGROUND colors, dynamically
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 10 Nov 2009 10:18:20 -0600
|
||||
|
||||
|
|
5
debian/install
vendored
5
debian/install
vendored
|
@ -4,11 +4,6 @@ desktop/byobu.desktop usr/share/applications/
|
|||
po/locale/* usr/share/locale
|
||||
profiles/byoburc usr/share/byobu/profiles
|
||||
profiles/common usr/share/byobu/profiles
|
||||
profiles/NONE usr/share/byobu/profiles
|
||||
profiles/black usr/share/byobu/profiles
|
||||
profiles/dark usr/share/byobu/profiles
|
||||
profiles/light usr/share/byobu/profiles
|
||||
profiles/*_* usr/share/byobu/profiles
|
||||
keybindings/* usr/share/byobu/keybindings
|
||||
statusrc etc/byobu
|
||||
windows/common usr/share/byobu/windows
|
||||
|
|
3
debian/rules
vendored
3
debian/rules
vendored
|
@ -29,12 +29,9 @@ update-pot:
|
|||
prebuild:
|
||||
|
||||
build:
|
||||
# auto-generate the logo'd light/dark profiles
|
||||
./profiles_generator/generate
|
||||
|
||||
clean:
|
||||
dh_clean
|
||||
./profiles_generator/generate --clean
|
||||
for po in po/*.po ; do \
|
||||
lang=$${po#po/}; lang=$${lang%.po}; \
|
||||
rm -f po/locale/$${lang}/LC_MESSAGES/${PKG}.mo ; \
|
||||
|
|
|
@ -3,6 +3,9 @@
|
|||
# This configuration profile is intended to be a common header of useful
|
||||
# functionality, included by other profiles.
|
||||
#
|
||||
# It is intended to roughly approximate graphical desktop within 'screen';
|
||||
# inspired by the Ubuntu Gnome Desktop.
|
||||
#
|
||||
# Copyright (C) 2008 Canonical Ltd.
|
||||
#
|
||||
# Authors: Dustin Kirkland <kirkland@canonical.com>
|
||||
|
@ -87,3 +90,16 @@ defscrollback 10000
|
|||
setenv SSH_AUTH_SOCK /var/run/screen/S-$USER/byobu.ssh-agent
|
||||
|
||||
source $HOME/.byobu/keybindings
|
||||
|
||||
# Window tabs, second to last line
|
||||
caption always "%12`%?%-Lw%50L>%?%{=r }%{+b }%n*%f %t%?(%u)%?%12`%?%+Lw%?%11` %=%12`%110`%109`%122`%111`%10`%<"
|
||||
|
||||
# Status string, last line
|
||||
hardstatus string '%99`%12` %100`%112`%= %102`%101`%129`%127`%114`%115`%108`%128`%125`%126`%113`%119`%117`%116`%106`%104`%103`%105`%107`%123`%120`%121`'
|
||||
|
||||
# NOTE: Older version of screen have an arbitrary limit of only being able
|
||||
# to change colors 16 times in this 'hardstatus string'.
|
||||
# Ubuntu (fixed in Jaunty):
|
||||
# * https://bugs.launchpad.net/bugs/315871
|
||||
# Upstream:
|
||||
# * http://savannah.gnu.org/bugs/?22146
|
||||
|
|
|
@ -1,42 +0,0 @@
|
|||
#!/bin/sh
|
||||
# generate: dynamically generate all profiles
|
||||
# Copyright (C) 2008 Canonical Ltd.
|
||||
#
|
||||
# Authors: Dustin Kirkland <kirkland@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/>.
|
||||
|
||||
# This script should be run during in the './debian/rules get-orig-source'
|
||||
# step.
|
||||
|
||||
rm -f profiles/light profiles/dark profiles/black profiles/*_*
|
||||
if [ "$1" = "--clean" ]; then
|
||||
echo "Removing generated profiles"
|
||||
exit 0
|
||||
fi
|
||||
echo "Generating profiles"
|
||||
cat profiles_generator/profile.skel > profiles/light
|
||||
cp profiles/light profiles/dark
|
||||
sed -i "s/ Wk/ Kw/g" profiles/dark
|
||||
sed -i "s/kW/wK/g" profiles/dark
|
||||
for j in "B-light_blue" "b-dark_blue" "C-light_cyan" "c-dark_cyan" "G-light_green" "g-dark_green" "M-light_purple" "m-dark_purple" "R-light_red" "r-dark_red" "Y-light_yellow" "y-dark_yellow" "k-black"; do
|
||||
x=$(echo "$j" | awk -F"-" '{print $1}')
|
||||
desc=$(echo "$j" | awk -F"-" '{print $2}')
|
||||
y="w"
|
||||
if echo "$desc" | grep -qs "light"; then
|
||||
y="k"
|
||||
fi
|
||||
cp profiles/light profiles/$desc
|
||||
sed -i "s/ Wk/ $x$y/g" profiles/$desc
|
||||
sed -i "s/kW/$y$x/g" profiles/$desc
|
||||
done
|
|
@ -1,36 +0,0 @@
|
|||
###############################################################################
|
||||
# Screen Profile
|
||||
# This configuration profile is intended to roughly approximate graphical
|
||||
# desktop within 'screen'; inspired by the Ubuntu Gnome Desktop.
|
||||
#
|
||||
# Copyright (C) 2008 Canonical Ltd.
|
||||
#
|
||||
# Authors: Dustin Kirkland <kirkland@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/>.
|
||||
###############################################################################
|
||||
|
||||
source /usr/share/byobu/profiles/common
|
||||
|
||||
# Window tabs, second to last line
|
||||
caption always "%12`%?%-Lw%50L>%?%{=r }%{+b }%n*%f %t%?(%u)%?%12`%?%+Lw%?%11` %=%12`%110`%109`%122`%111`%10`%<"
|
||||
|
||||
# Status string, last line
|
||||
hardstatus string '%99`%12` %100`%112`%= %102`%101`%129`%127`%114`%115`%108`%128`%125`%126`%113`%119`%117`%116`%106`%104`%103`%105`%107`%123`%120`%121`'
|
||||
|
||||
# NOTE: Older version of screen have an arbitrary limit of only being able
|
||||
# to change colors 16 times in this 'hardstatus string'.
|
||||
# Ubuntu (fixed in Jaunty):
|
||||
# * https://bugs.launchpad.net/bugs/315871
|
||||
# Upstream:
|
||||
# * http://savannah.gnu.org/bugs/?22146
|
|
@ -28,8 +28,6 @@ screen window manager, such as toggle-able system status notifications.
|
|||
|
||||
|
||||
%build
|
||||
profiles_generator/generate
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue