configuration/local/bin/dockmode
Felix Van der Jeugt e0fee8d0f8
lock manually
2018-10-25 16:53:42 +02:00

18 lines
297 B
Bash
Executable File

#!/bin/bash
contains() {
what="$1"
shift
while [ -n "$1" ]; do
[ "$what" = "$1" ] && return 0
shift
done
return 1
}
where="${1:-above}"
contains "$where" "above" "below" "left-of" "right-of" || exit 1
xset dpms 0 0 0
xrandr --output DP1 --auto --$where eDP1