Score:1

How to change the XFCE display profile via command line?

gb flag

I can configure different display profiles using the xfce4-display-settings command, and I know that I can query which display profile is currently in use with the command

xfconf-query -c displays -p /ActiveProfile

which gives me the ID of the current profile. Is it possible to change the display profile using the command line? I tried

xfconf-query -c displays -p /ActiveProfile -s <PROFILE ID>

but while this changes the output of xfconf-query -c displays -p /ActiveProfile, it does not actually change the configuration of my monitors.

sy flag
This version of `autorandr` is perfect. Simply set up a configuration and call `autorandr` with a profile name to save it, then you can load configurations by calling again with the profile name: https://github.com/phillipberndt/autorandr/
Score:0
in flag

The following should work. I tired with XFCE 4.16.

xfconf-query --create --type string -c displays -p /Schemes/Apply -s <PROFILE>
mblythe avatar
cn flag
Also, the following command will show the human-readable name for a given display ID: xfconf-query -c displays -p /<PROFILE>
Score:0
us flag

Try this https://github.com/KeyofBlueS/xfce4-display-profile-chooser

With this bash script you can, via command line, list, set and remove already configured display profiles in xfce4-display-settings. This is useful if you want e.g. to automate stuff by setting profiles within a script or to use a keyboard shortcut. A graphical user interface is provided with yad.

hope it helps

David avatar
cn flag
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - [From Review](/review/late-answers/1198478)
us flag
That's a link to a script, upstream, if that link becomes invalid, any essential parts included here will still be useless.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.