You are not logged in.

#1 2016-01-22 13:26:47

x1site
Member
Registered: 2013-10-20
Posts: 60

[SOLVED] How to apply kde settings with bash?

Hello!
I'm using awesome and I have some problems with qt applications. I have hidpi monitor.
I override this variable for icons in dolphin:

export XDG_CURRENT_DESKTOP=KDE

If I open dolphin it will be opened with default 96 DPI.
To fix this, I open systemsettings5 and change my DPI in font settings from 110 to something and back to 110 and press "Apply". This fixes dpi, and then qt apps have 110 DPI.
Also, I do this to fix mouse sensivity.
is it possible to automate it? Which command in console, can help me?

Last edited by x1site (2016-01-22 16:35:47)


awesome + rofi

Offline

#2 2016-01-22 16:35:36

x1site
Member
Registered: 2013-10-20
Posts: 60

Re: [SOLVED] How to apply kde settings with bash?

so I decided the problem
I add to my rc.lua

-- fixing video tearing
os.execute("compton -b --backend glx --paint-on-overlay --glx-no-stencil --vsync opengl-swc --unredir-if-possible");
-- use kde keyboard maps and hotkeys for changing layouts (also layout per window not global)
os.execute("kdeinit5");
os.execute("qdbus-qt5 org.kde.kded5 /kded loadModule keyboard");
-- mouse point accesselation
os.execute("xset mouse 4 3");

I think it also will be worked if run them thorugh ~.xinitrc


awesome + rofi

Offline

Board footer

Powered by FluxBB