How to programmatically rotate the screen in Gnome 3.28 (Wayland)?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I know how to rotate the screen in Xorg using xrandr
or in Wayland using the gnome-control-center
GUI, but is there a way to do it in Wayland using a command line interface or an API call ?
Context: IÃÂ have a convertible laptop which is not supported by iio-sensor-proxy
, and I would like to use a script or shortcut to quickly rotate the screen. Going back to Xorg is not an option.
gnome wayland
add a comment |Â
up vote
0
down vote
favorite
I know how to rotate the screen in Xorg using xrandr
or in Wayland using the gnome-control-center
GUI, but is there a way to do it in Wayland using a command line interface or an API call ?
Context: IÃÂ have a convertible laptop which is not supported by iio-sensor-proxy
, and I would like to use a script or shortcut to quickly rotate the screen. Going back to Xorg is not an option.
gnome wayland
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I know how to rotate the screen in Xorg using xrandr
or in Wayland using the gnome-control-center
GUI, but is there a way to do it in Wayland using a command line interface or an API call ?
Context: IÃÂ have a convertible laptop which is not supported by iio-sensor-proxy
, and I would like to use a script or shortcut to quickly rotate the screen. Going back to Xorg is not an option.
gnome wayland
I know how to rotate the screen in Xorg using xrandr
or in Wayland using the gnome-control-center
GUI, but is there a way to do it in Wayland using a command line interface or an API call ?
Context: IÃÂ have a convertible laptop which is not supported by iio-sensor-proxy
, and I would like to use a script or shortcut to quickly rotate the screen. Going back to Xorg is not an option.
gnome wayland
gnome wayland
asked Aug 26 at 17:35
Element-126
135
135
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
A partial solution is to set the rotate-monitor
key to some keybinding using gsettings
or dconf-editor
.
For instance, the following command will cause Ctrl+F8
to rotate the screen counterclockwise:
$ gsettings set org.gnome.mutter.keybindings rotate-monitor "['XF86RotateWindows', '<Control>F8']"
This does not allow the user to specify the target orientation, but only to rotate the screen until the desired orientation is reached.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
A partial solution is to set the rotate-monitor
key to some keybinding using gsettings
or dconf-editor
.
For instance, the following command will cause Ctrl+F8
to rotate the screen counterclockwise:
$ gsettings set org.gnome.mutter.keybindings rotate-monitor "['XF86RotateWindows', '<Control>F8']"
This does not allow the user to specify the target orientation, but only to rotate the screen until the desired orientation is reached.
add a comment |Â
up vote
0
down vote
A partial solution is to set the rotate-monitor
key to some keybinding using gsettings
or dconf-editor
.
For instance, the following command will cause Ctrl+F8
to rotate the screen counterclockwise:
$ gsettings set org.gnome.mutter.keybindings rotate-monitor "['XF86RotateWindows', '<Control>F8']"
This does not allow the user to specify the target orientation, but only to rotate the screen until the desired orientation is reached.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
A partial solution is to set the rotate-monitor
key to some keybinding using gsettings
or dconf-editor
.
For instance, the following command will cause Ctrl+F8
to rotate the screen counterclockwise:
$ gsettings set org.gnome.mutter.keybindings rotate-monitor "['XF86RotateWindows', '<Control>F8']"
This does not allow the user to specify the target orientation, but only to rotate the screen until the desired orientation is reached.
A partial solution is to set the rotate-monitor
key to some keybinding using gsettings
or dconf-editor
.
For instance, the following command will cause Ctrl+F8
to rotate the screen counterclockwise:
$ gsettings set org.gnome.mutter.keybindings rotate-monitor "['XF86RotateWindows', '<Control>F8']"
This does not allow the user to specify the target orientation, but only to rotate the screen until the desired orientation is reached.
answered Aug 28 at 23:02
Element-126
135
135
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f464947%2fhow-to-programmatically-rotate-the-screen-in-gnome-3-28-wayland%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password