2021-08-28 20:09:31 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Get inputs
|
|
|
|
# swaymsg -t get_inputs
|
|
|
|
|
|
|
|
# Get ouputs
|
|
|
|
# swaymsg -t get_outputs
|
2022-04-03 22:54:40 +03:00
|
|
|
#PAD_ID="9580:110:HID_256c:006e_Pad"
|
|
|
|
PAD_ID="9580:110:HID_256c:006e"
|
2021-08-28 20:09:31 +03:00
|
|
|
OUTPUT="DP-2"
|
|
|
|
|
|
|
|
echo "swaymsg 'input $PAD_ID map_to_output $OUTPUT'"
|
|
|
|
swaymsg 'input '$PAD_ID' map_to_output '$OUTPUT
|