There is a window selection mode, or Tile mode in Cinnamon, enabled with ctrl+alt+down_arrow by default.

In my bash script I need to check that this mode is currently active (user pressed shortcut and not chose window yet). I want to send or not send commands with xdotool depending on this.

I'm making bash script to control pc with IR remote. I want different behavior of buttons for smplayer window and other desktop stuff. When my smplayer window is active, I need specific behavior (e.g. arrows are forward/rewind playback), but when in Tile mode, I want regular behavior of IR remote (arrows like keyboard arrows to select windows). But smplayer remains active in Tile mode also, so I cant switch to another window.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.