Skip to content

Commit

Permalink
xfce4-session: Add wrapper for scaling on HiDPI displays
Browse files Browse the repository at this point in the history
On HiDPI displays, UI elements and text should be scaled up, so that
they are big enough to be readable. Add a wrapper for startxfce4 setting
the appropriate variables, so that GTK+ applications are scaled up.

Increment the revision.
  • Loading branch information
pmenzel committed Mar 16, 2018
1 parent 1598bc7 commit b200339
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion xfce4-session.be0
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env beesh

# BEE_VERSION xfce4-session-4.12.1-0
# BEE_VERSION xfce4-session-4.12.1-1

## this file was created by bee init and should be executed to build a
## bee-package. (Additional hints are located at the end of this file.)
Expand Down Expand Up @@ -58,6 +58,15 @@ SRCURL[0]="http://archive.xfce.org/src/xfce/xfce4-session/${PKGVERSION[2]}/xfce4

mee_install_post() {
start_cmd mv ${D}${DATADIR}/xsessions{,.available}

# https://wiki.archlinux.org/index.php/HiDPI#GDK_3_.28GTK.2B_3.29
start_cmd cat >${D}${BINDIR}/startxfce4_hidpi <<-EOF
#!/bin/bash
export GDK_SCALE=2
export GDK_DPI_SCALE=-1
export XCURSOR_SIZE=48
/usr/bin/startxfce4 "$@"
EOF
}


Expand Down

0 comments on commit b200339

Please sign in to comment.