Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am attempting iconify a xterm terminal when it loses focus in fluxbox.

I am following this wiki:

http://fluxbox-wiki.org/index.php?title=Make_xterm_act_like_a_PC_game_console

And so far, I've got it appending this line

Control T : If {Matches (xterm)} {Delay {Iconify} 1}

to ~/.fluxbox/keys file, which iconify the terminal when I press Control T shortcut.

How can I get that behavior when xterm loses the focus?

share|improve this question
    
After a long time, I've partially solved this by overriding the Alt + Tab shortcut this way: Mod1 Tab :If {Matches (xterm)} {Delay {Iconify} 2} {NextWindow {groups} (workspace=[current])}. So when Alt + Tab is issued, I check if current window matches xterm class, if so iconify the window (cause it'll lose the focus), do the normal workflow otherwise. – slackmart Jan 17 at 18:38

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.