You are not logged in.
Now I do, but the terminal still wont start. It is in the processes tho, since it autostarted. Any other ideas?
Offline
Do you have "xdotool" installed?
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
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 Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
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
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 Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
@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
Hi!
I know this thread is really old but anyway...
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
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