diff options
| author | Mitsuo Tokumori <[email protected]> | 2025-07-01 15:29:27 +0900 |
|---|---|---|
| committer | Mitsuo Tokumori <[email protected]> | 2025-07-01 15:29:27 +0900 |
| commit | 9a878b2b6f94f955ca6caf9b44fb947635da67f1 (patch) | |
| tree | 580ab46823a76af307d5aac9ef48dd7766151b35 /public/.local/bin/laptop-xrandr.sh | |
| parent | a2f2b28f086c455f85e3ec31c1fdde54b363744c (diff) | |
| download | dotfiles-9a878b2b6f94f955ca6caf9b44fb947635da67f1.tar.gz dotfiles-9a878b2b6f94f955ca6caf9b44fb947635da67f1.tar.bz2 dotfiles-9a878b2b6f94f955ca6caf9b44fb947635da67f1.zip | |
Add snippet.sh
Diffstat (limited to 'public/.local/bin/laptop-xrandr.sh')
| -rwxr-xr-x | public/.local/bin/laptop-xrandr.sh | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/public/.local/bin/laptop-xrandr.sh b/public/.local/bin/laptop-xrandr.sh index 5d8d422..cd3a66f 100755 --- a/public/.local/bin/laptop-xrandr.sh +++ b/public/.local/bin/laptop-xrandr.sh @@ -22,5 +22,17 @@ simple_2_monitor() { #simple_2_monitor #xrandr --auto --output HDMI-A-0 --mode 1920x1080 --right-of eDP -# Only HDMI output 4k -xrandr --output eDP --off --output HDMI-A-0 --mode 3840x2160 +only_hdmi_4k() { + xrandr --output eDP --off --output HDMI-A-0 --mode 3840x2160 +} + +only_hdmi_2k() { + xrandr --output eDP --off --output HDMI-A-0 --mode 1920x1080 +} + +case $1 in + 4k) only_hdmi_4k ;; + 2k) only_hdmi_2k ;; + reset) xrandr ;; + *) only_hdmi_4k +esac |
