2016-04-01 09:21:53 +02:00
|
|
|
#!/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
|
2016-04-10 11:12:44 +02:00
|
|
|
xrandr --output DP1 --auto --$where eDP1
|
2016-04-01 09:21:53 +02:00
|
|
|
bash ~/.fehbg
|