i3: add scripts for display management

This commit is contained in:
2022-11-17 15:24:31 +01:00
parent 87f267e55d
commit 32eb67ed95
5 changed files with 42 additions and 4 deletions

View File

@@ -0,0 +1,11 @@
#!/bin/sh
xrandr | grep -q "HDMI-1 connected"
if [ "$?" -eq "0" ]; then
echo "Two screens available"
~/.screenlayout/twoscreens.sh
else
echo "Only one screen available"
~/.screenlayout/onescreen.sh
fi