wok-6.x rev 18888
Add aurorials-theme and madeirado-theme (Art by Leonardo Laporte, theme switchers mine)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Feb 12 15:51:10 2016 +0200 (2016-02-12) |
parents | ffd792e0dea8 |
children | 984e868bf32b |
files | aurorials-theme/description.txt aurorials-theme/receipt madeirado-theme/description.txt madeirado-theme/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/aurorials-theme/description.txt Fri Feb 12 15:51:10 2016 +0200 1.3 @@ -0,0 +1,4 @@ 1.4 +This is a simple theme released into the Slitaz community. A theme that uses bold 1.5 +colors. This package contains themes for GTK2, Openbox, Slim and Wallpaper. 1.6 + 1.7 +Author: Leonardo Laporte
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/aurorials-theme/receipt Fri Feb 12 15:51:10 2016 +0200 2.3 @@ -0,0 +1,105 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="aurorials-theme" 2.7 +VERSION="20130704" 2.8 +CATEGORY="misc" 2.9 +SHORT_DESC="Aurorials theme for GTK2, Openbox, SLiM, and wallparer" 2.10 +MAINTAINER="al.bobylev@gmail.com" 2.11 +LICENSE="GPL3" 2.12 +WEB_SITE="http://holkfoor.deviantart.com/art/Aurorials-pack-themes-382752941" 2.13 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 2.14 +WGET_URL="https://dl.dropboxusercontent.com/s/urt40kxaladwpeu/Aurorials_GTK2_Openbox_Slim_Wallpaper.tar.bz2" 2.15 + 2.16 +DEPENDS="gtk2-engine-murrine openbox slim" 2.17 +BUILD_DEPENDS="imagemagick" 2.18 + 2.19 +# Rules to configure and make the package. 2.20 +compile_rules() 2.21 +{ 2.22 + A=Aurorials 2.23 + s=$install/usr/share/slim/themes 2.24 + t=$install/usr/share/themes 2.25 + i=$install/usr/share/images 2.26 + mkdir -p $s $t $i 2.27 + 2.28 + # SLiM theme 2.29 + cp -a $src/Slim/$A $s 2.30 + ( 2.31 + cd $s/$A; 2.32 + convert background.png background.jpg; 2.33 + rm background.png 2.34 + ) 2.35 + 2.36 + # GTK theme 2.37 + cp -a $src/GTK2/$A $t 2.38 + # (fix warnings about unsupported options) 2.39 + sed -i 's|^.*gradients|#&|' $t/$A/gtk-2.0/gtkrc 2.40 + 2.41 + # wallpaper 2.42 + ln -s ../slim/themes/$A/background.jpg $i/$A.jpg 2.43 +} 2.44 + 2.45 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.46 +genpkg_rules() 2.47 +{ 2.48 + cp -a $install/* $fs 2.49 +} 2.50 + 2.51 +post_install() 2.52 +{ 2.53 + # Set GTK+ Theme 2.54 + for i in $1/etc/xdg/lxsession/*/desktop.conf \ 2.55 + $1/home/*/.config/lxsession/*/desktop.conf; do 2.56 + [ -f "$i" ] && sed -i 's|sNet/ThemeName=.*|sNet/ThemeName=Aurorials|' $i 2.57 + done 2.58 + pgrep lxsession && lxsession -r 2.59 + 2.60 + # Set Openbox theme 2.61 + for i in /etc/xdg/openbox/rc.xml /home/*/.config/openbox/rc.xml; do 2.62 + [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>Aurorials<|' $i 2.63 + done 2.64 + pgrep openbox && openbox --reconfigure 2.65 + 2.66 + # Set SLiM theme 2.67 + chroot "$1/" slim-theme -s Aurorials 2.68 + 2.69 + # Set PCManFM wallpaper 2.70 + for i in $1/etc/xdg/pcmanfm/default/pcmanfm.conf \ 2.71 + $1/home/*/.config/pcmanfm/*/*.conf; do 2.72 + [ -f "$i" ] && sed -i 's|wallpaper[0-9]*=.*|wallpaper=/usr/share/images/Aurorials.jpg|' $i 2.73 + done 2.74 + if [ -z "$1" -a -n "$(pgrep pcmanfm)" ]; then 2.75 + # Change wallpaper for current PCManFM session right now 2.76 + su -c 'pcmanfm -w /usr/share/images/Aurorials.jpg' \ 2.77 + $(ps aux | grep '[p]cmanfm' | awk 'END{print $2}') 2.78 + fi 2.79 +} 2.80 + 2.81 +pre_remove() { 2.82 + # Restore GTK+ Theme (Clearlooks Human) 2.83 + for i in $1/etc/xdg/lxsession/*/desktop.conf \ 2.84 + $1/home/*/.config/lxsession/*/desktop.conf; do 2.85 + [ -f "$i" ] && sed -i 's|sNet/ThemeName=.*|sNet/ThemeName=Clearlooks Human|' $i 2.86 + done 2.87 + pgrep lxsession && lxsession -r 2.88 + 2.89 + # Restore Openbox theme (SliTaz) 2.90 + for i in /etc/xdg/openbox/rc.xml /home/*/.config/openbox/rc.xml; do 2.91 + [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>SliTaz<|' $i 2.92 + done 2.93 + pgrep openbox && openbox --reconfigure 2.94 + 2.95 + # Restore SLiM theme 2.96 + chroot "$1/" slim-theme -f Madeirado 2.97 + 2.98 + # Restore PCManFM wallpaper (slitaz-background.jpg) 2.99 + for i in $1/etc/xdg/pcmanfm/default/pcmanfm.conf \ 2.100 + $1/home/*/.config/pcmanfm/*/*.conf; do 2.101 + [ -f "$i" ] && sed -i 's|wallpaper[0-9]*=.*|wallpaper=/usr/share/images/slitaz-background.jpg|' $i 2.102 + done 2.103 + if [ -z "$1" -a -n "$(pgrep pcmanfm)" ]; then 2.104 + # Change wallpaper for current PCManFM session right now 2.105 + su -c 'pcmanfm -w /usr/share/images/slitaz-background.jpg' \ 2.106 + $(ps aux | grep '[p]cmanfm' | awk 'END{print $2}') 2.107 + fi 2.108 +}
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/madeirado-theme/description.txt Fri Feb 12 15:51:10 2016 +0200 3.3 @@ -0,0 +1,4 @@ 3.4 +This is a pack of themes inspired by SliTaz GNU Linux. It contains GTK2 theme, 3.5 +Openbox 3 Theme, Slim Theme and Madeirado Wallpaper (1024x768). 3.6 + 3.7 +Author: Leonardo Laporte
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/madeirado-theme/receipt Fri Feb 12 15:51:10 2016 +0200 4.3 @@ -0,0 +1,106 @@ 4.4 +# SliTaz package receipt. 4.5 + 4.6 +PACKAGE="madeirado-theme" 4.7 +VERSION="20130702" 4.8 +CATEGORY="misc" 4.9 +SHORT_DESC="Madeirado theme for GTK2, Openbox, SLiM, and wallparer" 4.10 +MAINTAINER="al.bobylev@gmail.com" 4.11 +LICENSE="GPL3" 4.12 +WEB_SITE="http://holkfoor.deviantart.com/art/Madeirado-Pack-Theme-382214228" 4.13 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 4.14 +WGET_URL="https://dl.dropboxusercontent.com/s/ax6iqx6aa344fsu/Madeirado_GTK2_Openbox_Slim_Wallpaper.tar.bz2" 4.15 + 4.16 +DEPENDS="gtk-clearlooks openbox slim" 4.17 +BUILD_DEPENDS="imagemagick" 4.18 + 4.19 +# Rules to configure and make the package. 4.20 +compile_rules() 4.21 +{ 4.22 + M=Madeirado 4.23 + s=$install/usr/share/slim/themes 4.24 + t=$install/usr/share/themes 4.25 + i=$install/usr/share/images 4.26 + mkdir -p $s $t $i 4.27 + 4.28 + # SLiM theme 4.29 + cp -a $src/slim/$M $s 4.30 + ( 4.31 + cd $s/$M 4.32 + convert background.png background.jpg 4.33 + rm background.png 4.34 + ) 4.35 + 4.36 + # GTK theme 4.37 + cp -a $src/theme/$M $t 4.38 + # (fix warnings about unsupported options) 4.39 + sed -i 's|^.*menuitemstyle|#&|; s|^.*listviewitemstyle|#&|; 4.40 + s|^.*progressbarstyle|#&|' $t/$M/gtk-2.0/gtkrc 4.41 + 4.42 + # wallpaper 4.43 + ln -s ../slim/themes/$M/background.jpg $i/$M.jpg 4.44 +} 4.45 + 4.46 +# Rules to gen a SliTaz package suitable for Tazpkg. 4.47 +genpkg_rules() 4.48 +{ 4.49 + cp -a $install/* $fs 4.50 +} 4.51 + 4.52 +post_install() 4.53 +{ 4.54 + # Set GTK+ Theme 4.55 + for i in $1/etc/xdg/lxsession/*/desktop.conf \ 4.56 + $1/home/*/.config/lxsession/*/desktop.conf; do 4.57 + [ -f "$i" ] && sed -i 's|sNet/ThemeName=.*|sNet/ThemeName=Madeirado|' $i 4.58 + done 4.59 + pgrep lxsession && lxsession -r 4.60 + 4.61 + # Set Openbox theme 4.62 + for i in /etc/xdg/openbox/rc.xml /home/*/.config/openbox/rc.xml; do 4.63 + [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>Madeirado<|' $i 4.64 + done 4.65 + pgrep openbox && openbox --reconfigure 4.66 + 4.67 + # Set SLiM theme 4.68 + chroot "$1/" slim-theme -s Madeirado 4.69 + 4.70 + # Set PCManFM wallpaper 4.71 + for i in $1/etc/xdg/pcmanfm/default/pcmanfm.conf \ 4.72 + $1/home/*/.config/pcmanfm/*/*.conf; do 4.73 + [ -f "$i" ] && sed -i 's|wallpaper[0-9]*=.*|wallpaper=/usr/share/images/Madeirado.jpg|' $i 4.74 + done 4.75 + if [ -z "$1" -a -n "$(pgrep pcmanfm)" ]; then 4.76 + # Change wallpaper for current PCManFM session right now 4.77 + su -c 'pcmanfm -w /usr/share/images/Madeirado.jpg' \ 4.78 + $(ps aux | grep '[p]cmanfm' | awk 'END{print $2}') 4.79 + fi 4.80 +} 4.81 + 4.82 +pre_remove() { 4.83 + # Restore GTK+ Theme (Clearlooks Human) 4.84 + for i in $1/etc/xdg/lxsession/*/desktop.conf \ 4.85 + $1/home/*/.config/lxsession/*/desktop.conf; do 4.86 + [ -f "$i" ] && sed -i 's|sNet/ThemeName=.*|sNet/ThemeName=Clearlooks Human|' $i 4.87 + done 4.88 + pgrep lxsession && lxsession -r 4.89 + 4.90 + # Restore Openbox theme (SliTaz) 4.91 + for i in /etc/xdg/openbox/rc.xml /home/*/.config/openbox/rc.xml; do 4.92 + [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>SliTaz<|' $i 4.93 + done 4.94 + pgrep openbox && openbox --reconfigure 4.95 + 4.96 + # Restore SLiM theme 4.97 + chroot "$1/" slim-theme -f Madeirado 4.98 + 4.99 + # Restore PCManFM wallpaper (slitaz-background.jpg) 4.100 + for i in $1/etc/xdg/pcmanfm/default/pcmanfm.conf \ 4.101 + $1/home/*/.config/pcmanfm/*/*.conf; do 4.102 + [ -f "$i" ] && sed -i 's|wallpaper[0-9]*=.*|wallpaper=/usr/share/images/slitaz-background.jpg|' $i 4.103 + done 4.104 + if [ -z "$1" -a -n "$(pgrep pcmanfm)" ]; then 4.105 + # Change wallpaper for current PCManFM session right now 4.106 + su -c 'pcmanfm -w /usr/share/images/slitaz-background.jpg' \ 4.107 + $(ps aux | grep '[p]cmanfm' | awk 'END{print $2}') 4.108 + fi 4.109 +}