You are not logged in.
These are the rules that I have in my dwm config.h
The ncurses apps that open in the terminal do not follow the rules. How can accomplish this?
static const Rule rules[] = {
/* class instance title tags mask isfloating monitor */
{ "Gimp", NULL, NULL, 0, True, -1 },
{ "Firefox", NULL, NULL, 1 << 3, False, -1 },
{ "Pcmanfm", NULL, NULL, 1 << 1, False, -1 },
{ "ranger", NULL, NULL, 1 << 6, False, -1 },
{ "mutt", NULL, NULL, 1 << 7, False, -1 },
{ "ncmpc", NULL, NULL, 1 << 8, False, -1 },Last edited by derrickcope (2015-05-02 05:26:14)
Offline
I have asked you before to please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Fo … s_and_code
For a rule, you use xprop to determine the window's name or title (or, alternatively, set one when you launch the term with the -title switch).
Offline
thanks for the suggestion. xprop just sees them as "terminator". When I start them with -T "title" then xprop sees them with "title".
When I used the -T switch in .xinitrc and then changed my rules to
static const Rule rules[] = {
/* class instance title tags mask isfloating monitor */
{ "Gimp", NULL, NULL, 0, True, -1 },
{ "Firefox", NULL, NULL, 1 << 3, False, -1 },
{ "Pcmanfm", NULL, NULL, 1 << 1, False, -1 },
{ "ranger", NULL, "ranger", 1 << 6, False, -1 },
{ "mutt", NULL, "mutt", 1 << 7, False, 2 },
{ "ncmpc", NULL, "ncmpc", 1 << 8, False, 2 },They are still opening on the first monitor and not on the tag I set. I am not sure I am doing it correctly. Should I write terminator as the class?
Offline
This is what I see with xprop:
WM_CLASS(STRING) = "terminator", "Terminator"
WM_ICON_NAME(STRING) = "ncmpc"
_NET_WM_ICON_NAME(UTF8_STRING) = "ncmpc"
WM_NAME(STRING) = "ncmpc"
_NET_WM_NAME(UTF8_STRING) = "ncmpc"seems like it should work, right?
Offline
To make this rule work, so ranger opens in tag 7:
{ "ranger", NULL, "ranger", 1 << 6, False, -1 },You would start ranger with a command/keybind combo:
static const char *fmcmd[] = { "urxvtc", "-title", "ranger", "-e", "ranger", NULL };
...
{ ControlMask|Mod1Mask, XK_r, spawn, {.v = fmcmd } },Offline
I am autostarting ranger from the .xinitrc and with xbindkeys.
This is what I have in .xinitrc
terminator -T "ranger" -e terminator &I havent edited xbindkey yet. man terminator says it uses -T for "title" or -c for "class".
Offline
For mutt, set the title and
{ NULL, NULL, "mutt", 1 << 7, False, 1 },mutt will open on tag 8 on your primary monitor, irrespective of where the focus is. -1 will open it on the currently focussed monitor.
Offline
Yes, thank you! changing class to NULL fixed it. Thank you!
Offline
Yes, thank you! changing class to NULL fixed it. Thank you!
Or you could look at the class names in the xprop output you posted (without code tags
) in #4.
Offline
derrickcope wrote:Yes, thank you! changing class to NULL fixed it. Thank you!
Or you could look at the class names in the xprop output you posted (without code tags
) in #4.
tried that, didn't work ![]()
Offline