diff options
author | Luke Shumaker <lukeshu@datawire.io> | 2019-05-03 13:29:58 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@datawire.io> | 2019-05-03 13:44:18 -0400 |
commit | 3135e82b798b03d2424cc105f203988908d1cb3c (patch) | |
tree | 46bbc2bfe8eb563673bc3356e5a1f12242216c70 /.config/systemd | |
parent | 9f84493fc6896f919a0679569832aec6a3898a69 (diff) |
X11: Better DPI handling
Diffstat (limited to '.config/systemd')
4 files changed, 16 insertions, 16 deletions
diff --git a/.config/systemd/user/X11@.target.wants/fix-dpi@.service b/.config/systemd/user/X11@.target.wants/fix-dpi@.service new file mode 120000 index 0000000..af1d134 --- /dev/null +++ b/.config/systemd/user/X11@.target.wants/fix-dpi@.service @@ -0,0 +1 @@ +../fix-dpi@.service
\ No newline at end of file diff --git a/.config/systemd/user/X11@.target.wants/xresources-dpi@.service b/.config/systemd/user/X11@.target.wants/xresources-dpi@.service deleted file mode 120000 index f3b5a4c..0000000 --- a/.config/systemd/user/X11@.target.wants/xresources-dpi@.service +++ /dev/null @@ -1 +0,0 @@ -../xresources-dpi@.service
\ No newline at end of file diff --git a/.config/systemd/user/fix-dpi@.service b/.config/systemd/user/fix-dpi@.service new file mode 100644 index 0000000..d248cf2 --- /dev/null +++ b/.config/systemd/user/fix-dpi@.service @@ -0,0 +1,15 @@ +[Unit] +Description=Rectify all DPI settings on X display %I +Documentation=man:xrdb(1) +Before=X11@%i.target +Requisite=X11@%i.target + +[Service] +Environment=DISPLAY=%I + +Type=oneshot +ExecStart=/usr/bin/env flock %t/x11-xrdb@%I -c fix-dpi +SyslogIdentifier=fix-dpi + +[Install] +WantedBy=X11@%i.target diff --git a/.config/systemd/user/xresources-dpi@.service b/.config/systemd/user/xresources-dpi@.service deleted file mode 100644 index c9d23cc..0000000 --- a/.config/systemd/user/xresources-dpi@.service +++ /dev/null @@ -1,15 +0,0 @@ -[Unit] -Description=Set the X Resources DataBase DPI to match the display DPI on X display %I -Documentation=man:xrdb(1) -Before=X11@%i.target -Requisite=X11@%i.target - -[Service] -Environment=DISPLAY=%I - -Type=oneshot -ExecStart=/usr/bin/env flock %t/x11-xrdb@%I -c xrdb-set-dpi -SyslogIdentifier=xrdb-set-dpi - -[Install] -WantedBy=X11@%i.target |