You are not logged in.

#26 2010-09-10 03:11:38

desolathor
Member
Registered: 2010-05-06
Posts: 15

Re: HOWTO: get a quake-like urxvt terminal in openbox

Now I do, but the terminal still wont start. It is in the processes tho, since it autostarted. Any other ideas? big_smile

Offline

#27 2010-09-13 21:06:10

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: HOWTO: get a quake-like urxvt terminal in openbox

Do you have "xdotool" installed?


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#28 2010-10-20 12:10:11

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: HOWTO: get a quake-like urxvt terminal in openbox

I've updated the script because it stopped working on my system a few days ago. I've uploaded it to my site and added a link to the OP (along with the latest version). In the future I will probably just update the script on my site.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#29 2011-01-25 04:34:28

jwhendy
Member
Registered: 2010-04-01
Posts: 621

Re: HOWTO: get a quake-like urxvt terminal in openbox

I know this is a bit old, but just thought it might be of interest that the CrunchBang author has an alternate version of your script, Xyne (he does give credit to having found it on the Arch Wiki). If you haven't seen it, thought you might like to. It's HERE.

Offline

#30 2011-01-25 11:15:15

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: HOWTO: get a quake-like urxvt terminal in openbox

Interesting. I tried the script but aside from the X Error message, I didn't notice any difference. If anyone notices that the other version is clearly faster then I'll try to improve this one.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#31 2011-01-25 14:35:09

jwhendy
Member
Registered: 2010-04-01
Posts: 621

Re: HOWTO: get a quake-like urxvt terminal in openbox

@Xyne: I just set yours up for the first time and did not notice the "lag" he mentioned. urxvtq pops up nearly instantaneously for me...

Last edited by jwhendy (2011-01-25 14:35:35)

Offline

#32 2011-11-05 16:31:39

dsc
Member
Registered: 2011-11-05
Posts: 2

Re: HOWTO: get a quake-like urxvt terminal in openbox

Hi!
I know this thread is really old but anyway... tongue

I used Xyne's script, and there WAS a lag when I compared it to stjerm (another nice drop down terminal). It was so noticeable I was planning to switch back to stjerm!
Saving the $wid and the run state to a file like the script on the Crunchbang wiki really helps in my case.
I guess running xdotool takes longer than reading/writing files?

Only, the script on the CB wiki is a bit annoying because if you CLOSE urxvtq, it won't open again until you delete /tmp/urxvtq-wid .

Here's my slightly modified version that fixes that:

#!/bin/bash
wid=$( cat /tmp/.urxvtq-wid )

if [ -z "$wid" ]; then
  urxvt -bl -name urxvtq -geometry 213x83  &
  wid=$(xdotool search --name urxvtq)
  xdotool windowfocus $wid
  xdotool windowactivate $wid
  touch /tmp/.urxvtq
  echo $wid > /tmp/.urxvtq-wid

else
  if [ -e "/tmp/.urxvtq" ]; then
    xdotool windowunmap $wid
    rm /tmp/.urxvtq
  else
    xdotool windowmap $wid
    xdotool windowfocus $wid
    touch /tmp/.urxvtq
  fi
fi

Hope this helps someone!

Offline

#33 2012-01-20 05:31:10

jagguli
Member
Registered: 2012-01-20
Posts: 5

Re: HOWTO: get a quake-like urxvt terminal in openbox

Heres a solution using python-wnck

    <keybind key="A-F12">
      <action name="Execute">
        <command>switcher.py</command>
      </action>
    </keybind>
#!/usr/bin/python2
import wnck
from subprocess import Popen, PIPE, STDOUT

screen = wnck.screen_get_default()
screen.force_update() #updates the window list
wins = screen.get_windows()
target_win = None
for win in wins:
    #app = win.get_application()
    win_name  = win.get_name() or ''
    #mini_icon = win.get_mini_icon() or ''
    #app_name = app and app.get_name() or ''
    if win_name == 'quake':
        target_win = win
    #print '%s: %s: %s' % (app_name,win_name,mini_icon.get_width())

if target_win:
    target_win.set_fullscreen(True)
    target_win.make_above()
    target_win.set_skip_pager(True)
    target_win.set_skip_tasklist(True)
    if target_win.is_minimized():
        target_win.unminimize(1)
    else :
        target_win.minimize()
else :
    res = Popen('urxvt -name quake &',shell=True, stdout=PIPE, stderr=STDOUT)

Offline

Board footer

Powered by FluxBB