emacs always cannot be at right coordinates in DWM

In config.h, there is
Code:
    static const char *emacs[] = {"emacs", "--geometry", "177x38+0+378", NULL };
    { MODKEY, XK_e, spawn, {.v = emacs } }

The layout is:
Code:
{ "><>",  NULL }

The --geometry is functional however the emacs always shrinks after started which leaving an offset to screen bottom.


Sincerely!
 
Try running the same command in the terminal, and see if it has the same problem. Maybe you're using the --geometry flag in a wrong way.
 
jozze said:
Try running the same command in the terminal, and see if it has the same problem. Maybe you're using the --geometry flag in a wrong way.

It still does not work.
 
jozze said:
The command didn't work when you ran it from the terminal? Try with --geometry=....

"did not work in term" means DWM still cannot put Emacs at the right coordinates.
 
Adding the following into ~/.Xdefaults:
Code:
Emacs.geometry: 178x36+0+363
Emacs*toolBar: off
Emacs*menuBar: off

All works like a charm.
 
Back
Top