configuration/local/bin/dockmode
Felix Van der Jeugt 8a4f99be1e
no more bar or background image
I'll just push this with debug stuff because it's been around way too long
2018-04-09 18:05:57 +02:00

19 lines
316 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
xautolock -disable
xrandr --output DP1 --auto --$where eDP1