Author Topic: Smaragd - kde4 windeco for emerald themes  (Read 1266 times)

Offline Chomp

  • Full Member
  • ***
  • Posts: 173
Smaragd - kde4 windeco for emerald themes
« on: June 06, 2010, 12:31:30 PM »
Per user request, I've built and upped Smaragd to Dropbox/SRPMS/testing. Smaragd is a windeco for kde4 that lets you use emerald themes. Feel free to test and please send me any feedback, I really like the idea of using emerald themes in kde4 without emerald.

It doesn't come with an install/config dialog so you have to manually create /home/user/.emerald/theme folders and then manually extract the .emerald files to .emerald/theme, making sure there is a theme.ini file.

Alternatively, you can use the Emerald theme manager to install and modify themes according to the developer. I haven't tested this.

Emerald themes: http://openDesktop.org/index.php?xcontentmode=102x103

Also, I am curious as to if I can have the spec file create the .emerald/theme folders in the users /home at or after install?

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12486
Re: Smaragd - kde4 windeco for emerald themes
« Reply #1 on: June 06, 2010, 01:44:11 PM »
Per user request, I've built and upped Smaragd to Dropbox/SRPMS/testing. Smaragd is a windeco for kde4 that lets you use emerald themes. Feel free to test and please send me any feedback, I really like the idea of using emerald themes in kde4 without emerald.

It doesn't come with an install/config dialog so you have to manually create /home/user/.emerald/theme folders and then manually extract the .emerald files to .emerald/theme, making sure there is a theme.ini file.

Alternatively, you can use the Emerald theme manager to install and modify themes according to the developer. I haven't tested this.

Emerald themes: http://openDesktop.org/index.php?xcontentmode=102x103

Also, I am curious as to if I can have the spec file create the .emerald/theme folders in the users /home at or after install?


Yes you can. I stole this from pinoc when he wasn't looking but I'm sure he didn't mind. :D

%posttrans

#Broken out

#1.This creates a .emerald/theme in every users home folder
SYSUSERS=`cat /etc/passwd | grep "/bin/bash" |grep "[0-9][0-9][0-9]" |cut -d: -f1`
SYSUSERS=${SYSUSERS/named/}
for idx in $SYSUSERS
do INP1= mkdir -p /home/$idx/.emerald/theme; done

If you want you can add a step 2 and copy a default theme into the folder provided you stored the theme some place in your original package.

#2. Copy a default theme into each users home/.emerald/theme folder.
SYSUSERS=`cat /etc/passwd | grep "/bin/bash" |grep "[0-9][0-9][0-9]" |cut -d: -f1`
SYSUSERS=${SYSUSERS/named/}
for idx in $SYSUSERS
 do INP1= cp -af /where-you-stored-a-default-theme/* /home/$idx/.emerald/theme; done

#3.This will make the folder owned by the user
SYSUSERS=`cat /etc/passwd | grep "/bin/bash" |grep "[0-9][0-9][0-9]" |cut -d: -f1`
SYSUSERS=${SYSUSERS/named/}
for idx in $SYSUSERS
do INP1= chown -R "$idx:$idx" /home/$idx/.emerald; done


OR

%posttrans

# Compressed
SYSUSERS=`cat /etc/passwd | grep "/bin/bash" |grep "[0-9][0-9][0-9]" |cut -d: -f1`
SYSUSERS=${SYSUSERS/named/}
for idx in $SYSUSERS
do INP1= mkdir -p /home/$idx/.emerald/theme
cp -af /where-you-stored-a-default-theme/* /home/$idx/.emerald/theme
chown -R "$idx:$idx" /home/$idx/.emerald
done
« Last Edit: June 06, 2010, 01:58:10 PM by Texstar »

Thanks to everyone who donates. You keep the servers running.

Offline Chomp

  • Full Member
  • ***
  • Posts: 173
Re: Smaragd - kde4 windeco for emerald themes
« Reply #2 on: June 06, 2010, 03:27:44 PM »
Very Awesome.  Thank you Tex.