Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8082

Official Display • Re: Buttons to set Touch Display 2 orientation?

$
0
0
I am aware of how communities work; maybe I didn't have the Pi running when I posted my update?

The scripts are just placing the commands with arguments in executable (`chmod a+x *.sh`) files in `~/Desktop`.

portrait.sh:

Code:

#!/bin/bashwlr-randr --output "DSI-1" --transform normal
landscape.sh:

Code:

#!/bin/bashwlr-randr --output "DSI-1" --transform 270
There are other useful arguments also, like display off or on.

These files appear as icons on the desktop. Double-clicking them yields a dialog asking about executing them, opening them, etc. so you have to then click the "execute" button. So it's not one click, but it's quick.

My understanding is that one can make a `.desktop` file with sufficient configuration to place a command like this in the desktop menu itself. I haven't tried it yet, but that's a logical next step.

Statistics: Posted by mlepage — Sun Mar 02, 2025 4:49 pm



Viewing all articles
Browse latest Browse all 8082

Trending Articles