ArchHyprland MultiMonitor - DanieleBertagnoli/LinuxDotfiles GitHub Wiki

These dotfiles are generally designed for single-monitor configurations. However, in few steps you easily add other monitors to the configuration.

Hyprland Monitors

During the dotfiles installation, the script automatically detects all the available monitors, thus adding them to the ~/.config/hypr/configs/monitors.conf file. However, you may have to adjust them (e.g. the position, the framerate etc...). To modify them, just follow the Official Hyprland Wiki.

Once added, you can also assign each workspace to a monitor by modifying the ~/.config/hypr/configs/workspaces.conf file. In order to assign a workspace to a monitor, it's sufficient to replace the monitor name with the one specified for your monitor in ~/.config/hypr/configs/monitors.conf. For instance, if your monitors.conf looks like this:

hyprland-multi-monitors

To assign the workspaces from 1 to 5 to the DP-3 monitor and the workspaces from 6 to 10 to the DP-2 monitor, the workspaces.conf should look like this:

hyprland-multi-monitors-workspaces

Waybar Workspaces

Once configured the workspaces in the hyprland configs, you may notice that the shown workspaces in the waybar are not those assigned to the one you provided in the hyprland configuration file. To adjust this, modify the ~/.config/waybar/themes/SELECTED_THEME/modules.json file. In particular, set all-outputs to false and modify the persistent-workspaces part with the following synthax:

...
"persistent-workspaces" : {
    "MONITOR_NAME_1": [1, 2, ..., N],
    "MONITOR_NAME_2": [N+1, N+2, ..., M],
    OTHER MONITORS...
}
...

hyprland-multi-monitors-waybar

Example of modules.json

After these changes, reboot the system to apply them.