compiz/compiz-decorator-gtk

19 lines
349 B
Plaintext
Raw Normal View History

2013-05-26 13:26:06 +00:00
#!/bin/bash
2013-06-03 13:00:25 +00:00
compiz=`ps ax | grep 'compiz --replace' | grep -v 'grep' | awk '{print $5}'`
2013-05-26 13:26:06 +00:00
2013-06-03 13:00:25 +00:00
theme=`gsettings get org.mate.Marco.general theme | cut -d\' -f2`
2013-05-26 13:26:06 +00:00
2013-06-03 13:00:25 +00:00
if [ "$compiz" = "compiz" ] ; then
gtk-window-decorator --replace --marco-theme "$theme" &
echo "$compiz with GTK windows-decorator"
echo "GTK theme is $theme"
else
exit 0
2013-05-26 13:26:06 +00:00
fi
2013-06-03 13:00:25 +00:00
exit 0
2013-05-26 13:26:06 +00:00