diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-02-24 12:13:11 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-02-24 12:13:11 +0100 |
| commit | 839c50873c0db785b3f81f0326518b6c0e8006d2 (patch) | |
| tree | b38e85966f79a06c58f3fe964e1a9e42315a9234 | |
| parent | 3d5439a1be5e05f32faea88974bcef8a711ca987 (diff) | |
| download | dotfiles-839c50873c0db785b3f81f0326518b6c0e8006d2.tar.gz dotfiles-839c50873c0db785b3f81f0326518b6c0e8006d2.tar.bz2 dotfiles-839c50873c0db785b3f81f0326518b6c0e8006d2.zip | |
Updated .xinitrc with a auto mode for DVI-0 since 1280x1024 in not always detected
| -rwxr-xr-x | .xinitrc | 20 |
1 files changed, 12 insertions, 8 deletions
@@ -8,14 +8,18 @@ echo 'Starting dunst' dunst & xset r rate 200 50 -[ "$(cat /etc/hostname)" = 'cacharle-main' ] && - xrandr --output DVI-0 --mode 1280x1024 --left-of DVI-1 \ - --output DVI-1 --mode 1920x1080 --primary --left-of HDMI-0 \ - --output HDMI-0 --mode 1920x1080 +case "$(cat /etc/hostname)" in + cacharle-main) + xrandr --output DVI-0 --auto --left-of DVI-1 \ + --output DVI-1 --mode 1920x1080 --primary --left-of HDMI-0 \ + --output HDMI-0 --mode 1920x1080 + ;; -[ "$(cat /etc/hostname)" = 'charles-laptop' ] && - xrandr | grep 'VGA1.*connected' && - xrandr --output LVDS1 --primary --left-of VGA1 \ - --output VGA1 --mode 1280x1024 + charles-laptop) + xrandr | grep 'VGA1.*connected' && + xrandr --output LVDS1 --primary --left-of VGA1 \ + --output VGA1 --mode 1280x1024 + ;; +esac exec xmonad |
