Ajout fichiers de conf

This commit is contained in:
2024-09-04 22:29:03 +02:00
parent 12da17b88d
commit 00321c2e8a
95 changed files with 36638 additions and 3090 deletions

View 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

View 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

View File

@@ -0,0 +1,6 @@
Section "InputClass"
Identifier "keyboard Layout"
MatchIsKeyboard "on"
Option "XkbLayout" "fr, de, se"
Option "XkbOptions" "grp:shifts_toggle"
EndSection

View File

@@ -0,0 +1,3 @@
Section \"DRI\"
Mode 0666
EndSection