You are not logged in.

#1 2024-02-25 17:16:13

moshpirit
Member
Registered: 2016-01-13
Posts: 43

i3wm: some icons look too small

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.5

Last edited by V1del (2024-02-25 21:52:04)

Offline

#2 2024-02-25 22:26:31

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,552

Re: i3wm: some icons look too small

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

#3 2024-02-26 00:24:39

moshpirit
Member
Registered: 2016-01-13
Posts: 43

Re: i3wm: some icons look too small

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

#4 2024-02-26 08:40:41

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,552

Re: i3wm: some icons look too small

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

#5 2024-02-26 10:22:14

moshpirit
Member
Registered: 2016-01-13
Posts: 43

Re: i3wm: some icons look too small

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
-Xmx1024m

Offline

#6 2024-02-26 10:27:09

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,552

Re: i3wm: some icons look too small

Put it behind vmargs, w/ the othe -D options

Offline

#7 2024-02-26 12:58:26

moshpirit
Member
Registered: 2016-01-13
Posts: 43

Re: i3wm: some icons look too small

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=x11

and 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

#8 2024-02-26 13:23:15

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,552

Re: i3wm: some icons look too small

Wtf are you talking about? What "rectangular issues"?

Offline

#9 2024-02-26 13:40:17

moshpirit
Member
Registered: 2016-01-13
Posts: 43

Re: i3wm: some icons look too small

seth wrote:

Wtf are you talking about? What "rectangular issues"?

The link you shared before: https://wiki.archlinux.org/title/Dbeave … rectangles

[screenshot from plasma]

Last edited by moshpirit (2024-02-26 13:41:03)

Offline

#10 2024-02-26 13:48:25

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,552

Re: i3wm: some icons look too small

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

#11 2024-02-26 14:01:16

moshpirit
Member
Registered: 2016-01-13
Posts: 43

Re: i3wm: some icons look too small

seth wrote:

Ah, sorry - but that wasn't in your original screenshot.

Never mind smile this showed up after trying to fix the icons issue.

seth wrote:

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

#12 2024-02-26 15:39:20

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,552

Re: i3wm: some icons look too small

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 resolut

Offline

#13 2024-02-26 16:18:45

moshpirit
Member
Registered: 2016-01-13
Posts: 43

Re: i3wm: some icons look too small

xdpyinfo | grep -i resolut
  resolution:    144x145 dots per inch

I 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-40ffffffff

Last edited by moshpirit (2024-02-26 16:19:15)

Offline

#14 2024-02-26 22:19:04

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,552

Re: i3wm: some icons look too small

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

#15 2024-02-27 02:10:07

moshpirit
Member
Registered: 2016-01-13
Posts: 43

Re: i3wm: some icons look too small

Xft.dpi:        144
rofi.dpi:       200

BTW, I have been playing with rofi configuration, and got it to work as I wanted ? Thanks!

Offline

#16 2024-02-27 08:13:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,552

Re: i3wm: some icons look too small

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

#17 2024-02-27 14:33:07

moshpirit
Member
Registered: 2016-01-13
Posts: 43

Re: i3wm: some icons look too small

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

#18 2024-02-27 22:56:03

moshpirit
Member
Registered: 2016-01-13
Posts: 43

Re: i3wm: some icons look too small

UPDATE: reinstalling it removed the rectangles issue.

sudo pacman --noconfirm -Rns dbeaver 
sudo pacman --noconfirm -S dbeaver 

Offline

Board footer

Powered by FluxBB