Hello.-
You didn't mark as SOLVED your question, so I don't know if the proposed solution worked or not, just in case not, you can test this:
You must modify your jwmrc-personal file to move to an occupied screen and skip the empty screens, you can add the following lines to the <Key> section of the file:
Code: Select all
<Key mask="C|S">Right</Key>
<Action name="GoTo">
<NextOccupied/>
</Action>
<Key mask="C|S">Left</Key>
<Action name="GoTo">
<PrevOccupied/>
</Action>
These lines define key bindings for Ctrl+Shift+Right and Ctrl+Shift+Left arrow keys to move to the next or previous occupied screen, respectively.
The <NextOccupied/> and <PrevOccupied/> tags in the <Action> section specify that the action should go to the next or previous occupied screen, respectively. This will skip any empty screens and go directly to the screen where an application is currently open.
Here's an example of how you can integrate these lines into your jwmrc-personal file:
Code: Select all
<JWM>
<Key mask="Mod4" key="5">
<Action name="GoTo">
<Desktop>5</Desktop>
</Action>
</Key>
<Key mask="C|S">Right</Key>
<Action name="GoTo">
<NextOccupied/>
</Action>
<Key mask="C|S">Left</Key>
<Action name="GoTo">
<PrevOccupied/>
</Action>
</JWM>
This example includes the lines for Ctrl+Shift+Right and Ctrl+Shift+Left arrow keys as well as the original key binding for Mod4+5 to move to screen 5 where geany is open.
Save the modified jwmrc-personal file and restart JWM or reload the configuration file with jwm -reload to apply the changes. You should now be able to use Ctrl+Shift+Right and Ctrl+Shift+Left arrow keys to move directly to an occupied screen and skip any empty screens.
If you want, you can test it and try.
Please, Mark your post as SOLVED if any solutions solve this.-
Have a nice day.