frame-workflow icon indicating copy to clipboard operation
frame-workflow copied to clipboard

Switching to a frame on EXWM with XRandR

Open akirak opened this issue 7 years ago • 2 comments

Frame-workflow uses select-frame-set-input-focus for selecting a frame by default. This function works poorly on EXWM with multiple monitors. It seems to display the frame always on the first monitor, at least in my environment. This issue may be solved by using a different function to switch frames, but even exwm-workspace-switch seems to work in a similar way. Maybe I have to implement a new function to select a frame on EXWM.

akirak avatar May 27 '18 00:05 akirak

I have recently added frame-workflow-exwm.el module which includes frame-workflow-exwm-swap-workspaces command. It swaps two visible workspaces, and if there are only two monitors, it doesn't require any user input. EXWM has a built-in command named exwm-workspace-swap, but it lets you select two workspaces by numbers from any workspaces including hidden ones, which is not easy to use for me.

Workspace switching on EXWM got easier by combining the following methods:

  • Display a list of EXWM workspaces on lemonbar with my custom config
  • Use an EXWM built-in exwm-workspace-switch command to switch to a hidden workspace.
  • Use frame-workflow-exwm-swap-workspaces to swap positions of two visible workspaces.
  • Use exwm-window-go to switch between visible workspaces.

akirak avatar May 31 '18 06:05 akirak

As I am currently working on #5, this needs to be fixed later.

akirak avatar Jun 07 '18 16:06 akirak