add dockmode script

This commit is contained in:
Felix Van der Jeugt 2016-04-01 09:21:53 +02:00
parent 2afe705647
commit c1e6bdfaa5
1 changed files with 19 additions and 0 deletions

19
local/bin/dockmode Executable file
View File

@ -0,0 +1,19 @@
#!/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 --$where eDP1
bash ~/.fehbg