SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2009-05-29 12:07:08

rfquerin
Inkscape Ninja
From: Beeton, Ontario, Canada
Registered: 2009-01-05
Posts: 383
Website

Openbox Theme Editor

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:

http://xyne.archlinux.ca/info/obtheme

Offline

Be excellent to each other!

#2 2009-05-29 12:12:02

Hanna
Conky Queen
From: Finland
Registered: 2008-11-29
Posts: 757

Re: Openbox Theme Editor

^Oh looks interesting, I think I'm going to try. smile Thanks for the link


HANNA (without "h" in the end) likes green and #! smile
Also know as ultraturquoise online / #! last.fm / #! DeviantART / U

Offline

#3 2009-05-29 15:16:50

Nicky
#! CrunchBanger
From: Paris (France)
Registered: 2009-04-05
Posts: 163

Re: Openbox Theme Editor

It can interest me... I was a little affraid to do it in a text editor directly big_smile

Offline

#4 2009-05-29 15:29:13

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 8,899

Re: Openbox Theme Editor

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

#5 2009-05-29 17:21:02

Nicky
#! CrunchBanger
From: Paris (France)
Registered: 2009-04-05
Posts: 163

Re: Openbox Theme Editor

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 big_smile
./configure --prefix=<prefix where python is installed>

Offline

#6 2009-05-29 17:33:45

rfquerin
Inkscape Ninja
From: Beeton, Ontario, Canada
Registered: 2009-01-05
Posts: 383
Website

Re: Openbox Theme Editor

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 headers

I know I should indicate where python is but I don't know, there are many "python" files big_smile
./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.

Offline

#7 2009-05-29 17:43:24

kBang
#! Die Hard
From: Calera, AL, USA
Registered: 2009-01-06
Posts: 774

Re: Openbox Theme Editor

rfquerin wrote:
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 headers

I know I should indicate where python is but I don't know, there are many "python" files big_smile
./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

#8 2009-05-29 17:47:32

rfquerin
Inkscape Ninja
From: Beeton, Ontario, Canada
Registered: 2009-01-05
Posts: 383
Website

Re: Openbox Theme Editor

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. wink  I'm trying to figure out why at the moment.

Offline

#9 2009-05-29 18:03:06

kBang
#! Die Hard
From: Calera, AL, USA
Registered: 2009-01-06
Posts: 774

Re: Openbox Theme Editor

rfquerin wrote:
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. wink  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

#10 2009-05-29 18:08:46

iggykoopa
Script Master
Registered: 2008-12-13
Posts: 1,480

Re: Openbox Theme Editor

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

#11 2009-05-29 18:15:33

kBang
#! Die Hard
From: Calera, AL, USA
Registered: 2009-01-06
Posts: 774

Re: Openbox Theme Editor

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 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

#12 2009-05-29 18:17:31

Nicky
#! CrunchBanger
From: Paris (France)
Registered: 2009-04-05
Posts: 163

Re: Openbox Theme Editor

rfquerin wrote:

Make sure to install the python-gtk2-dev files too just in case.

Good point wink

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 big_smile

Last edited by Nicky (2009-05-29 18:19:45)

Offline

#13 2009-05-29 18:30:22

rfquerin
Inkscape Ninja
From: Beeton, Ontario, Canada
Registered: 2009-01-05
Posts: 383
Website

Re: Openbox Theme Editor

Nicky wrote:
rfquerin wrote:

Make sure to install the python-gtk2-dev files too just in case.

Good point wink

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 big_smile

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.

Offline

#14 2009-05-29 18:34:02

kBang
#! Die Hard
From: Calera, AL, USA
Registered: 2009-01-06
Posts: 774

Re: Openbox Theme Editor

rfquerin wrote:
Nicky wrote:
rfquerin wrote:

Make sure to install the python-gtk2-dev files too just in case.

Good point wink

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 big_smile

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

#15 2009-05-30 07:50:30

Nicky
#! CrunchBanger
From: Paris (France)
Registered: 2009-04-05
Posts: 163

Re: Openbox Theme Editor

No, I am still  trying to install pygtk (./configure for the moment tongue ).

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

#16 2009-05-30 09:43:47

iggykoopa
Script Master
Registered: 2008-12-13
Posts: 1,480

Re: Openbox Theme Editor

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

#17 2009-05-30 10:15:27

Nicky
#! CrunchBanger
From: Paris (France)
Registered: 2009-04-05
Posts: 163

Re: Openbox Theme Editor

Yes but I didn't change the line 2297 big_smile

It seems working now. I will make a test and see what appens.

Thanks iggykoopa wink

Offline

#18 2009-05-30 10:48:51

Hanna
Conky Queen
From: Finland
Registered: 2008-11-29
Posts: 757

Re: Openbox Theme Editor

I got it working after the changes, but I haven't actually tried it yet. Looks nice though. smile


HANNA (without "h" in the end) likes green and #! smile
Also know as ultraturquoise online / #! last.fm / #! DeviantART / U

Offline

#19 2009-05-31 12:26:57

ADcomp
Python Script Master
From: Belgium
Registered: 2008-12-22
Posts: 598
Website

Re: Openbox Theme Editor

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 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

#20 2009-05-31 15:17:20

Kuno
#! Die Hard
From: Osnabrück - DE
Registered: 2009-01-09
Posts: 610

Re: Openbox Theme Editor

ADcomp wrote:

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 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 ...

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

#21 2009-06-01 07:37:30

iggykoopa
Script Master
Registered: 2008-12-13
Posts: 1,480

Re: Openbox Theme Editor

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

#22 2009-06-01 10:38:55

ADcomp
Python Script Master
From: Belgium
Registered: 2008-12-22
Posts: 598
Website

Re: Openbox Theme Editor

Hi iggykoopa ,

iggykoopa wrote:

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_home

Sample 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/.cache

Bye ..


David [aka] ADcomp

Offline

#23 2009-07-16 02:40:41

iteria
Member
Registered: 2009-07-13
Posts: 14

Re: Openbox Theme Editor

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

#24 2009-07-16 05:47:24

iggykoopa
Script Master
Registered: 2008-12-13
Posts: 1,480

Re: Openbox Theme Editor

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

Be excellent to each other!

#25 2009-07-16 10:44:48

iteria
Member
Registered: 2009-07-13
Posts: 14

Re: Openbox Theme Editor

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

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo