From 33c02eeeab9fa35d17ab6696a6e2169cc1d04af5 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Fri, 19 Oct 2018 16:50:50 +0200 Subject: zshrc: aliases for barkley --- zsh/.zshrc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'zsh') 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' -- cgit v1.2.3