Question regarding toggling between workspaces

Lukasz Majewski l.majewski at majess.pl
Fri Jul 12 17:41:49 CEST 2019


Hi Teresa,

> Em sex, 12 de jul de 2019 às 11:09, Lukasz Majewski
> <l.majewski at majess.pl> escreveu:
> > So it seems like I need to provide solution for this with some
> > xdotool scripting.
> >
> > I'm wondering if there is any API/way to get the necessary
> > information from xfce4? For example to know the previously used
> > workspace/display ?  
> 
> I was unaware there is a native solution for that. With that option
> activated under xfwm4-tweak-settings, you can run a command that will
> detect the current desktop and simply press "Ctrl+F(current desktop)":
> xdotool key ctrl+F"$(($(xdotool get_desktop)+1))"

Could you explain this procedure a bit? I'm afraid that I can't follow
(I'm not WM/xfce expert).

> 
> Running this command from a terminal with that option activated, I
> always return to the previously used desktop. But calling a keyboard
> shortcut from another keyboard shortcut is problematic, so you have to
> tell xdotool to release Escape first. This works reliably for me:
> 
> sh -c 'xdotool keyup Escape; xdotool key --clearmodifiers
> ctrl+F"$(($(xdotool get_desktop)+1))"
> _______________________________________________
> Xfce mailing list
> Xfce at xfce.org
> https://mail.xfce.org/mailman/listinfo/xfce
> http://www.xfce.org


-- 
Best regards,

Łukasz Majewski
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <https://mail.xfce.org/pipermail/xfce/attachments/20190712/a45651a6/attachment.sig>


More information about the Xfce mailing list