You are not logged in.
I am new to this i3wm world. I am using a HiDPI screen on my laptop, so some icons are too small. What can I do to upsize them? Here is a screenshot of DBeaver and MySQL Workbench:
https://i.imgur.com/OxVHeAx.png
cat .Xresources
Xcursor.theme: Qogir-dark
Xcursor.size: 32
rofi.dpi: 200
Xft.dpi: 145
cat .profile
[…]
export GDK_SCALE=2
export GDK_DPI_SCALE=0.5Last edited by V1del (2024-02-25 21:52:04)
Offline
This has nothing to do w/ the WM, see eg. https://bugs.mysql.com/bug.php?id=48867
Some wayland compositors might be upscaling xwayland clients (run them at a lower DPI and then double the pixels) but that's not an option w/ an actual X11 environment (at least not per client)
For dbeaver see https://wiki.archlinux.org/title/Dbeave … rectangles - do you actually have problems w/ it?
Offline
Hi! thanks for replying! I do have the same issue with Dbeaver, yes. I tried the -Dswt.autoScale=150 workaround(, but it didn't work.
Last edited by moshpirit (2024-02-26 00:25:24)
Offline
How exactly did you attempt that?
Post your /usr/share/dbeaver/dbeaver.ini
But be prepared that java simply sucks when it comes to HiDPI
Offline
Sure! Here is it:
-startup
plugins/org.eclipse.equinox.launcher_1.6.600.v20231106-1826.jar
-Dswt.autoScale=150
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.2.800.v20231003-1442
-vmargs
-XX:+IgnoreUnrecognizedVMOptions
-Dosgi.requiredJavaVersion=17
-Dfile.encoding=UTF-8
--add-modules=ALL-SYSTEM
--add-opens=java.base/java.io=ALL-UNNAMED
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.lang.reflect=ALL-UNNAMED
--add-opens=java.base/java.net=ALL-UNNAMED
--add-opens=java.base/java.nio=ALL-UNNAMED
--add-opens=java.base/java.nio.charset=ALL-UNNAMED
--add-opens=java.base/java.text=ALL-UNNAMED
--add-opens=java.base/java.time=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.base/java.util.concurrent=ALL-UNNAMED
--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED
--add-opens=java.base/jdk.internal.vm=ALL-UNNAMED
--add-opens=java.base/jdk.internal.misc=ALL-UNNAMED
--add-opens=java.base/sun.nio.ch=ALL-UNNAMED
--add-opens=java.base/sun.nio.fs=ALL-UNNAMED
--add-opens=java.base/sun.security.ssl=ALL-UNNAMED
--add-opens=java.base/sun.security.action=ALL-UNNAMED
--add-opens=java.base/sun.security.util=ALL-UNNAMED
--add-opens=java.security.jgss/sun.security.jgss=ALL-UNNAMED
--add-opens=java.security.jgss/sun.security.krb5=ALL-UNNAMED
--add-opens=java.desktop/java.awt=ALL-UNNAMED
--add-opens=java.desktop/java.awt.peer=ALL-UNNAMED
--add-opens=java.sql/java.sql=ALL-UNNAMED
-Xms64m
-Xmx1024mOffline
Put it behind vmargs, w/ the othe -D options
Offline
I wasn't experiencing any rectangular issues until now ? I tried the solutions suggested by the wiki
GDK_SCALE=2
GDK_DPI_SCALE=0.5
or:
GDK_BACKEND=x11and the rectangles are still there, and the zoom of all GTK apps including Firefox are being affected too. I don't know how to revert the changes.
EDIT: using GDK_SCALE=1.5 restores my previous firefox zoom.
Last edited by moshpirit (2024-02-26 13:39:07)
Offline
Wtf are you talking about? What "rectangular issues"?
Offline
Wtf are you talking about? What "rectangular issues"?
The link you shared before: https://wiki.archlinux.org/title/Dbeave … rectangles
Last edited by moshpirit (2024-02-26 13:41:03)
Offline
Ah, sorry - but that wasn't in your original screenshot.
Where do you export those and how do you start dbeaver? And which exactly?
The approach in the wiki is to double the overall scale and then unscale the fonts DPI, ie GDK_DPI_SCALE = 1 / GDK_SCALE, so 0.66 for 1.5 (or 0.625 for 1.6) - though I'd try that w/ 2 & 0.5 first.
You've the rofi DPI at 200 (> 2*96)
Offline
Ah, sorry - but that wasn't in your original screenshot.
Never mind
this showed up after trying to fix the icons issue.
Where do you export those and how do you start dbeaver? And which exactly?
to /etc/environment
from the plasma app menu (*), but I've just checked that it's the same behavior as running "dbeaver" from the terminal
it's V. 23.3.5.202402251611, installed from extra/dbeaver 23.3.5-1
The approach in the wiki is to double the overall scale and then unscale the fonts DPI, ie GDK_DPI_SCALE = 1 / GDK_SCALE, so 0.66 for 1.5 (or 0.625 for 1.6) - though I'd try that w/ 2 & 0.5 first.
You've the rofi DPI at 200 (> 2*96)
I tried with the default values, and played with them, although I thought the "GDK_DPI_SCALE" had to be an integer; so I changed "GDK_SCALE" values.
Rofi DPI isn't working either haha, I was trying to make it look bigger, but it's all in vain for now.
-------------------
(*) I mostly use Plasma, but these late weeks I've been trying i3wm most of the time because I like how fast it is.
Last edited by moshpirit (2024-02-26 14:04:14)
Offline
Rofi DPI isn't working either haha, I was trying to make it look bigger
Let's maybe look at the most important values first:
xrdp -q | grep -i dpi
xdpyinfo | grep -i resolutOffline
xdpyinfo | grep -i resolut
resolution: 144x145 dots per inchI couldn't make the other command work, I don't know what other information should it show, maybe we could get it from lshw:
sudo lshw -c video
*-display
description: VGA compatible controller
product: Alder Lake-P GT2 [Iris Xe Graphics]
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
logical name: /dev/fb0
version: 0c
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm vga_controller bus_master cap_list rom fb
configuration: depth=32 driver=i915 latency=0 mode=2240x1400 resolution=2240,1400 visual=truecolor xres=2240 yres=1400
resources: iomemory:600-5ff iomemory:400-3ff irq:194 memory:601c000000-601cffffff memory:4000000000-400fffffff ioport:3000(size=64) memory:c0000-dffff memory:4010000000-4016ffffff memory:4020000000-40ffffffffLast edited by moshpirit (2024-02-26 16:19:15)
Offline
Sorry, typo
xrdb -q | grep -i dpi
But the server is certainly running at 145 dpi
rofi uses it's internal config for the DPI, https://man.archlinux.org/man/extra/rof … FIGURATION
Offline
Xft.dpi: 144
rofi.dpi: 200BTW, I have been playing with rofi configuration, and got it to work as I wanted ? Thanks!
Offline
So the remaining problem is javastuff™ and as you might have figured from the loooooooooong standing bug reports: it's gonna suck on HiDPI systems.
Offline
Yes, thank you so much anyway for your time helping me. I hope this issue get fixed soon (although I'm so sure about it).
Offline
UPDATE: reinstalling it removed the rectangles issue.
sudo pacman --noconfirm -Rns dbeaver
sudo pacman --noconfirm -S dbeaver Offline