mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-06 05:29:42 +00:00
16 lines
473 B
Bash
16 lines
473 B
Bash
|
#!/bin/bash
|
||
|
source ./utils/monitor-control/utility_functions.sh
|
||
|
|
||
|
# Function to duplicate displays
|
||
|
duplicate_displays() {
|
||
|
primary=$(detect_connected_monitors | head -n 1)
|
||
|
for monitor in $(detect_connected_monitors | tail -n +2); do
|
||
|
if confirm_action "Duplicate $monitor to $primary?"; then
|
||
|
echo "Duplicating $monitor to $primary"
|
||
|
execute_command "xrandr --output $monitor --same-as $primary"
|
||
|
fi
|
||
|
done
|
||
|
}
|
||
|
|
||
|
duplicate_displays
|