Rick Strahl's Weblog  

Wind, waves, code and everything in between...
.NET • C# • Markdown • JavaScript • Angular
Contact   •   Articles   •   Products   •   Support   •  
Ad-free experience sponsored by:
West Wind WebSurge - Http Request and Load Testing for Windows

PC and Mac with single Mouse and Keyboard Setup on Dual 4k Screens

On this page:

A little while back I posted a couple of pictures of my new desk setup using both a Windows Laptop (a 2019 Dell XPS) and a Macbook Pro (2016) along with two 4k displays. I'm also using a single Logitech Mouse and Keyboard combination to control both machines and quite a few people were asking about how this works. So I decided to write a quick review of my setup here to give a few more details that are hard to give in a Twitter conversation.

Living in Windows and Mac

I have several machines that I use including my main Dell and Mac laptops. There's another low end Windows Laptop and a Dell NUC device I run a dedicated Linux instance on.

I use the Mac for a few things on a regular basis. I record music frequently and often using Logic Pro X on the Mac. I also use the Mac for any mobile development that involves iOS, since it's simply easier to do that natively on the Mac than using some sort of Windows to Mac or iOS bridge. And more recently just to get out of the comfort zone I've decided to just use the Mac for regular .NET development as well, just to do something a little different.

One Screen for each Machine

A few weeks ago I decided that between all of these machines that I have and use it's probably a good idea to have a second monitor for these other non-primary devices. While the Mac certainly has a decent laptop screen, switching from my Windows 40" 4K display to a MacBook screen is quite a shock. And the Linux NUC of course doesn't have a screen at all so in the past I had to swap cables which is a pain in the ass.

I have had a Philips 40" 4k Screen since 2015 and it's one of the best tech investements in terms of utility. Being able to run 4K at 100% resolution was a game changer in terms of screen real estate for so many things. Development obviously as any sort of dev environment regardless of Web or Desktop requires running so many different applications at the same time. Especially in these days of using Live Reload having browser, debug tools as well as a development environment with your server side code open and being able to see it all on a single screen is awesome.

Another awesome use of a 4K screen at 100% is using audio recording software as I often do. Check out this Audio DAW setup (using the now free Cakewalk on Windows by BandLab in this case):

I can see 15 tracks plus the mixing console, including expanded panels, and even one or two effects plugins at the same time. This is pretty awesome especially when mixing down songs.

Another 4k Screen

So I decided to finally give in and buy another 4K screen and I decided on buying a slightly smaller 32" screen instead of another 40 incher. I picked up a LG 32" 4K screen (32UL500-W) from Amazon and hooked that up to the Mac and it works great there.

Why 32" instead of 40"? 40 inches is perfect size for me to use at 100% in terms of readability, but the large size of the screen is massive, both vertically and horizontally. Viewing the far left and right edges of the screen requires slight physical movement. So for the second screen I opted for a smaller screen to keep the field of vision a little more focused.

On the Mac this works just fine as the Mac's scaling using the smallest scale factor is still quite readable at 100%.

Here's Logic Pro X on the Mac with another audio project:

Lots of space there too.

Hooking up the monitor to Windows at 100% resolution text is borderline too small for me. It still works for me at 100%, but I definitely would want to bump document font sizes by a point or two for anything I spend a lot of time working on (ie. code or writing).

The LG is 5 years newer than the old Phillips and it shows. The color profile is nicer on the LG and the screen does a much better job syncing with any of the computers I threw at it - the Phillips can often take a few seconds trying to sync the signal while jumping around a bit.

I like the overall size of the 32" screen: Although definitely a little more cramped for size, the full size of the entire monitor definitely fits better into my field of view without having to move around physically, which is a bonus. Thinking about getting another one to replace the 40" screen eventually.

Two is better than One

Ok, so I now have two screens and the setup looks something like this:

Both the Dell and Mac can be active at the same time.

Originally I started out with two sets of Keyboards and Mouse. But it turns out there's actually a very nice way to use a single keyboard and mouse combo to control both machines.

Logitech MX Master Mouse and Ergo Keyboard

At the same time that I bought the monitor I also picked up a new Logitech Ergo K860 Keyboard which unfortunately had been out of stock in most places so it took a while to get here so I was stuck with the dual keyboard/mouse setup which takes up a ton of deskspace.

I've already had the awesome Logitech MX Master 2 mouse (there's a newer MX 3 out now) for some time. Great mouse.

LogiTech Flow - Flow Mouse and Desktop across Machines

What's cool about these two devices is that you can use them on multiple machines easily. Both support Logitech software that lets you share a single unified USB adapter (or bluetooth) for both the keyboard and mouse. You can use a unifying adapter on both the PC and Mac and hook up to the same keyboard.

That alone lets me use the same keyboard and mouse on both machines.

But Logitech does one better: Using it's Flow software that you can use on Windows and Mac you can configure each device with an 'id' that you can use to switch the keyboard to work on each id. There physical buttons on the keyboard, and buttons on the button of the mouse that let you do this manually. I can basically set up each computer with its own numeric ID and then press the appropriate button to switch.

Here's the keyboard setup that lets you assign each machine to one of three numbers that map the buttons on the keyboard and mouse:

You basically configure each machine with its own id and at this point you can manually switch between them.

Logitech Flow - Move the Cursor to Switch

But even better on the mouse you can configure Easy Flow which uses a software daemon to running on each connected machine. The daemon allows passing control to another machine by using software to automatically switch the active device Id buttons.

Once this software is configured on both machines you can now use the mouse to simply drag your mouse cursor across two (or more) screens to switch focus to the other machine!

I set mine up so it requires Ctrl-Drag rather than just dragging, because plain dragging caused to many false moves to the wrong machine when I didn't intend to. So now when I switch I simple drag the mouse with Ctrl-Drag onto the other screen to switch the keyboard and moust inputs.

How cool is that?

In order for this to work both machines have to the on the same network - ie. the same WiFi network, or same wired connection.

The flow software has a few other cool tricks: It can also copy the clipboard from one machine to another. So I can paste something onto the Clipboard on Windows, drag my mouse cursor to the Mac and then pick up that same clipboard content on the Mac.

That's super useful, especially if you're going back and forth a lot as I do quite frequently.

Other Solutions

There are other solutions for the multi-device keyboard and mouse usage. There are physical KVM switches as well as software solutions. I've used physical KVM switches in the past, and one advantage they can have is that you can also use a single monitor - if you get one that works with the resolution you use. My experience with KVM switches in the past has been dismal and it looks if you want to use it for 4k screens in particular the choices are both very limited and expensive.

Several people pointed out software solutions as well.

There's also Synergy, which is similar to what the Easy Flow Logitech software does, but it's standalone so you're not bound by specific hardware. I've used this in the past and it works well too, but for me it's been a while. One advantage is that the software explicitly works with Linux, so if Linux is part of your machine cadre, Synergy might be a better choice then the Easy Flow software.

If you need to use mouse and keyboard with multiple Windows machines only, then Mouse without Borders from Microsoft Garage is an easy and free solution.

A few thoughts on the Logictech Ergo K860

I've been a long time user of a Microsoft Natural Ergonomic 4000 keyboard which looks like it's been discontinued by MS now. There's a successor in the Microsoft Ergonomic Keyboard, but judging from the reviews it's not a great follow up. My main beef with the 4000 over the years has been durability - due to the high humidity here in Hawaii, plus fairly hot, the keyboard palm rest starts flaking off the cheap paint. Also keys on that keyboard seem to either start popping off, or start getting less responsive after a time - max life I can get out of those keyboards has been ~2 years before they become unusable. I have a closet full of old ones that are starting to go 😄

I've been looking at the Logitec Ergo K860 for a couple of years, but at $125 it's a pricey bugger. Reviews for those coming from the Microsoft Natural 4000 were also mixed, so I was hesitant. The final trigger though that pushed me over the edge to give this keyboard a try has been the promise of having a single keyboard to control multiple machines. When I decided to get the second 4k Monitor the keyboard choice kind of made itself.

And that very feature alone is probably worth the price of admission to me, as it's made the transition between my two machines nearly seamless, which is a big timesaver.

Here's what the keyboard layout looks like:

The keyboard mostly does the right things for the layout. My main beef is that compared to the 4000 the various keyboard sections are really cramped together which causes me a lot of fat fingering the wrong support keys. Switching from the 4000 has not been very smooth for me. In fact, even now three weeks later I keep hitting the PrintScreen or Insert keys which sit next to the Back button.

I expect at some point perhaps I'll get past this, but in the meantime I've used the Logitec Options software to disable the PrintScreen and Insert keys - take that!

The keyboard itself feels nice to type on. It's comfortable and the key travel is pretty nice for a butterfly style keyboard. It's not mechanical feeling like the 4000, but I think I actually prefer that.

There are a few oddities with this keyboard: The function keys are kind of funky in that the split is the F6 key instead of the more traditional F5 key at the end of the first section, but that's easy to get used to.

The only beef I have really is that the various key sections are too close together and I'm fat fingering into the arrow or operational key clusters a lot more often. Still muscle memory from years on the 4000 I guess.

But otherwise I think this keyboard is a big win for me, and especially the Flow software part is awesome. Even without the flow across functionality on Linux - manually pressing the device buttons on the keyboard and mouse is easy enough.


This has been a great setup so far. I've been running with it for almost a month and this is the first time I actually use the Mac a lot more for just regular day to day work. Because I can quickly jump back and forth on these machines and even copy text and images back and forth it almost feels like a single computer I'm working with.

Note: while the keyboard and mouse works on Ubuntu, the flow software doesn't exist there so on Linux you have to manually switch using the hardware id buttons. If Linux is one of your machines in a dual machine setup you'll want to do some more research before picking up the pricey mouse and keyboard combo for multi-device use.


Posted in WFH  Office  

The Voices of Reason


January 21, 2021

# re: PC and Mac with single Mouse and Keyboard Setup on Dual 4k Screens

Hi Rick,

Great post, thank you for sharing your experience. I've been looking for a solution like this. My searches usually end with "virtualization" hits vs running both OS's side by side. I'm currently using one 40" monitor and juggling wires between systems, so I'm excited to try this solution. Silly question... but how long and deep is your desk and do you feel like you have "enough" space? I'm ready to hit the buy button on another monitor, but wondering if I need to include a new desk in the budget.

Thanks again,


Rick Strahl
January 21, 2021

# re: PC and Mac with single Mouse and Keyboard Setup on Dual 4k Screens

I have a custom made desk - I bought a standup desk frame and then put my own desktop from the same planks used in the Bamboo flooring as the desk top. Size wise it's a little wider than standard size but not much. Monitor space isn't a problem.

However, I ended up movable arms for the monitors (https://amzn.to/2Kz4T4m which work great) and also got rid of the 40" screen and replaced it with another 32" (same as the other). I'm actually much happier with the 32" screen as my over visibility is much better and I can be closer. After initial discomfort for 'downsizing' size change, now the smaller size seems perfect.

February 04, 2021

# re: PC and Mac with single Mouse and Keyboard Setup on Dual 4k Screens

Aloha Rick,

Just wanted to thank you for the awesome post! I have been searching for information like this for awhile now and really appreciate the effort you put into making your post.

Mahalo's from Oahu, Justin

June 12, 2021

# re: PC and Mac with single Mouse and Keyboard Setup on Dual 4k Screens

This is a great article. I am curious how do you get it to switch your monitors to the active machine? What wires are plugged in where and how? I am trying to do a similar setup with a Mac and PC and am banging my head against bad KVM experiences.

Thank you very much in advance!

Rick Strahl
June 12, 2021

# re: PC and Mac with single Mouse and Keyboard Setup on Dual 4k Screens

@Scott - Using the Logitech software, it handles the switch between machines/monitors. But you need to have two (or three) monitors for this to work. There's nothing fancy here. Each machine has its own 'normal' setup for the monitor from machine to monitor. There's no KVM - just multiple monitors that are active/on all the time.

July 11, 2021

# re: PC and Mac with single Mouse and Keyboard Setup on Dual 4k Screens

This is a great post, just what I wanted know, I'm a developer too and have to use both worlds MacOs and Windows/ Macbook and Laptop so I have like a month trying to figure out how can achieve a configuration that allows me to have the less peripherals and more productive and fast way to switch between machines, I really appreciate you sharing for this approach, thank you.

West Wind  © Rick Strahl, West Wind Technologies, 2005 - 2021