dotfiles

Settings and scripts
git clone git://git.konyahin.xyz/dotfiles
Log | Files | Refs | LICENSE

commit 224dc03bce1dabe03588ed5bf02c4c347a6bc8e7
parent 615e328ff526d1e4bece1893eac39882f51b101e
Author: Anton Konyahin <me@konyahin.xyz>
Date:   Sun, 21 Jan 2024 11:21:11 +0300

scripts: add script for tune external dispaly

Diffstat:
Ascripts/dot-bin/chscr | 16++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)

diff --git a/scripts/dot-bin/chscr b/scripts/dot-bin/chscr @@ -0,0 +1,16 @@ +#!/usr/bin/env sh + +set -e + +if [ -z "$1" ]; then + echo "Use vga or lvds as a argument." + exit 1 +fi + +case "$1" in + "vga" ) + xrandr --output VGA-1 --primary --mode 1920x1080;; + "lvds" | * ) + xrandr --output LVDS-1 --primary --mode 1366x768;; +esac +