Files
local-bin/setup_screen.sh
2025-10-26 14:32:37 +01:00

14 lines
288 B
Bash
Executable File

#!/bin/sh
set -e
if swaymsg -t get_outputs | grep DP-2 > /dev/null;
then
echo "changing to external display"
swaymsg output DP-2 enable scale 1
swaymsg output eDP-1 disable
else
echo "changing to internal display"
swaymsg output eDP-1 enable scale 1
swaymsg output DP-2 disable
fi