diff options
| author | Dylan <boss@tehbox.org> | 2026-10-17 21:53:43 +1300 |
|---|---|---|
| committer | Dylan <boss@tehbox.org> | 2026-10-17 21:53:43 +1300 |
| commit | 280e1bbe5e733128a451260685cc8ecd10a042a3 (patch) | |
| tree | 78bab82353bbfa00f9a781015e246c274a5c983b /home-manager/i3/scripts/monitor-config.sh | |
| parent | bcfc69e424802276cc52fb6e00fb4a42e9c37816 (diff) | |
| download | nixos-configuration-280e1bbe5e733128a451260685cc8ecd10a042a3.tar.gz nixos-configuration-280e1bbe5e733128a451260685cc8ecd10a042a3.zip | |
feat: Dendritic pattern
This re-write was done with the help of claude, and still needs a
decent amount of changes before it properly follows the dendritic
pattern
Diffstat (limited to 'home-manager/i3/scripts/monitor-config.sh')
| -rwxr-xr-x | home-manager/i3/scripts/monitor-config.sh | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/home-manager/i3/scripts/monitor-config.sh b/home-manager/i3/scripts/monitor-config.sh deleted file mode 100755 index 8f17660..0000000 --- a/home-manager/i3/scripts/monitor-config.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -choice=$(echo -e "One monitor\nTwo monitors" | rofi -dmenu -i -p "What monitor setup to use") - -monitor1=$(xrandr | grep -E "eDP(-1(-1)?)?" | awk '{print $1 }') -monitor2=$(xrandr | grep -E "HDMI(-A-0)?(-1(-1)?)?" | awk '{print $1 }') - -case $choice in - "One monitor") - xrandr --output $monitor1 --primary --mode 1920x1080 --rate 144 --pos 0x0 --rotate normal --output $monitor2 --off - sleep 1 - i3-msg restart - ;; - "Two monitors") - xrandr --output $monitor1 --primary --mode 1920x1080 --rate 144 --pos 0x0 --rotate normal --output $monitor2 --mode 1920x1080 --rate 144 --pos 1920x0 --rotate normal - sleep 1 - i3-msg restart - ;; - *) - notify-send "Invalid response, canceling" - ;; -esac - |
