Skip to content

Commit

Permalink
Merge pull request #690 from mariux64/scale-qt-programs-on-hidpi-disp…
Browse files Browse the repository at this point in the history
…lays

Configure scaling factor for Qt programs in `startxfce4_hidpi`
  • Loading branch information
donald authored Mar 22, 2018
2 parents 76d6ade + e4e49ce commit 8a4f997
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions 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-2
# BEE_VERSION xfce4-session-4.12.1-3

## 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 @@ -59,11 +59,12 @@ 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
# https://wiki.archlinux.org/index.php/HiDPI
start_cmd cat >${D}${BINDIR}/startxfce4_hidpi <<-EOF
#!/bin/bash
export GDK_SCALE=2
export GDK_DPI_SCALE=-1
export QT_AUTO_SCREEN_SCALE_FACTOR=1
export XCURSOR_SIZE=48
/usr/bin/startxfce4 "$@"
EOF
Expand Down

0 comments on commit 8a4f997

Please sign in to comment.