Ajout fichiers de conf
This commit is contained in:
28
configfiles/etc/X11/doublescreen.sh
Normal file
28
configfiles/etc/X11/doublescreen.sh
Normal file
@@ -0,0 +1,28 @@
|
||||
nbscreen=$(xrandr| grep -e " connected"| wc -l)
|
||||
|
||||
#Si il y a 2 écrans
|
||||
if [ $nbscreen -eq 2 ]; then
|
||||
|
||||
#On récupere le nom de l'ecran
|
||||
screen1=$(xrandr| grep -m1 " connected"| cut -d' ' -f1)
|
||||
screen2=$(xrandr| grep -m2 " connected"| sed -n '2p'| cut -d' ' -f1)
|
||||
|
||||
#Ainsi que leur resolution maximale
|
||||
reso1=$(xrandr| grep -m1 "[ *]+"| cut -d' ' -f4)
|
||||
reso2=$(xrandr| grep -m2 "[ *]+"| sed -n '2p'| cut -d' ' -f4)
|
||||
|
||||
if [ -n $screen1 ] || [ -n $screen2 ]; then
|
||||
#Si les deux nom d'écrans ne sont pas vide, on met leur meilleur résolution
|
||||
xrandr --output $screen1 --mode $reso1
|
||||
xrandr --output $screen2 --mode $reso2
|
||||
|
||||
#Et on met l'écran principal a gauche de l'ecran plat phillips
|
||||
if [ $reso1 == "1366x768" ]; then
|
||||
xrandr --output $screen2 --left-of $screen1
|
||||
else
|
||||
xrandr --output $screen1 --left-of $screen2
|
||||
fi
|
||||
|
||||
fi
|
||||
fi
|
||||
|
18
configfiles/etc/X11/xorg.conf
Normal file
18
configfiles/etc/X11/xorg.conf
Normal file
@@ -0,0 +1,18 @@
|
||||
# Pour clavier azerty
|
||||
Section "InputClass"
|
||||
Identifier "Keyboard Defaults"
|
||||
MatchIsKeyboard "yes"
|
||||
Option "XkbLayout" "fr"
|
||||
EndSection
|
||||
|
||||
# Pour la résolution du 22"
|
||||
Section "Screen"
|
||||
Identifier "Screen0"
|
||||
Device "Device0"
|
||||
Monitor "Monitor0"
|
||||
DefaultDepth 24
|
||||
SubSectionSub "Display"
|
||||
Depth 24
|
||||
Modes "1680x1050" "1280x1024" "1152x864" "1024x768" "800x600"
|
||||
EndSubSection
|
||||
EndSection
|
6
configfiles/etc/X11/xorg.conf.d/10-keyboard-layout.conf
Normal file
6
configfiles/etc/X11/xorg.conf.d/10-keyboard-layout.conf
Normal file
@@ -0,0 +1,6 @@
|
||||
Section "InputClass"
|
||||
Identifier "keyboard Layout"
|
||||
MatchIsKeyboard "on"
|
||||
Option "XkbLayout" "fr, de, se"
|
||||
Option "XkbOptions" "grp:shifts_toggle"
|
||||
EndSection
|
3
configfiles/etc/X11/xorg.conf.d/20-radeon.conf
Normal file
3
configfiles/etc/X11/xorg.conf.d/20-radeon.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
Section \"DRI\"
|
||||
Mode 0666
|
||||
EndSection
|
Reference in New Issue
Block a user