You are not logged in.
I just saw this pop up a short time ago posted by Xyne in the Openbox mailing list. I haven't tried it yet, but it might be useful to those wanting to do Openbox theming:
My Blog: http://blog.rfquerin.org
Screencasters: http://screencasters.heathenx.org
Identica: http://identi.ca/rfquerin
Offline
^Oh looks interesting, I think I'm going to try.
Thanks for the link
HANNA (without "h" in the end) likes green and #! 
Also know as ultraturquoise online / #! last.fm / #! DeviantART / U
Offline
It can interest me... I was a little affraid to do it in a text editor directly 
Offline
Maybe Ill make an Openbox theme after all.
Note: ** Please read before posting **
BTW if you wish to contact me, send me an e-mail instead of a PM.
Offline
I don't know how to install pygtk. It is not in package manager, and with the source file from the site I don't succeed in doing the configuration:
the error message:
checking for headers required to compile python extensions... not found
configure: error: could not find Python headers
I know I should indicate where python is but I don't know, there are many "python" files 
./configure --prefix=<prefix where python is installed>
Offline
I don't know how to install pygtk. It is not in package manager, and with the source file from the site I don't succeed in doing the configuration:
the error message:
checking for headers required to compile python extensions... not found
configure: error: could not find Python headersI know I should indicate where python is but I don't know, there are many "python" files
./configure --prefix=<prefix where python is installed>
I think the python-gtk2 package files are what you want. The pyGTK site indicates that Ubuntu (among several other major distros) have the pygtk packages in their repos. Like you, I don't see anything named "pygtk".
Make sure to install the python-gtk2-dev files too just in case.
My Blog: http://blog.rfquerin.org
Screencasters: http://screencasters.heathenx.org
Identica: http://identi.ca/rfquerin
Offline
Nicky wrote:I don't know how to install pygtk. It is not in package manager, and with the source file from the site I don't succeed in doing the configuration:
the error message:
checking for headers required to compile python extensions... not found
configure: error: could not find Python headersI know I should indicate where python is but I don't know, there are many "python" files
./configure --prefix=<prefix where python is installed>I think the python-gtk2 package files are what you want. The pyGTK site indicates that Ubuntu (among several other major distros) have the pygtk packages in their repos. Like you, I don't see anything named "pygtk".
Make sure to install the python-gtk2-dev files too just in case.
What about the python-fuse? Not finding anything similar in the ubuntu repos and the few things I find on the net aren't necessarily clear they are the same animal.
I view KDE like I view snow. It looks fun and marvelous, it's fun to play in, but after a while I just want someone to take it all away.
Offline
What about the python-fuse? Not finding anything similar in the ubuntu repos and the few things I find on the net aren't necessarily clear they are the same animal.
I did an 'apt-cache search python-fuse' and it found the package "python-fuse" when I then installed.
That said, the obtheme script doesn't seem to run for me..either yet.
I'm trying to figure out why at the moment.
My Blog: http://blog.rfquerin.org
Screencasters: http://screencasters.heathenx.org
Identica: http://identi.ca/rfquerin
Offline
kBang wrote:What about the python-fuse? Not finding anything similar in the ubuntu repos and the few things I find on the net aren't necessarily clear they are the same animal.
I did an 'apt-cache search python-fuse' and it found the package "python-fuse" when I then installed.
That said, the obtheme script doesn't seem to run for me..either yet.
I'm trying to figure out why at the moment.
That is really odd as I had attempted to install python-fuse and even searched via synaptic...anyways the cache search worked and I installed.
Traceback (most recent call last):
File "/home/tony/bin/obtheme", line 3208, in <module>
obt = ObTheme()
File "/home/tony/bin/obtheme", line 2297, in __init__
self.openbox_config_path = os.getenv('XDG_CONFIG_HOME')+'/openbox/rc.xml'
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'Last edited by kBang (2009-05-29 18:04:45)
I view KDE like I view snow. It looks fun and marvelous, it's fun to play in, but after a while I just want someone to take it all away.
Offline
change line 2297 from
self.openbox_config_path = os.getenv('XDG_CONFIG_HOME')+'/openbox/rc.xml'
to
self.openbox_config_path = os.getenv('HOME')+'/openbox/rc.xml'
and it runs fine
I say never be complete, I say stop being perfect, I say lets evolve, let the chips fall where they may.
Offline
change line 2297 from
self.openbox_config_path = os.getenv('XDG_CONFIG_HOME')+'/openbox/rc.xml'
to
self.openbox_config_path = os.getenv('HOME')+'/openbox/rc.xml'
and it runs fine
I knew it had something to do with that line but I had no idea what to change, I was about to edit it to '~/.config/openbox/rc.xml'
Thanks iggy.
I view KDE like I view snow. It looks fun and marvelous, it's fun to play in, but after a while I just want someone to take it all away.
Offline
Make sure to install the python-gtk2-dev files too just in case.
Good point 
Now it is the "make" that doesn't work... there something to add to the command ??
Edit : excuse, in fact there is another mmistake in configure. i will find what 
Last edited by Nicky (2009-05-29 18:19:45)
Offline
rfquerin wrote:Make sure to install the python-gtk2-dev files too just in case.
Good point
Now it is the "make" that doesn't work... there something to add to the command ??
Edit : excuse, in fact there is another mmistake in configure. i will find what
I don't think you need to run a make command. The FAQ on the site indicates that you just run obtheme.. so you would use "./obtheme" and it should run.
My Blog: http://blog.rfquerin.org
Screencasters: http://screencasters.heathenx.org
Identica: http://identi.ca/rfquerin
Offline
Nicky wrote:rfquerin wrote:Make sure to install the python-gtk2-dev files too just in case.
Good point
Now it is the "make" that doesn't work... there something to add to the command ??
Edit : excuse, in fact there is another mmistake in configure. i will find what
I don't think you need to run a make command. The FAQ on the site indicates that you just run obtheme.. so you would use "./obtheme" and it should run.
I simply used obtheme, nothing else.
Last edited by kBang (2009-05-29 18:34:29)
I view KDE like I view snow. It looks fun and marvelous, it's fun to play in, but after a while I just want someone to take it all away.
Offline
No, I am still trying to install pygtk (./configure for the moment
).
the new error is:
checking for PYGOBJECT... configure: error: Package requirements (pygobject-2.0 >= 2.16.1) were not met:
Requested 'pygobject-2.0 >= 2.16.1' but version of PyGObject is 2.15.3
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.Alternatively, you may set the environment variables PYGOBJECT_CFLAGS
and PYGOBJECT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
I see that it try to help me but I don't know what to do.
Offline
The only thing I had to install was python-fuse...have you tried running the editor after installing that?
I say never be complete, I say stop being perfect, I say lets evolve, let the chips fall where they may.
Offline
Yes but I didn't change the line 2297 
It seems working now. I will make a test and see what appens.
Thanks iggykoopa 
Offline
I got it working after the changes, but I haven't actually tried it yet. Looks nice though. 
HANNA (without "h" in the end) likes green and #! 
Also know as ultraturquoise online / #! last.fm / #! DeviantART / U
Offline
Hello iggykoopa,
change line 2297 from
self.openbox_config_path = os.getenv('XDG_CONFIG_HOME')+'/openbox/rc.xml'
to
self.openbox_config_path = os.getenv('HOME')+'/openbox/rc.xml'
and it runs fine
I really think you miss something .. if you replace XDG_CONFIG_HOME by HOME , os.getenv('HOME')+'/openbox/rc.xml' looks after ~/openbox/rc.xml ..
As rc.xml is in ~/.config/openbox , you have to change with this :
self.openbox_config_path = os.getenv('HOME')+'/.config/openbox/rc.xml'Bye ...
David [aka] ADcomp
Offline
Hello iggykoopa,
iggykoopa wrote:change line 2297 from
self.openbox_config_path = os.getenv('XDG_CONFIG_HOME')+'/openbox/rc.xml'
to
self.openbox_config_path = os.getenv('HOME')+'/openbox/rc.xml'
and it runs fineI really think you miss something .. if you replace XDG_CONFIG_HOME by HOME , os.getenv('HOME')+'/openbox/rc.xml' looks after ~/openbox/rc.xml ..
As rc.xml is in ~/.config/openbox , you have to change with this :self.openbox_config_path = os.getenv('HOME')+'/.config/openbox/rc.xml'Bye ...
Hi all!
I just did what Iggy suggested (just install python-fuse and put the obtheme-binary in /usr/bin/).
Works for me!
Anyway, I'll try to change the path to rc.xml to see what happens...
Offline
your right adcomp...didn't even notice that the rest of the path was wrong, thanks for pointing it out.
I say never be complete, I say stop being perfect, I say lets evolve, let the chips fall where they may.
Offline
Hi iggykoopa ,
didn't even notice that the rest of the path was wrong
I don't know why 'XDG_CONFIG_HOME' is not set but this should return ~/.config ( http://freedesktop.org/wiki/Software/xdg-user-dirs )
I looking for this for "cbpanel". The best way I found to do this , Use python-xdg :
## a set of variables determining directories for data, configs and cache.
import xdg.BaseDirectory as bd
print 'xdg_data_home: %s' % bd.xdg_data_home
print 'xdg_data_dirs: %s' % bd.xdg_data_dirs
print 'xdg_config_home: %s' % bd.xdg_config_home
print 'xdg_config_dirs: %s' % bd.xdg_config_dirs
print 'xdg_cache_home: %s' % bd.xdg_cache_homeSample output:
xdg_data_home: /home/david/.local/share
xdg_data_dirs: ['/home/david/.local/share', '/usr/local/share', '/usr/share']
xdg_config_home: /home/david/.config
xdg_config_dirs: ['/home/david/.config', '/etc/xdg']
xdg_cache_home: /home/david/.cacheBye ..
David [aka] ADcomp
Offline
I was wondering if anyone was having the same problems I was having with this little application. When I try to same a theme I get this error:
File "/usr/bin/obtheme", line 2211, in save_theme
for item in os.listdir(self.preview_themerc_dir):
OSError: [Errno 22] Invalid argument: '/home/iteria/.themes/obtheme/openbox-3'I opened up the python file and had a look at the problem, but it's just baffling. This is the line it breaks on:
for item in os.listdir(self.preview_themerc_dir):self.preview_themerc_dir has the correct value from what I can tell and in the correct format (but I could be wrong, python isn't a language I know.), however it's giving a invalid argument error. Again I don't know much about python, but os.listdir() would have returned nothing (because there were no subdirectories), so no "item"s would be formed. Maybe python doesn't like that?
Last edited by iteria (2009-07-16 02:45:17)
Am I the only one who thinks some of the app names are amusing? Conkywonky. Terminator. Gets me every time.
Offline
it appears that self.preview_themerc_dir is set to '/home/iteria/.themes/obtheme/openbox-3', which in your case does exist. It is trying to list the contents of that directory, and since it is empty it is erroring out. I'll have to take a look at the code when I get home from work to help you out more, but hopefully that will point you in the right direction for what is wrong.
edit: are you sure that directory exists? I don't think it should error on that if it's empty, it should just return nothing.(not at home so I can't test it out, sorry)
Last edited by iggykoopa (2009-07-16 05:51:48)
I say never be complete, I say stop being perfect, I say lets evolve, let the chips fall where they may.
Offline
It exists. That directory is added by obtheme. if I deleted it, obtheme would add it again on start up.
Am I the only one who thinks some of the app names are amusing? Conkywonky. Terminator. Gets me every time.
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.