File tree Expand file tree Collapse file tree 4 files changed +91
-0
lines changed
commands/remote-control/ddc Expand file tree Collapse file tree 4 files changed +91
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Dependency: This script requires `m1ddc` cli installed: https://github.com/waydabber/m1ddc
4+ # Install via github: `https://github.com/waydabber/m1ddc`
5+
6+
7+ # Required parameters:
8+ # @raycast.schemaVersion 1
9+ # @raycast.title Switch to DP
10+ # @raycast.mode compact
11+
12+ # Optional parameters:
13+ # @raycast.icon 📺
14+ # @raycast.author goodhyun
15+ # @raycast.packageName External Display
16+ # @raycast.description This script will switch the external display screen to DP.
17+
18+ if ! command -v m1ddc & > /dev/null; then
19+ echo " m1ddc command is required (https://github.com/waydabber/m1ddc)." ;
20+ exit 1;
21+ fi
22+
23+ m1ddc set input 15
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Dependency: This script requires `m1ddc` cli installed: https://github.com/waydabber/m1ddc
4+ # Install via github: `https://github.com/waydabber/m1ddc`
5+
6+ # Required parameters:
7+ # @raycast.schemaVersion 1
8+ # @raycast.title Switch to HDMI
9+ # @raycast.mode compact
10+
11+ # Optional parameters:
12+ # @raycast.icon 📺
13+ # @raycast.author goodhyun
14+ # @raycast.packageName External Display
15+ # @raycast.description This script will switch the external display screen to HDMI.
16+
17+
18+ if ! command -v m1ddc & > /dev/null; then
19+ echo " m1ddc command is required (https://github.com/waydabber/m1ddc)." ;
20+ exit 1;
21+ fi
22+
23+ m1ddc set input 17
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Dependency: This script requires `ddcctl` cli installed: https://github.com/kfix/ddcctl
4+ # Install via homebrew: `brew install ddcctl`
5+
6+ # Required parameters:
7+ # @raycast.schemaVersion 1
8+ # @raycast.title Switch to DP
9+ # @raycast.mode compact
10+
11+ # Optional parameters:
12+ # @raycast.icon 📺
13+ # @raycast.author goodhyun
14+ # @raycast.packageName External Display
15+ # @raycast.description This script will switch the external display screen to DP.
16+
17+ if ! command -v ddcctl & > /dev/null; then
18+ echo " ddcctl command is required (https://github.com/kfix/ddcctl)." ;
19+ exit 1;
20+ fi
21+
22+ ddcctl -d 1 -i 15
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Dependency: This script requires `ddcctl` cli installed: https://github.com/kfix/ddcctl
4+ # Install via homebrew: `brew install ddcctl`
5+
6+ # Required parameters:
7+ # @raycast.schemaVersion 1
8+ # @raycast.title Switch to HDMI
9+ # @raycast.mode compact
10+
11+ # Optional parameters:
12+ # @raycast.icon 📺
13+ # @raycast.author goodhyun
14+ # @raycast.packageName External Display
15+ # @raycast.description This script will switch the external display screen to HDMI.
16+
17+
18+ if ! command -v ddcctl & > /dev/null; then
19+ echo " ddcctl command is required (https://github.com/kfix/ddcctl)." ;
20+ exit 1;
21+ fi
22+
23+ ddcctl -d 1 -i 17
You can’t perform that action at this time.
0 commit comments