Re: [dev] [dwm] How do I launch a window in floating mode without using `Rules rules[]`?

From: Chris Down <>
Date: Tue, 14 May 2019 16:33:22 +0100

Hi Enan,

Enan Ajmain writes:
>I want to add a keybinding to launch my terminal emulator in floating
>mode, and I want it to be separate from my regular keybinding to
>launch terminal in the currently active mode. If I wanted to launch
>the terminal window always in floating mode, I could have used rules.

You can just use WM_CLASS for this. For example, with urxvt, you can do

    urxvt -title floatingterm

Then, in rules, you can add a rule to match on a WM_NAME of floatingterm.

>I've looked through config file and have a guess that the NULL entry
>in the following list of strings might be used to indicate what mode I
>want the window to open in.
>static const char *termcmd[] = { "st", NULL };

What do you mean? NULL is not an entry, it's just an indication that we've
reached the end of the char* array for execvp() (see spawn()).
Received on Tue May 14 2019 - 17:33:22 CEST

This archive was generated by hypermail 2.3.0 : Tue May 14 2019 - 18:48:08 CEST