Line 0
Link Here
|
|
|
1 |
#!/bin/sh |
2 |
|
3 |
userxrandr="$HOME/.Xrandr" |
4 |
sysxrandr=/etc/X11/xinit/Xrandr |
5 |
|
6 |
xrandr | fgrep -qs "^default connected" && |
7 |
RANDR_IN_USE= || |
8 |
RANDR_IN_USE=yes |
9 |
|
10 |
[ -n "$RANDR_IN_USE" -a -s "$sysxrandr" ] && |
11 |
xrandr `cat "$sysxrandr"` |
12 |
|
13 |
[ -n "$RANDR_IN_USE" -a -s "$userxrandr" ] && |
14 |
xrandr `cat "$userxrandr"` |
15 |
|
16 |
exit 0 |