You are not logged in.
Hi I try to make a script that change the scaling of display,
but it does not take effect after execution (only after login out and in).
#!/bin/sh
xfconf-query -c displays -p /Default/DSI-1/Scale/X -s 0.8
xfconf-query -c displays -p /Default/DSI-1/Scale/Y -s 0.8
xfconf-query -c displays -p /Fallback/DSI-1/Scale/X -s 0.8
xfconf-query -c displays -p /Fallback/DSI-1/Scale/Y -s 0.8
what do I need to add to it in order to take effect after execution?
Offline
Hello and welcome.
Have a read through this thread. You need to also use xfconf-query to create a /Schemes/Apply key that will trigger the change.
As a hint, run:
xfconf-query -c displays -mv
...in a terminal window and change the scale via the Display applet. You'll see what is getting changed. On my system:
set: /Default/eDP-1/Scale/X (0.900000)
set: /Default/eDP-1/Scale/Y (0.900000)
In my case, I would run the following command to make it apply:
xfconf-query -c displays -p /Schemes/Apply -t string -s Default -n
Your specifics may be different, but the process should work.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Awsome !!! Thank you so much.
Offline
[ Generated in 0.007 seconds, 7 queries executed - Memory usage: 522.84 KiB (Peak: 529.63 KiB) ]