Skip to content

Commit 90b7a2d

Browse files
authored
Switch external display sources (raycast#692)
* Create screen-dp.sh * Delete screen-dp.sh * Create screen-dp.sh * Add files via upload * Create screen-dp.sh * Add files via upload * Update screen-dp.sh * Update screen-hdmi.sh * Update screen-dp.sh * Update screen-hdmi.sh * Update screen-dp.sh
1 parent f81305b commit 90b7a2d

File tree

4 files changed

+91
-0
lines changed

4 files changed

+91
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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

0 commit comments

Comments
 (0)