 Benedikt Heine
		
	
	
		4f510e1703
		
	
	
	
	Query the X11 screen's DPI instead of monitor
			Benedikt Heine
		
	
	
		4f510e1703
		
	
	
	
	Query the X11 screen's DPI instead of monitor
		
			
			When changing the DPI via xrandr --dpi <DPI>, xrandr will send a
RRScreenChangeEvent and the DPI value should get adjusted.
Falsely, we thought randr_update() would catch up and query the right
monitor values. But nothing changes, because we query the
XRRMonitorInfo. The monitor info contains the real physical width and
height of the monitor's screen.
But xrandr --dpi only changes the - let's say - virtual screen size of
the virtual overall screen (and therefore changing the DPI to the
matching value).
Important commands to understand:
- Changes dpi of the virtual screen
    xrandr --dpi
- Gives info about the "virtual" screen size (used by DisplayWidth)
    xdpyinfo | grep -B1 resolution
- Gives info about the "physical" screen size (used by XRRMonitorInfo)
    xrandr -q
I know, that I'm probably not right and might not understand the topic
in its full size yet[0]. But I'm 100% sure, that the terms "monitor",
"screen", "screens", "output" and "display" do not have a consistent
naming scheme.
[0] https://twitter.com/dechampsgu/status/857924498280124416
Fixes #382
		
	
Dunst
Description
Dunst is a highly configurable and lightweight notification daemon.
Installation
Dependencies
Dunst has a number of build dependencies that must be present before attempting configuration. The names are different depending on distribution:
- dbus
- libxinerama
- libxrandr
- libxss
- glib
- pango/cairo
- libgtk-3-dev
Building
git clone https://github.com/dunst-project/dunst.git
cd dunst
make
sudo make install
Make parameters
- PREFIX=<PATH>: Set the prefix of the installation. (Default:- /usr/local)
- BINDIR=<PATH>: Set the- dunstexecutable's path (Default:- ${PREFIX}/bin)
- DATADIR=<PATH>: Set the path for shared files. (Default:- ${PREFIX}/share)
- MANDIR=<PATH>: Set the prefix of the manpage. (Default:- ${DATADIR}/man)
- SYSTEMD=(0|1): Enable/Disable the systemd unit. (Default: detected via- pkg-config)
- SERVICEDIR_SYSTEMD=<PATH>: The path to put the systemd user service file. Unused, if- SYSTEMD=0. (Default: detected via- pkg-config)
- SERVICEDIR_DBUS=<PATH>: The path to put the dbus service file. (Default: detected via- pkg-config)
Make sure to run all make calls with the same parameter set. So when building with make PREFIX=/usr, you have to install it with make PREFIX=/usr install, too.
Checkout the wiki for more information.
Bug reports
Please use the issue tracker provided by GitHub to send us bug reports or feature requests. You can also join us on the IRC channel #dunst on Freenode.
Maintainers
Author
written by Sascha Kruse dunst@knopwob.de
Copyright
copyright 2013 Sascha Kruse and contributors (see LICENSE for licensing information)
If you feel that copyrights are violated, please send me an email.