Bin: Changes screen layout scripts to allow for non-hdmi screens
This commit is contained in:
parent
bf4e6b0ec9
commit
737a42d78d
3 changed files with 26 additions and 3 deletions
|
@ -1,2 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
xrandr --output eDP-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DP-1 --off --output HDMI-1 --off --output DP-2 --off --output HDMI-2 --mode 1920x1080 --pos 1920x0 --rotate normal
|
|
||||||
|
laptopScreen="eDP-1"
|
||||||
|
externalScreen="$(xrandr | grep -Eo '^.* connected' | grep -v "$laptopScreen" |
|
||||||
|
cut -d ' ' -f 1)"
|
||||||
|
|
||||||
|
pkill compton
|
||||||
|
xrandr --output "$laptopScreen" --primary --mode 1920x1080 --pos 0x0 --rotate normal --output "$externalScreen" --mode 1920x1080 --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
|
||||||
|
|
|
@ -1,2 +1,9 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
xrandr --output eDP-1 --primary --mode 1920x1080 --pos 1920x0 --rotate normal --output DP-1 --off --output HDMI-1 --off --output DP-2 --off --output HDMI-2 --mode 1920x1080 --pos 0x0 --rotate normal
|
|
||||||
|
laptopScreen="eDP-1"
|
||||||
|
externalScreen="$(xrandr | grep -Eo '^.* connected' | grep -v "$laptopScreen" |
|
||||||
|
cut -d ' ' -f 1)"
|
||||||
|
|
||||||
|
pkill compton
|
||||||
|
xrandr --output "$laptopScreen" --primary --mode 1920x1080 --pos 1920x0 --rotate normal --output "$externalScreen" --mode 1920x1080 --pos 0x0 --rotate normal
|
||||||
|
/usr/bin/compton --config "$HOME/.config/picom/picom.conf" & disown
|
||||||
|
|
|
@ -1,2 +1,9 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
xrandr --output eDP-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DP-1 --off --output HDMI-1 --off --output DP-2 --off --output HDMI-2 --mode 1920x1080 --pos 0x0 --rotate normal
|
|
||||||
|
laptopScreen="eDP-1"
|
||||||
|
externalScreen="$(xrandr | grep -Eo '^.* connected' | grep -v "$laptopScreen" |
|
||||||
|
cut -d ' ' -f 1)"
|
||||||
|
|
||||||
|
pkill compton
|
||||||
|
xrandr --output "$laptopScreen" --primary --mode 1920x1080 --pos 0x0 --rotate normal --output "$externalScreen" --mode 1920x1080 --pos 0x0 --rotate normal
|
||||||
|
/usr/bin/compton --config "$HOME/.config/picom/picom.conf" & disown
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue