From 72ed7eb1a858db54556ce66a074104ee32d5120a Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Fri, 27 Feb 2009 15:46:12 -0600 Subject: [PATCH] generate profiles with status bars of all supported colors --- debian/install | 12 ++++-------- profiles/generate-profiles | 12 ++++++++++++ 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/debian/install b/debian/install index d6cd8c1a..0031580a 100644 --- a/debian/install +++ b/debian/install @@ -11,14 +11,10 @@ bin/updates-available usr/share/screen-profiles/bin bin/whoami usr/share/screen-profiles/bin profiles/common usr/share/screen-profiles/profiles profiles/plain usr/share/screen-profiles/profiles -profiles/ubuntu-light usr/share/screen-profiles/profiles -profiles/ubuntu-dark usr/share/screen-profiles/profiles -profiles/debian-light usr/share/screen-profiles/profiles/misc -profiles/debian-dark usr/share/screen-profiles/profiles/misc -profiles/fedora-light usr/share/screen-profiles/profiles/misc -profiles/fedora-dark usr/share/screen-profiles/profiles/misc -profiles/redhat-light usr/share/screen-profiles/profiles/misc -profiles/redhat-dark usr/share/screen-profiles/profiles/misc +profiles/ubuntu-* usr/share/screen-profiles/profiles +profiles/debian-* usr/share/screen-profiles/profiles/misc +profiles/fedora-* usr/share/screen-profiles/profiles/misc +profiles/redhat-* usr/share/screen-profiles/profiles/misc keybindings/common usr/share/screen-profiles/keybindings keybindings/none usr/share/screen-profiles/keybindings windows/common usr/share/screen-profiles/windows diff --git a/profiles/generate-profiles b/profiles/generate-profiles index 89fbb770..3e4c35d5 100755 --- a/profiles/generate-profiles +++ b/profiles/generate-profiles @@ -11,4 +11,16 @@ for i in $(ls profiles/logos); do cp profiles/$i-light profiles/$i-dark sed -i "s/ Wk/ Kw/g" profiles/$i-dark sed -i "s/kW/wK/g" profiles/$i-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 + echo "Generating profile: $i-$desc" + cp profiles/$i-light profiles/$i-$desc + sed -i "s/ Wk/ $x$y/g" profiles/$i-$desc + sed -i "s/kW/$y$x/g" profiles/$i-$desc + done done