add ränder function (screen settings)

This commit is contained in:
Simon Bruder 2018-03-21 19:31:01 +00:00
parent af3a81e5b1
commit 0add03647f
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -81,7 +81,7 @@ transfer() {
fi
cat $tmpfile
rm -f $tmpfile
}
}
## Touchpad enabling/disabling
@ -102,6 +102,41 @@ eval "$(dircolors -b $HOME/.dircolors)"
## Color switcher
alias dynamic-colors="~/.dynamic-colors/bin/dynamic-colors"
## Screen settings
function ränder() {
case "$1" in
"office")
xrandr \
--output VGA-1 --off \
--output LVDS-1 --primary --mode 1280x800 --pos 0x721 --rotate normal \
--output HDMI-3 --mode 1920x1200 --pos 1280x0 --rotate normal \
--output HDMI-2 --off \
--output HDMI-1 --off \
--output DP-3 --off \
--output DP-2 --off \
--output DP-1 --off
;;
"solo")
xrandr \
--output VGA-1 --off \
--output LVDS-1 --primary --mode 1280x800 --rotate normal \
--output HDMI-3 --off \
--output HDMI-2 --off \
--output HDMI-1 --off \
--output DP-3 --off \
--output DP-2 --off \
--output DP-1 --off
;;
"auto")
xrandr --auto
;;
*)
echo "Invalid Preset"
;;
esac
feh --bg-fill ~/bg.jpg
}
# Bugs
## silversearcher-ag and not apt-get