You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
626 B
12 lines
626 B
#!/bin/sh |
|
|
|
laptopScreen="eDP-1" |
|
externalScreen="$(xrandr | grep -Eo '^.* connected' | grep -v "$laptopScreen" | |
|
cut -d ' ' -f 1)" |
|
externalResolution="$(xrandr | grep -A 1 "$externalScreen" | sed -n 2p | awk '{print $1}')" |
|
|
|
pkill compton |
|
xrandr --output "$laptopScreen" --primary --mode 1920x1080 --pos 0x0 --rotate normal --output "$externalScreen" --mode "$externalResolution" --pos 1920x0 --rotate normal |
|
/usr/bin/compton --config "$HOME/.config/picom/picom.conf" & disown |
|
|
|
# xrandr --output "$laptopScreen" --primary --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI-2 --mode 1920x1080 --pos 1920x0 --rotate normal
|
|
|