feat: initial commit
This commit is contained in:
13
setup_screen.sh
Executable file
13
setup_screen.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user