diff --git a/dots/bash/.bashrc b/dots/bash/.bashrc index c755ee0..2e27f81 100644 --- a/dots/bash/.bashrc +++ b/dots/bash/.bashrc @@ -45,8 +45,8 @@ alias myip="echo $(wget http://ipinfo.io/ip -qO -)" screensaver() { cmd="status" - if [[ -n $2 ]]; then - cmd=$2 + if [[ -n $1 ]]; then + cmd=$1 fi if [ ${cmd} == "on" ] ; then @@ -70,7 +70,7 @@ screensaver() { # display setup ds11() { - if [ $2 == "info" ] ; then + if [ $1 == "info" ] ; then echo "1 laptop + 1 monitor" else xrandr --output eDP-1 --mode 1920x1080 --pos 0x1080 --rotate normal --output DP-1 --off --output HDMI-1 --primary --mode 3840x2160 --pos 1920x0 --rotate normal --output DP-2 --off --output HDMI-2 --off --output DP-3 --off --output HDMI-3 --off