#!/bin/sh # Get inputs # swaymsg -t get_inputs # Get ouputs # swaymsg -t get_outputs #PAD_ID="9580:110:HID_256c:006e_Pad" PAD_ID="9580:110:HID_256c:006e" OUTPUT="DP-2" echo "swaymsg 'input $PAD_ID map_to_output $OUTPUT'" swaymsg 'input '$PAD_ID' map_to_output '$OUTPUT