Housekeeping

This commit is contained in:
LordMathis
2019-02-11 17:43:02 +01:00
parent 4fc2bcab0a
commit 3ee70aa4e7
14 changed files with 82 additions and 35 deletions

21
bin/xrandr/switch_monitors.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
intern=eDP-1
extern=HDMI-1
case $1 in
"-i")
m=$intern
;;
"-e")
m=$extern
;;
*)
echo "Wrong option"
esac
if xrandr --listactivemonitors | grep "$m"; then
xrandr --output "$m" --off
else
xrandr --output "$m" --auto
fi