View previous topic :: View next topic |
Author |
Message |
Cossins Veteran
Joined: 21 Mar 2003 Posts: 1136 Location: Copenhagen, Denmark
|
Posted: Sat Mar 13, 2004 2:17 pm Post subject: Kahakai Woes [none left] |
|
|
Hi there!
On my bi-monthly venture into other WMs/DEs than my old and trusted KDE, I thought I would give Kahakai a chance. And I can't say I'm not impressed. Once I had a few decent themes running and figured out how to find my way round the configuration files, it's looking really neat.
But I have a few major problems:
1) My keybindings in userconfig.py don't seem to apply. The documentation is very scarce for a newbie, and I have absolutely no experience with Python. I have tried to set some keybindings for changing desktops (Alt+1...4) and an aterm (Alt+t), but none of it works.
Here is my userconfig.py.
Also, when are settings from userconfig.py applied? I noticed that Kahakai re-reads all of its other config files "live", does this also apply here?
2) I'm using PyPanel for my panel, but it's like it gets killed right after it's started when I put it in ~/.kahakai/autostart. All other apps from autostart work (gaim, docker).
Please help...
- Simon _________________ who cares
Last edited by Cossins on Sat Mar 13, 2004 5:06 pm; edited 1 time in total |
|
Back to top |
|
|
Andersson Guru
Joined: 12 Jul 2003 Posts: 525 Location: Göteborg, Sweden
|
Posted: Sat Mar 13, 2004 4:13 pm Post subject: Re: Kahakai Woes |
|
|
Cossins wrote: | My keybindings in userconfig.py don't seem to apply.
Code: | def globalKeyBindings(self):
return Configuration.globalKeyBindings(self) + [
(KeyPress(Alt, 'T'), "{aterm}"),
(KeyPress(Alt, '1'), ("GoToDesktop", 0)),
(KeyPress(Alt, '2'), ("GoToDesktop", 1)),
(KeyPress(Alt, '3'), ("GoToDesktop", 2)),
(KeyPress(Alt, '4'), ("GoToDesktop", 3))
] |
|
I can't try your config myself right now, but the quoting is different from mine. Try removing the quotes around GoToDesktop, that's a function, not a string. Perhaps you need to quote the numbers 0-3, I think those are characters, not integers... And I have the {aterm} in 'single quotes', not "double", but I don't know if that matters in python. Hmm... after that it's equivalent to my config
Cossins wrote: | Also, when are settings from userconfig.py applied? I noticed that Kahakai re-reads all of its other config files "live", does this also apply here? |
No, you have to right click the desktop to open the menu, then select restart before the changes take effect.
I can't help you with pypanel, I've never tried it. What happens if you start it from a terminal? |
|
Back to top |
|
|
Insanity5902 Veteran
Joined: 23 Jan 2004 Posts: 1228 Location: Fort Worth, Texas
|
Posted: Sat Mar 13, 2004 4:19 pm Post subject: |
|
|
I am starting pypanel from xinitrc for openbox and it stays open i am just calling it like mabye the ampersand makes the difference.
I do notice though when I start pypanel form a *term inside x and then close that term whether I use the ampersand or not it will close with the termainal. I am guessing that the autostart of kahakai is creating a temporary term to start and then closes it once it has loaded everything in it's file ... _________________ Join the adopt an unanswered post initiative today |
|
Back to top |
|
|
Cossins Veteran
Joined: 21 Mar 2003 Posts: 1136 Location: Copenhagen, Denmark
|
Posted: Sat Mar 13, 2004 4:20 pm Post subject: Re: Kahakai Woes |
|
|
Thanks for replying, I'll give it a/some try/ies...
Andersson wrote: | I can't help you with pypanel, I've never tried it. What happens if you start it from a terminal? |
Works fine from a terminal...
- Simon _________________ who cares |
|
Back to top |
|
|
Cossins Veteran
Joined: 21 Mar 2003 Posts: 1136 Location: Copenhagen, Denmark
|
Posted: Sat Mar 13, 2004 4:31 pm Post subject: |
|
|
Hmmm, I tried fooling around a bit, and it turns out my userconfig.py file isn't being executed (did you know Kahakai has a log? ).
If I try to execute the script manually, I get the following:
Code: | Traceback (most recent call last):
File "./userconfig.py", line 5, in ?
from actions import *
ImportError: No module named actions |
So, how do I make Python find the right modules?
- Simon _________________ who cares |
|
Back to top |
|
|
Andersson Guru
Joined: 12 Jul 2003 Posts: 525 Location: Göteborg, Sweden
|
Posted: Sat Mar 13, 2004 4:54 pm Post subject: |
|
|
Perhaps you have a file from an older version? Mine says "from macros import *". |
|
Back to top |
|
|
Cossins Veteran
Joined: 21 Mar 2003 Posts: 1136 Location: Copenhagen, Denmark
|
Posted: Sat Mar 13, 2004 4:57 pm Post subject: |
|
|
Andersson wrote: | Perhaps you have a file from an older version? Mine says "from macros import *". |
You're right! It looks quite differently from /usr/share/kahakai/home_userconfig.py, which is the file that is copied into ~/.kahakai if none exists. Appears I had an earlier version of Kahakai in some other lifetime...
- Simon _________________ who cares |
|
Back to top |
|
|
Cossins Veteran
Joined: 21 Mar 2003 Posts: 1136 Location: Copenhagen, Denmark
|
Posted: Sat Mar 13, 2004 5:05 pm Post subject: |
|
|
Thank you so much, Andersson! That was exactly it, now it works perfectly.
- Simon _________________ who cares |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|