diff --git a/local/bin/dockmode b/local/bin/dockmode new file mode 100755 index 0000000..3fd6288 --- /dev/null +++ b/local/bin/dockmode @@ -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