Happy urxvt user wants a dropdown term.

Forum rules
We don't support installations in VirtualBox, VMWare, qemu or others. We ignore posts about WINE, PlayOnLinux, Steam and Skype. We don't support btrfs, lvm, UEFI, side-by-side installations with GPT or dualboot with anything newer than Windows XP.
Google your problem first. Check the Wiki. Read the existing threads. It's okay to "hijack" an existing thread, yes! If your problem is not yet covered, open a new thread. To get the quickest possible help, mention the exact release codename in your post (uname -a is a good idea, too). Due to the lack of crystal balls, attach the output of lspci -nnk if you encounter hardware problems.
User avatar
a-109-107
Riesenpenis
Posts: 30
Joined: Thu May 21, 2015 9:04 am

Happy urxvt user wants a dropdown term.

Unread post by a-109-107 » Sun May 31, 2015 6:49 pm

I really miss having a dropdown term here in i3wm with urxvt. Ideally I want something that is always 100% width and ~33% height regardless of screen size. I've tried the following script:

Code: Select all

#!/bin/bash

wid=$(xdotool search --classname urxvtq)

if [ -z "$wid" ]; then
  urxvt -name urxvtq -geometry 80x28
  wid=$(xdotool search --classname urxvtq)
  xdotool windowfocus $wid
elif [ -z "$(xdotool search --onlyvisible --classname urxvtq 2>/dev/null)" ]; then
  xdotool windowmap $wid
  xdotool windowfocus $wid
else
  xdotool windowunmap $wid
fi
Or variations of this thing over at faq.i3wm.org

The failure points of these (most likely introduced by my incompetency) were:
- inability to smoothly go from dropdown term in monitor one, shift focus onto monitor two, re-open term with proper size
- accidentally killing the terminal disables the functionality

I bet one of you Wizards has a solution to this
Last edited by dkeg on Sun May 31, 2015 7:46 pm, edited 1 time in total.
Reason: added code tags

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: Happy urxvt user wants a dropdown term.

Unread post by dkeg » Sun May 31, 2015 8:00 pm

that's similar to the example on the arch wiki. Have you tried that one?
https://wiki.archlinux.org/index.php/Rxvt-unicode

Work hard; Complain less

User avatar
a-109-107
Riesenpenis
Posts: 30
Joined: Thu May 21, 2015 9:04 am

Re: Happy urxvt user wants a dropdown term.

Unread post by a-109-107 » Sun May 31, 2015 9:31 pm

Thanks! I have no clue how I overlooked that; It works good so far when combined with xdotool's windowsize.

edit: however, this won't move the running dropdown to another workspace - I know this is now i3wm specific, not urxvt/xdotool; I'm working on it, but suggestions welcome.

User avatar
a-109-107
Riesenpenis
Posts: 30
Joined: Thu May 21, 2015 9:04 am

Re: Happy urxvt user wants a dropdown term.

Unread post by a-109-107 » Sun Aug 09, 2015 11:56 am

I found a solution to my own problem tdrop

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: Happy urxvt user wants a dropdown term.

Unread post by dkeg » Sun Aug 09, 2015 12:36 pm

Interesting project. Good find.

Work hard; Complain less

Post Reply