diff options
| author | ivan-boikov <ik.boikov.public@protonmail.com> | 2022-07-15 20:27:06 +0200 |
|---|---|---|
| committer | ivan-boikov <ik.boikov.public@protonmail.com> | 2022-07-15 20:27:06 +0200 |
| commit | 1d28416b68aabef73987b543df9b71de4972d330 (patch) | |
| tree | fad1a6b8d1d303511c32be95283de803ca800f68 /x11/.config | |
| parent | ff4878e29d953f8c0a5135789763b42e25a44b5a (diff) | |
1
Diffstat (limited to 'x11/.config')
| -rw-r--r-- | x11/.config/x11/xprofile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/x11/.config/x11/xprofile b/x11/.config/x11/xprofile index 65d1fb1..8f25429 100644 --- a/x11/.config/x11/xprofile +++ b/x11/.config/x11/xprofile @@ -5,10 +5,18 @@ # generate .Xresources -$HOME/.local/bin/genxresources > $HOME/.Xresources +#$HOME/.local/bin/genxresources > $HOME/.Xresources xrdb $HOME/.Xresources + +dpi="92" +if [ $(xdpyinfo | awk '/dimensions/ {print $2}') == '3840x2160' ]; then + dpi="192" +fi +notify-send "Setting DPI $dpi" +xrdb -merge <<< "Xft.dpi: ${dpi}" xrdbpid=$! + # Ensure that xrdb has finished running before using xrdb and moving on to WM/DE [ -n "$xrdbpid" ] && wait "$xrdbpid" |
