summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Simianer <pks@pks.rocks>2018-10-19 16:50:50 +0200
committerPatrick Simianer <pks@pks.rocks>2018-10-19 16:50:50 +0200
commit33c02eeeab9fa35d17ab6696a6e2169cc1d04af5 (patch)
tree6fcc4542885f3be679f8f504f80fd9cd22e286c7
parent99861145a29e36bf97136e4fb9626dde45274444 (diff)
zshrc: aliases for barkley
-rw-r--r--zsh/.zshrc11
1 files changed, 9 insertions, 2 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc
index 9111d2b..a60304d 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -243,8 +243,15 @@ if [[ $_HOST_TYPE == "Linux" ]]; then
alias cal='while true; do clear; echo; khal calendar; sleep 600; done'
alias wifi_list='sudo iwlist wlan0 scan'
alias always_on='xset dpms 0 0 0'
-alias vgaoff='xrandr --output VGA1 --off && xrandr --output LVDS1 --mode 1024x768'
-alias vgaclone='xrandr --output VGA1 --mode 1024x768'
+if [[ $(hostname) == "bogues" ]]; then
+ alias vgaoff='xrandr --output VGA1 --off && xrandr --output LVDS1 --mode 1024x768'
+ alias vgaclone='xrandr --output VGA1 --mode 1024x768'
+elif [[ $(hostname) == "barkley" ]]; then
+ alias vgaoff='xrandr --output DP2 --off && xrandr --output eDP1 --mode 1920x1080'
+ alias vgaclone='xrandr --output DP2 --mode 1280x1024'
+ alias presentation='xrandr --output eDP1 --mode 1024x768 && xrandr --output DP2 --mode 1024x768'
+ alias presentation-off='xrandr --output DP2 --off && xrandr --output eDP1 --mode 1920x1080'
+fi
alias vgaext='xrandr --output VGA1 --mode 1024x768 --left-of LVDS1 --rotate right'
alias vga21='xrandr --output VGA1 --mode 1600x1200 --rate 60 --rotate right && xrandr --output LVDS1 --off'
alias vga22w='xrandr --output VGA1 --mode 1680x1050 --rate 60 --rotate left && xrandr --output LVDS1 --off'