Skip to content

Setup Hotkey to Switch Dell monitor between PCs

Windows PC

Install Dell Display Manager (DDM)

Currently here:

Install DDM Hotkey Manager (DDMHKM)

Currently here:

Configure the Hotkey

  • Run the downloaded ddmhkm.exe to start the DDM Hotkey Manager.
  • In the DDM command-line parameters box, type /1:SetActiveInput HDMI.
  • Click in the Select system-wide-hotkey, and press the hotkey combination.
  • Close the DDM Hotkey Manager.
  • Exit & Restart the Dell Display Manager.

Linux PC

Install ddcutil

sudo bash
apt install ddcutil

Allow runnning of ddcutil without Administrator prompt

cat <<EOF >/usr/share/polkit-1/actions/sh.fabi.pkexec.ddcutil.policy
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
 "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"

    <action id="sh.fabi.pkexec.ddcutil">
    <message>Authentication is required to run the ddcutil</message>
    <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/ddcutil</annotate>
    <annotate key="org.freedesktop.policykit.exec.allow_gui">false</annotate>

cat <<EOF >/usr/share/polkit-1/rules.d/49-ddcutil_nopass_tony.rules
polkit.addRule(function(action, subject) {
    if ( == "sh.fabi.pkexec.ddcutil" && subject.user == "tony") {
        return polkit.Result.YES;

Create script to Switch Inputs

cat <<EOF >/usr/local/bin/
pkexec ddcutil setvcp 60 0x0f
chmod +x /usr/local/bin/


60 is the ddc inputsource, and 0x0f is my monitor's inputsource code for DisplayPort1.
If you don't know your monitor's inputsource codes the you can look them up here.

Setup the Global Hotkey

Varies depending on Linux distro.

For Linux Mint:

  • Open Keyboard Settings > Shortcuts > Custom Shortcuts
  • Press Add custom shortcut button
  • In the Name: box, enter something like Switch Monitor To DisplayPort
  • In the Command: box, enter /usr/local/bin/
  • Press the Add button
  • In the Keyboard bindings list, click on first unassigned slot
  • Press the hotkey combination

Released under the BSD Zero Clause License.