this post was submitted on 26 Jun 2023
3 points (100.0% liked)

Xfce

283 readers
1 users here now

"Xfce is a lightweight desktop environment for various *NIX systems. Designed for productivity, it loads and executes applications fast, while conserving system resources." - Olivier Fourdan, creator of Xfce

Support Methods
Xfce FAQ
Xfce Documentation
Xfce Matrix - General Support
Xfce Matrix - Developer Chat
Xfce Forums
Distro Support
Developer Info
The Ultimate Contributor's Guide to Xfce

Community
Xfce Blog
Xfce GitLab (report bugs here)
Xfce Mastodon
Xfce Twitter

Mailing Lists

Xfce general discussion list
Xfce announcements
Xfce development list
Xfce file manager
Xfce translations

founded 1 year ago
MODERATORS
 

Hi there!

I've setup a kali-linux xfce desktop (via Windows10 wsl2 + win-kex package) and to get it looking crisp I set it up so that Windows doesn't apply any scaling to it, but rather make XFCE do that itself. (see also: https://www.reddit.com/r/Kalilinux/comments/14iicps/winkex_windows10_highdpi_setup/ )

I'm mostly happy with how that turned out, but now those two applications look much too tiny:

  • LibreOffice
  • unison-gtk

How can I get XFCE to apply high-DPI scaling to those too?

top 3 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 1 year ago (1 children)

If you have set the XFCE scaling and GDK scaling up (to 1.5 or 2 ) you can choose or download a other UI Pack for Libreoffice. Libreoffice support themes that will better match for High-DPI https://wiki.archlinux.org/title/LibreOffice#Theme. For the application unison-gtk I have no idea.

Link how to setup XFCE and GTK3 for high-dpi: https://wiki.archlinux.org/title/HiDPI#Xfce

Hope that helps a little bit.

[–] sixede5290 2 points 1 year ago* (last edited 1 year ago)

Thank you for your reply @_[email protected] !

It seems Kali linux's LibreOffice packages already come with svg icon themes installed out of the box:

ls /usr/share/libreoffice/share/config/*svg*
images_colibre_dark_svg.zip
images_colibre_svg.zip

But somehow that setup is broken. I managed to solve my issue with LibreOffice by uninstalling all LibreOffice related packages from the Kali Linux repositories and instead downloading 7.4.7.2 Linux_x86-64_deb.tar.gz from https://www.libreoffice.org/download/download/ and installing all the *.deb packages it contained.

But sadly, even though I've solved this one, the list of applications I'm missing HighDPI scaling on has grown:

  • unison-gtk
  • bless
  • emacs

If you or anybody else has any hints on what I could try to improve my situation with one of those, I'd love to give it a go! :)

[–] sixede5290 2 points 1 year ago

Now I found a solution that works for all the apps I tried so far:

  • add export GDK_DPI_SCALE=0.5 to /usr/lib/win-kex/xstartup
  • activate "Settings Manager" -> Appearance -> Fonts -> DPI -> "Custom DPI Setting" (leaving the proposed 192 next to the checkbox)
  • restart XFCE desktop session, and remove all the env QT_SCALE_FACTOR=2 prefixes I've previously applied to various QT-app shortcuts to prevent double scaling.