Take the 2-minute tour ×
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.

I am using notify-send to present occasional information to my users. However, in a two-monitor setup, notify-send always maps the window in the lower-right corner of the right monitor.

The users would like the popup moved to the lower-right corner of the left monitor.

notify-send doesn't appear to allow the -geometry command-line argument, and Control Center -> Window-Specific Settings can't seem to identify the window class automatically.

Is there a way to force notify-send to appear at a specific location, or is there a suitable alternative that comes with RHEL5?

share|improve this question

migrated from serverfault.com Mar 8 '12 at 2:31

This question came from our site for professional system and network administrators.

    
Please add a tag (or text) specifying your windowing system. –  ivan_pozdeev Mar 7 '12 at 7:47
    
@ivan_pozdeev: Sorry, I should have said this is KDE. –  Bill Mar 7 '12 at 16:39
add comment

1 Answer 1

You might try changing the display variable slightly:

DISPLAY=:0.1 notify-send [options] "summary" "body"

Usually, your desktop screens are :0, and the main is :0.0, second is :0.1, and so forth.

If I remember correctly, this should put it on the other screen.

you might need to have a wrapper script or such to change the value of DISPLAY when executing the notify-send application. As long as its in the path before the real one, it'll work nicely without anyone noticing really.

share|improve this answer
    
Unfortunately, changing DISPLAY does not affect notify-send on my system. On what system did you see this work? –  Bill Jul 23 '12 at 20:20
    
It's been a while, I'll see what I can pull together to figure out what works. –  lornix Jul 25 '12 at 4:56
    
Does not work on Archlinux. –  g33kz0r Feb 28 '13 at 18:43
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.