contrib icon indicating copy to clipboard operation
contrib copied to clipboard

workspace_back_and_forth doesn't work with try_swap_workspace

Open jabuxas opened this issue 2 years ago • 3 comments

When using try_swap_workspace, workspace_back_and_forth doesn't work

binds { workspace_back_and_forth = true }

jabuxas avatar Nov 10 '23 23:11 jabuxas

@Schievel1

fufexan avatar Nov 11 '23 17:11 fufexan

Hm I don't really see how I could implement such behavior when I can't get the previously focused workspace from hyprctl. Or is there a way that I don't know about?

Besides, what do you mean with "doesn't work"? It does still switch to the previous workspace only it doesn't utilize try_swap_workspace for that right?

Schievel1 avatar Nov 11 '23 18:11 Schievel1

It doesn't work for me

bind = $mainMod, 1, exec, try_swap_workspace 1
bind = $mainMod, 2, exec, try_swap_workspace 2

If i press mod+1 it just doesn't do anything after switching to workspace 1, even if i press mod+1 again.

I also have a 3 monitor setup in case that matters.

monitor=DP-1, 1920x1080, 0x1080, 1
monitor=HDMI-A-1, 1920x1080, 0x0, 1
monitor=DVI-D-1, 1920x1080, 1920x1080, 1

jabuxas avatar Nov 11 '23 20:11 jabuxas