Skip to content

Instantly share code, notes, and snippets.

@alan-mushi
Last active December 31, 2015 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alan-mushi/8046384 to your computer and use it in GitHub Desktop.
Save alan-mushi/8046384 to your computer and use it in GitHub Desktop.
My archlinux setup on Dell Vostro 3460

Environnement graphique

Driver vidéo & touchpad

Driver Intel, supprimer les autres si ils ont été ajoutés

# pacman -S xf86-video-intel xf86-input-synaptics

xfce

# pacman -S XXXX

Effet négatif sur l'écran

xcalib -i -a

Activer le controle du son avec les touches

Ajouter les raccourcis suivants :

Commande                   | Raccourci
--------------------------------------------------
amixer set Master 5%-      | XF86AudioLowerVolume
amixer set Master 5%+      | XF86AudioRaiseVolume
amixer set Master toggle   | XF86AudioMute

NetworkManager applet

# pacman -S gnome-keyring network-manager-applet networkmanager{,-openvpn} xfce4-notifyd
# systemctl enable NetworkManager
# systemctl start NetworkManager

Nautilus

# pacman -S nautilus-open-terminal nautilus

Supprimer sur pression de [Suppr] (et non [Maj] + [Suppr])

Fichier de patch :

--- ~/.config/nautilus/accels	2013-08-23 14:00:03.496077477 +0200
+++ ~/.config/nautilus/accels	2013-08-23 14:03:07.762752115 +0200
@@ -5 +5 @@
-; (gtk_accel_path "<Actions>/DirViewActions/Trash" "<Primary>Delete")
+(gtk_accel_path "<Actions>/DirViewActions/Trash" "Delete")

Son

# pacman -S pulseaudio{,-alsa} alsa{-plugins,utils}

alsamixer

Par défaut alsa est installé avec un mute, retirer le mute :

$ amixer sset Master unmute
$ sudo alsactl store

Quand on effectue l'action mute puis unmute, le son n'est plus disponible. Le problème vient de pulseaudio, il faut créer le fichier /etc/asound.conf :

pcm.pulse {
	type pulse
}
ctl.pulse {
	type pulse
}
pcm.!default {
	type pulse
}
ctl.!default {
	type pulse
}

Polices

# pacman -S xorg-fonts-type1 ttf-dejavu artwiz-fonts font-bh-ttf \
          font-bitstream-speedo gsfonts sdl_ttf ttf-bitstream-vera \
          ttf-cheapskate ttf-liberation

Authentification pour démarrer sur la session graphique

Depuis la console

Ajouter au fichier ~/.bash_profile

[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx

Slim

# yaourt -S slim-unicode

Config générale slim

Fichier patch :

--- /etc/slim.conf	2013-08-23 02:00:00.000000000 +0200
+++ /etc/slim.conf	2013-08-23 13:19:18.519305049 +0200
@@ -70,3 +70,3 @@
 # for avoid pre-loading the username.
-#default_user        simone
+default_user        thibault
 
@@ -74,3 +74,3 @@
 # Set to "yes" to enable this feature
-#focus_password      no
+focus_password      yes
 
@@ -83,3 +83,4 @@
 # randomly choose from
-current_theme       default
+current_theme       archlinux-darch-grey,archlinux-darch-white,archlinux-retro,archlinux-simplyblack,archlinux-soft-grey
+

Clavier avec un layout fr avec slim :

Créer le fichier /etc/X11/xorg.conf.d/10-keyboard-layout.conf

Section "InputClass"
    Identifier         "Keyboard Layout"
    MatchIsKeyboard    "yes"
    MatchDevicePath    "/dev/input/event*"
    Option             "XkbLayout"  "fr"
    Option             "XkbVariant" "latin9" # accès aux caractères spéciaux plus logique avec "Alt Gr" (ex : « » avec "Alt Gr" w x)
EndSection

## Style GTK3 & GTK2

# yaourt -S adwaita-x-dark-and-light-theme gnome-themes-standard

## Des icones/appercus pour les vidéos avec nautilus

# yaourt -S ffmpegthumbnailer

Ignorer quand le clapot est rabattu

Power-related ACPI events can be configured using systemd via options from /etc/systemd/logind.conf to give control to xfce4-power-manager. /etc/systemd/logind.conf

HandlePowerKey=ignore
HandleSuspendKey=ignore
HandleHibernateKey=ignore
HandleLidSwitch=ignore

Git

$ yaourt -S git
$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com
$ git config --global color.ui true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment