~ambiance-chameleon/ambiance-chameleon/trunk

« back to all changes in this revision

Viewing changes to change-buttons

  • Committer: Matthew Richardson
  • Date: 2012-06-25 10:12:35 UTC
  • Revision ID: m.richardson.1990@hotmail.co.uk-20120625101235-oimxb25h0fdtvxb2
Fixed bug #1017104

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/bash
2
2
 
3
 
#change_buttons  full_path  rgb_string  username  metacity/unity  file_name
 
3
#change_buttons  full_path  rgb_string  username  change_count  metacity/unity  file_name
4
4
modulate_step="-modulate 150,0 -contrast -contrast"
5
5
modulate_step_2="-modulate 95,250"
6
6
 
7
 
if [[ "$5" == *close* ]]
 
7
if [[ "$6" == *close* ]]
8
8
then
9
9
modulate_step="-modulate 140,0"
10
10
modulate_step_2="-contrast -contrast -modulate 95,450"
11
11
fi
12
 
convert $1 $modulate_step -fill "rgb($2)" -colorize 25 $modulate_step_2 "/home/$3/.themes/Ambiance-chameleon/$4/$5";
 
12
convert $1 $modulate_step -fill "rgb($2)" -colorize 25 $modulate_step_2 "/home/$3/.themes/Ambiance-chameleon$4/$5/$6";