Toggle between two screens

hello,
Is there a keyboard shortcut to toggle between two screens?

thanks

You’re missing a few key pieces of information for someone to be able to answer this :slight_smile:

What do you mean by “screens”? Application windows? Virtual desktops? Physical displays?

Sorry, I mean two physical displays as follow:

  • The first is the laptop screen 1366x768
  • The second is a 24’’ screen 1920x1080

Hello @jeanpat ,
A dirty workaround:
In case you are on GNOME-Xorg
a shortcut command
kitty sh -c "$HOME/tm.sh"

#!/bin/bash

TOGGLE=$HOME/.toggle

if [ ! -e $TOGGLE ]; then
    touch $TOGGLE
    xdotool mousemove 500 100 click 1
else
    rm $TOGGLE
    xdotool mousemove 500 1100 click 1
fi

otherwise ydotool but the installation / setup is a bit harder there.

Thanks,
I’m on wayland with zsh. I’ll try it

Not so easy, but works for me.
ydotool setup

Relative mouse movements (absolute would have been better, but it failed for me)

#!/bin/bash

TOGGLE=$HOME/.toggle

if [ ! -e $TOGGLE ]; then
    touch $TOGGLE
    ydotool mousemove -- 0 -800
else
    rm $TOGGLE
    ydotool mousemove -- 0 800
fi