You are not logged in.
Pages: 1
I have tried to configure my urxvt to behave like the Kuake terminal by following the Wiki. For some reason, it isn't working. I don't know why. I have followed the wiki to a T. Here are my files:
urxvtc:
#!/bin/sh
urxvtc "$@"
if [ $? -eq 2 ]; then
urxvtd -q -o -f
urxvtc "$@"
fi
urxvtq:
#!/bin/bash
wid=$(xdotool search --name urxvtq | grep -m 1 "" )
if [ -z "$wid" ]; then
/home/anirudh/.config/openbox/urxvtc -name urxvtq -geometry 80x28
wid=$(xdotool search --name urxvtq | head -1)
xdotool windowfocus $wid
xdotool key Control_L+l
else
if [ -z "$(xdotool search --onlyvisible --name urxvtq 2>/dev/null)" ]; then
xdotool windowmap $wid
xdotool windowfocus $wid
else
xdotool windowunmap $wid
fi
fi
.Xresources:
URxvt.perl-ext-common: default,matcher,tabbed
I don't know what is wrong. I have installed xdotools, and have reconfigured openbox and xrdb'ed the .Xresources, but still it doesn't work.
Offline
You'll need to provide a bit more detail. Does urxvt (not your script) execute properly on its own? If not, then it's likely an issue with your ~/.Xdefaults or ~/.Xresources file; incorrect font declarations are a common culprit.
If urxvt does run fine, what exactly isn't working?
Last edited by thayer (2011-05-12 14:02:46)
thayer williams ~ thayerwilliams.ca
Offline
I have added (through openbox) the keyboard shortcut 'W-t' for urxvt and 'W-grave' for urxvt (quake like terminal). urxvt by itself works fine. However, when I hit 'W-t' or 'W-grave' nothing happens.
Offline
Okay, so urxvt works; let's move onto the next step in the process of elimination...
Does your urxvtc script work when run from a terminal? If so, then there's likely something wrong with ~/.config/openbox/rc.xml so you might want to include it here (or via pastebin or whatever).
thayer williams ~ thayerwilliams.ca
Offline
Try replacing all occurrences of xdotool's "--name" option with "--classname". The "--name" option used to mean the classname in older version, but has been changed to mean the window name (i.e. what's in the title bar).
Offline
I've done that and nothings happened as yet.
Offline
Replace "urxvtc" from within your urxvtc script to be /usr/bin/urxvtc. Otherwise you get a nice recursive loop
Note: This really depends on what comes first in your path, but you should use the full path to urxvtc just to make sure.
Last edited by jac (2011-05-12 18:15:52)
Offline
Hi anirudh215;
Does your rc.xml look something like this?
[...]
<!-- KEYBOARD SECTION -->
<keybind key="W-q">
<action name="Execute">
<command>/home/anirudh/.config/openbox/urxvtc</command>
</action>
</keybind>
<keybind key="W-grave">
<action name="Execute">
<execute>/home/anirudh/.config/openbox/urxvtq</execute>
</action>
</keybind>
[...]
<!-- APPLICATION SECTION -->
<application name="urxvtq">
<decor>no</decor>
<position force="yes">
<x>center</x>
<y>0</y>
</position>
<layer>above</layer>
<desktop>all</desktop>
<skip_pager>yes</skip_pager>
<skip_taskbar>yes</skip_taskbar>
<maximized>yes</maximized>
</application>
[...]Make sure your urxvtq is defined as "<execute>" and not as "<command>" like urxvtc. Also, you should check if your scripts have x permissions.
If the problem still persists, could you post your rc.xml as said above?
Offline
@nnoell:
Yes, I'd edited the rc.xml to look just like that. Sorry I didn't mention that in the first post. I forgot.
@thayer and nnoell:
Here is my rc.xml:
<keybind key="W-t">
<action name="Execute">
<command>/home/anirudh/.config/openbox/urxvtc</command>
</action>
</keybind>
<keybind key="W-grave">
<action name="Execute">
<execute>/home/anirudh/.config/openbox/urxvtq</execute>
</action>
</keybind>
...
<application name="urxvtq">
<decor>no</decor>
<position force="yes">
<x>center</x>
<y>0</y>
</position>
<desktop>all</desktop>
<layer>above</layer>
<skip_pager>yes</skip_pager>
<skip_taskbar>yes</skip_taskbar>
<maximized>Horizontal</maximized>
</application>
...
Offline
Okay, so urxvt works; let's move onto the next step in the process of elimination...
Does your urxvtc script work when run from a terminal? If so, then there's likely something wrong with ~/.config/openbox/rc.xml so you might want to include it here (or via pastebin or whatever).
thayer williams ~ thayerwilliams.ca
Offline
Yes, urxvtc does work when opened from a terminal. That's what I meant to say in post #6. Sorry. Was quite sleepy then and didn't quite communicate properly.
Offline
No worries. Well, I'm stumped; your rc.xml entries look fine and if the script works on its own, I'm not sure what to suggest next...
Is it possible that you have have an existing key binding for W-t that could be overriding this one? I can't remember how openbox handles duplicates.
thayer williams ~ thayerwilliams.ca
Offline
Nope. I don't have any other key bound to 'W-t'. Darn. What should I do? I've heard about yeahconsole. Maybe I should try using that? Could others confirm this, and if so update the wiki stating that it doesn't work any more?
And another thing. To get tabs working on urxvt, I have to login and do xrdb Xresources everytime. Why doesn't it load tabs by default when I log in?
Last edited by anirudh215 (2011-05-14 16:12:45)
Offline
Can you try renaming your script from urxvtc? Since there is already a urxvtc in /usr/bin, perhaps your WM's path and your console's paths are set to different things. Then, try your script from the console again, as with from the keybinding.
Offline
Hi jac,
Yes, I have tried renaming my urxvtc script to urxvtani as well as tried to substitute the /usr/bin/urxvtc inside the orginal urxvtc script. Neither approach works. ![]()
Last edited by anirudh215 (2011-05-15 06:07:33)
Offline
Pages: 1