summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cubedbusModel.c.in1
-rwxr-xr-xscripts/model.sh3
2 files changed, 4 insertions, 0 deletions
diff --git a/cubedbusModel.c.in b/cubedbusModel.c.in
index ff865d8..0b28b57 100644
--- a/cubedbusModel.c.in
+++ b/cubedbusModel.c.in
@@ -195,6 +195,7 @@ cubedbusAddModelObject (CubedbusObject *obj, CompOption *option, int nOption)
mtllib[nMtllib]=strsep(&strline,delim);
if(mtllib[nMtllib] == NULL) break;
if(!strcmp(mtllib[nMtllib],"")) continue; /* if blank override next time */
+ compLogMessage(NULL, "cubedbus", CompLogLevelWarn, "basename: %s", basename (mtllib[nMtllib]) );
nMtllib++;
}
}
diff --git a/scripts/model.sh b/scripts/model.sh
new file mode 100755
index 0000000..67df481
--- /dev/null
+++ b/scripts/model.sh
@@ -0,0 +1,3 @@
+dbus-send --type=method_call --dest=org.freedesktop.compiz /org/freedesktop/compiz/cubedbus/allscreens/add org.freedesktop.compiz.activate string:'root' int32:`xwininfo -root | grep id: | awk '{ print $4 }'` string:'type' int32:5 string:'name' string:'root.model' string:'file' string:$1
+
+#Run this in terminal - accepts as argument 1 .obj file