Skip to content

clientstomon

Bakkeby edited this page Feb 27, 2024 · 3 revisions
Function Expected argument Default keybindings
clientstomon -1 or 1 Super+Alt+Shift+comma and Super+Alt+Shift+period

The clientstomon function moves all windows on the active workspace to the currently active workspace on an adjacent monitor.

Refer to the Monitor page for details about the arguments and how the monitors are selected in a multi-monitor setup.

If the active workspace on the adjacent monitor is 6 then this would be equivalent of the Super+Ctrl+Shift+6 keybinding calling the movealltowsbyname function.

The clientstomon function allows this operation to happen across monitors without having to consider which workspace to send them to.

External commands:

duskc run_command clientstomon -1  # send all clients to the monitor to the left
duskc run_command clientstomon 1   # send all clients to the monitor to the right

Back to Functions > Monitor.

Clone this wiki locally