You are not logged in.

#1 2021-05-25 21:35:51

AMTitan
Member
Registered: 2021-04-15
Posts: 33

[Solved] Can I focus other screen Xmonad

So I was wondering if I could focus on another screen with xmonad, I know about XMonad.StackSet focus up and focus down but can I focus to the next screen?

Last edited by AMTitan (2021-05-27 02:30:18)

Offline

#2 2021-05-26 10:08:45

MrNeuneu
Member
Registered: 2018-05-01
Posts: 22

Re: [Solved] Can I focus other screen Xmonad

I only use one screen so I never looked into that but did have a look at this page? There are functions nextScreen, etc.

Last edited by MrNeuneu (2021-05-26 10:09:46)

Offline

#3 2021-05-26 15:36:36

AMTitan
Member
Registered: 2021-04-15
Posts: 33

Re: [Solved] Can I focus other screen Xmonad

I did not see anything called `nextScreen`

Offline

#4 2021-05-26 17:13:28

CarbonChauvinist
Member
Registered: 2012-06-16
Posts: 413
Website

Re: [Solved] Can I focus other screen Xmonad

Check again?

nextScreen :: X ()
Source

View next screen
.....
shiftNextScreen :: X ()
Source

Move focused window to workspace on next screen
.....
swapNextScreen :: X ()
Source

Swap current screen with next screen


"the wind-blown way, wanna win? don't play"

Offline

#5 2021-05-26 19:19:14

AMTitan
Member
Registered: 2021-04-15
Posts: 33

Re: [Solved] Can I focus other screen Xmonad

that is to move the window to the other screen I want to change my focus to the other screen

Offline

#6 2021-05-26 19:35:23

MrNeuneu
Member
Registered: 2018-05-01
Posts: 22

Re: [Solved] Can I focus other screen Xmonad

I cannot test because I only have one screen but could you tell us what is the difference between nextScreen and shiftNextScreen ? The description "View next screen" of nextScreen is not very explicit.

Offline

#7 2021-05-26 22:42:25

AMTitan
Member
Registered: 2021-04-15
Posts: 33

Re: [Solved] Can I focus other screen Xmonad

so shift next screen takes the current item and moves it to the other screen but if you try `focusDown` it changes the item that is focused and I wanted to know if you could do a focusNextScreen so then I could use an app on the other screen. (If I do shiftNextScreen it will just move the app but not my focus with it) And `nextScreen` just cycles to the next work space.

Offline

#8 2021-05-27 02:18:20

MrNeuneu
Member
Registered: 2018-05-01
Posts: 22

Re: [Solved] Can I focus other screen Xmonad

And `nextScreen` just cycles to the next work space.

This is strange. From what I understand of the source code, this should give focus to the next screen. Otherwise, what would be the difference with nextWS?

Offline

#9 2021-05-27 02:26:31

MrNeuneu
Member
Registered: 2018-05-01
Posts: 22

Re: [Solved] Can I focus other screen Xmonad

I really believe this nextScreen function should do what you want. In any case I cannot debug the issue but you can try to find what goes wrong by rewriting these functions by manipulating directly the StackSet through the function windows.

Offline

#10 2021-05-27 02:29:45

AMTitan
Member
Registered: 2021-04-15
Posts: 33

Re: [Solved] Can I focus other screen Xmonad

I just tried it again and now it works thank you but I am so confused but thank you

Offline

#11 2021-05-27 10:20:26

MrNeuneu
Member
Registered: 2018-05-01
Posts: 22

Re: [Solved] Can I focus other screen Xmonad

No problem!

Offline

Board footer

Powered by FluxBB