Rick Strahl's Weblog  

Wind, waves, code and everything in between...
.NET • C# • Markdown • WPF • All Things Web
Contact   •   Articles   •   Products   •   Support   •   Advertise
Sponsored by:
Markdown Monster - The Markdown Editor for Windows

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

On this page:

updated January 2022

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 Mac Mini (2020) 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 XPS Laptop and a Mac Mini (Intel) and also an older 2015 MacBook Pro. There's another low end Windows Laptop and a Dell NUC device I run a dedicated Linux instance on.

I use the Mac Mini for a few things on a regular basis: I record music frequently so I often use 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 I've decided to just use the Mac for regular .NET development as well, just to do something a little different. It all works well, but in the past the switch between these different environments has been pretty jarring.

Not anymore.

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 has been one of the best tech investments 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. For software development having a large screen is a life saver 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 recording project:

Lots of space there too.

Hooking up the 32" monitor to Windows at 100% resolution text is borderline for me. It still works for me at 100%, but I definitely feel like I need to bump document fonts sizes slightly 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 often takes a few seconds trying to sync the signal jumping around a bit until it finally sync up completely.

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 using some interesting LogiTech devices and software.

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 desk space.

I've already had the awesome Logitech MX Master 2 mouse (there's a newer MX 3 out now) for some time. Great mouse. And now I added the Ergo keyboard which also a very nice device.

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 are physical buttons on the keyboard, and buttons on the bottom of the mouse that let you switch Ids 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.

This is the hardware part and it works on any machine that the adapter can plug into or using BlueTooth.

Logitech Flow - Move the Cursor across multiple Monitors

But even better, Logitech provides Easy Flow software that allows you use mouse drag operations to move the cursor across multiple monitors or machines that are connected and running the software. You can have up to 3 devices connected and move between them. This basically replaces the manual operation described earlier with more natural mouse gestures. The software effectively switches the keyboard and mouse Id button states as the cursor is moved between machines.

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 very useful, especially if you're going back and forth between Windows and Mac 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 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 it's not as smooth as the Logitech software. One advantage is that the software explicitly works with Linux which Easy Flow does not, so if Linux is part of your machine cadre, Synergy might be a better choice.

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 time saver.

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 is very comfortable to type on but it's very different from the MS Ergo. 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. And yes it's quiet. I won't keep my wife up in the room next door when I'm on a late night session.

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 nit picky as heck.

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. (even now over a year later I still have issues occasionally missing the back button and hitting PrtScrn or Insert)

But otherwise I think this keyboard is pretty much perfect for me, and especially Flow software or even just the ability to manually switch between connected machines is awesome. Even without the flow across functionality on Linux - manually pressing the device buttons on the keyboard and mouse is easy enough.

Update: Screen Synchronization with two 32" LGs, Monitor Arms and Desk Organization

Here's an update to this setup in January of 2022.

It's now late 2021 and I've recently switched out the 40" Phillips monitor for another 32" LG (32UL500-W). Both the PC and Mac monitors are now exactly the same, which is both more visually appealing and also more consistent for configuration. It also helps when I occasionally rig both monitors to the my Windows Laptop for development.

I decided on this after using the 32" screen for quite a bit on the Mac, and noticed much less eye strain and just easier visibility of the entire screen. So much so that I actually wanted the smaller screen over the 40" Philips.

Since I originally wrote about the 32" monitor, it now feels comfortable to me at 100%. I definitely like the smaller dimensions as my field of view can see the entire monitor without physical movement which wasn't quite the case with the 40" screen.

I still think a 34" is probably the absolute sweet spot, but there are very few monitors available in that size and they are expensive. Maybe for the next round if or when these monitors wear out.

Monitor Arms are the way to go!

When I upgraded the second monitor I also decided to get a couple of Monitor arms for mounting both monitors. This gives a ton more flexibility for height and depth placement of each screen and opens up a lot of desk space:

I was skeptical about this since arms aren't exactly cheap, but they've made it much easier to get the monitors lined up exactly where I need them easily and quickly. Because monitors can be easily adjusted up and down it's also easy to run them a little higher to fit say an iPad and phone under the main screen(s) and I can use the space between to store my Mac Mini and audio interface including the input wires. There's lots of extra desk space that just wasn't usable before. It's totally worth it to get monitor arms!

These Loctek Arms are in the middle of the price range but after trying a few cheaper models, these seem to work very well. They fit the 32" screens comfortably and the shocks can bear the weight, although it takes some tweaking and cranking down of the shocks to get them stay put. Once set up though they're rock solid now and stay wherever they are moved even with frequent movement. No sagging.

Another Office Organization Tip: A long, wide-spaced Power Strip

With the monitor arms you may find that your desk all of a sudden has a lot more useful space, and one thing that ruins all that open space can be a nest of power plugs, plugged into small power strips that I previously had hidden behind the monitor stands.

I recently replaced three small power strips with a single, long powerstrip that runs the length of my entire desk:

Besides the single, much cleaner line for the plugs, the key are the spaced plugs so none are wasted by overlapping power bricks. The strip can be mounted (top or bottom) to the desk, so it doesn't move every time something gets plugged in or out. Because of the spacing any kind of power brick works, and 12 slots is plenty with a few open ones to spare. Really makes a difference both functionally and aesthetically especially if you have a fairly wide desk. There are smaller versions for smaller desks, though I find much fewer than 12 slots would be lacking for me. For smaller desks you could use maybe two strips - one top mounted and one on the bottom.


This has been a great setup for me that has made me a lot more productive. I've been running with this setup for over a year now 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 so I can take advantage of the strengths of each of these machines.

Note: while the keyboard and mouse works on Ubuntu, the Logitech Flow software doesn't exist there, so on Linux you have to manually switch using the hardware Id buttons on the keyboard and mouse. While not as smooth as Ctrl-Moving to across screens it's not too intensive to manually switch the keyboard and mouse. Sure would be nice if Logitech could at least sync the mouse to the keyboard for manual switching but alas the software is not smart enough for that without Flow. If Linux is one of your machines in a dual machine setup you'll want to do some more research and certainly not buy these if only for the Flow features. But both the keyboard and mouse are great devices on their own and I love the feel of the keyboard and the precision of the mouse - especially for a wireless mouse.

Hardware in this Article

this post created and published with the Markdown Monster Editor
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.

December 12, 2021

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

Regarding the multiple monitors, can you set it up that when you use the Logitech devices to switch between the MAC and PC that both monitors are used for the computer selection? In other words, when I am using the PC, I want both monitors to be active for the PC and when I switch to the MAC, I want both monitors to be active for the MAC so I always have dual monitor capability when working from either machine. In reading the post, it seems that you have one monitor per device and you are using the Logitech devices to switch between the MAC and PC but you only have one monitor active/connected to the each the MAC and PC.

December 15, 2021

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

Great article, I will be buying the Logitech MK850 Multi-Device Wireless keyboard and mice, just tired of having multiple keyboard and mice on my desk. I wish there was some software or hardware that allow me to do the same for my ultra-wide monitor to display both my Windows and MAC onto one wide screen side by side, I do not want to go out and buy those PBP ultra-wide monitors.

Mat Polutta
February 03, 2022

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

Great setup. Looks a lot like mine, even down to the Scarlett Focusrite and MacMini (just looked - 2018 but third one). I am considering replacing my Win 11 MSI laptop with MacBook (M1) and Visual Studio for Mac. Let me know if you have used it and it works well. I've been using VS Code for years on the MacMini for creating iOS apps (Ionic/Angular). My son switches between Windows Gaming Desktop and MacBook (mostly MacBook) for VS Code. Angular, Svelte, Rust. He's doing lots of fun stuff on his MacBook, but no .Net on it.

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