Etant donné que tu ne maîtrises pas encore toutes les subtilités à propos du fonctionnement du système de base, il serait effectivement préférable que tu lises un maximum d'informations sur les différents paquets installés. Ou bien, si tu n'as pas trop le temps et que tu veux installer un système clé-en-main avec une base debian et openbox, soit tu installes debian+lxde (mais tu auras la barre de tâches lxtask et non tint2 par défaut + autres progs préinstallés), soit tu installes la distribution bunsenlabs. Sinon, il existe archlabs (qui est une archlinux + openbox) mais je ne l'ai jamais testée.
Mais si tu veux quand même mettre les mains dans le cambouis, voici mes notes personnelles pour l'installation d'un système debian Jessie + openbox (ça ne devrait pas être fort différent pour la version Stretch). C'est un brouillon! J'ai également supprimé et modifié plusieurs parties. Désolé, tout est mélangé et pas vraiment mise en page mais ça peut être une bonne base pour faire tes tests.
ÉTAPES POUR INSTALLATION DEBIAN + OPENBOX
-----------------------------------------
// suivre les étapes normales mais ne rien cocher à la fin de l'installation lors du taskel
//lors du redémarrage de la console, commencer par rajouter les dépôts contrib, non-free et éventuellement le dépôt backports + commenter si installation à partir d'un cdrom et commenter les lignes des sources si non utilisées
su
nano /etc/apt/sources.list
// ça doit donner plus ou moins ça:
# deb cdrom:[Debian GNU/Linux 8 _Jessie_ - Official Snapshot i386 LIVE/INSTALL Binary 20150606-18:59]/ jessie contrib main non-free
# deb cdrom:[Debian GNU/Linux 8 _Jessie_ - Official Snapshot i386 LIVE/INSTALL Binary 20150606-18:59]/ jessie contrib main non-free
deb http://http.debian.net/debian jessie main contrib non-free
deb http://http.debian.net/debian jessie-updates main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
#deb-src http://security.debian.org/ jessie/updates main contrib non-free
#
#Backports
deb http://ftp.debian.org/debian jessie-backports main contrib non-free
# ou pour une redirection automatique de miroir:
#deb http://httpredir.debian.org/debian jessie-backports main contrib non-free
Ctrl+o enter puis Ctrl+x
apt-get update
Ctrl + d (ou exit) pour fermer root
// Se connecter à internet
--------------------------
// Si la connection câblée ou wifi ne fonctionne pas d'emblée, il faudra modifier le fichier de configuration de l'interface réseau:
su
nano /etc/network/interfaces
// Pour une connection via le câble réseau RJ45:
// source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
#
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
ou
// Pour une connection via WIFI (remplacer mon.reseau.wifi et mon.code.wifi par les bons identifiants)
// source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
#
# Wifi Network Interface
auto wlan0
iface wlan0 inet dhcp
wpa-ssid mon.reseau.wifi
wpa-psk mon.code.wifi
// Eventuellement passer à un noyau plus récent:
------------------------------------------------
// Cela peut régler des problèmes de clavier (ex: touches fn non fonctionnelles), des problèmes d'affichage (ex: carte graphique non fonctionnelle/ non optimisée),...
apt-get update && apt-get -t jessie-backports install linux-image-amd64
// et redémarrer
// installer les drivers essentiels via "su":
----------------------------------------------
// En fonction de votre configuration matérielle, installer:
// Les paquets wifi (je crois que ceux-ci sont déjà installés par debian)
apt-get install iw wpasupplicant
// Les drivers wifi realteck
apt-get install firmware-realtek
// Les drivers wifi ralink
apt-get install firmware-ralink
// Les drivers wifi intel
apt-get install firmware-iwlwifi
// Les drivers wifi atheros
apt-get install firmware-atheros
// L'ensemble des drivers linux non-free
apt-get install firmware-linux-nonfree
// installer les paquets essentiels et applications toujours avec "su":
-----------------------------------------------------------------------
apt-get install xinit xorg openbox thunar* network-manager* obmenu obconf lxappearance nitrogen scrot suckless-tools xfce4-screenshooter tint2 gtk2-engines* geany file-roller alsa-base alsa-utils gstreamer0.10-alsa gstreamer0.10-plugins-base gstreamer0.10-plugins-good mate-power-manager compton gparted galculator transmission-gtk viewnior conky slim obsession dmz-cursor-theme gsimplecal firefox-esr firefox-esr-l10n-fr pulseaudio pavucontrol htop evince simple-scan
apt-get install audacious mplayer vlc gimp chromium chromium-l10n keepassx numlockx icedove icedove-l10n-fr iceowl-extension iceowl-l10n-fr catfish filezilla pidgin ffmpeg imagemagick
// installer libreoffice provenant des backports
apt-get -t jessie-backports install libreoffice libreoffice-l10n-fr libreoffice-gtk libreoffice-gtk2 libreoffice-style-tango libreoffice-systray libreoffice-gtk3 libreoffice-style-oxygen libreoffice-style-sifr libreoffice-style-breeze
gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad libreoffice-style-hicontrast libreoffice-style-tango
// Autres paquets alternatifs ou complémentaires:
abiword gnumeric fslint exfalso easytag inkscape hedgewars gnome-specimen caca-utils fortune cowsay flashplugin-nonfree icedtea-plugin handbrake audacity xfburn abcde flac lame id3 id3v2 eyed3
// installer le bluetooth (à tester):
bluetooth blueman pulseaudio-module-bluetooth
// installer carte graphique si existante:
https://debian-facile.org/doc:materiel:cartes-graphique:nvidia:accueil
https://debian-facile.org/doc:materiel:cartes-graphique:ati:ati
// installer pnmixer manuellement
// installer plank manuellement
UNE FOIS TOUT TÉLÉCHARGÉ ET INSTALLÉ:
-------------------------------------
// slim autologin:
geany /etc/slim.conf
// décommenter la ligne default_user et remplacer simone par son pseudo
// décommenter la ligne auto_login et remplacer le non par oui
auto_login yes
// pour profiter du pavé numérique dans le gestionnaire de connexion, décommenter également la ligne:
numlock on
// Remodifier le network interfaces en fonction des modifications faites auparavant si on veut utiliser exclusivement network-manager
su
nano /etc/network/interfaces
// Commenter ou supprimer les lignes précédemment modifiées
// installer le pack d'icône office2013 pour libreoffice via deviantart
http://charliecnr.deviantart.com/art/Office-2013-theme-for-LibreOffice-512127527
1. Renommer le fichier zip en "images_office2013.zip" et le copier dans ce dossier:
Windows: C:\Program Files (x86)\LibreOffice 5\share\config\
Linux: /usr/lib/libreoffice/share/config/ and /usr/share/libreoffice/share/config/ (use a symlink)
OS X: LibreOffice/Contents/Resources/config/
2. Ouvrir Libreoffice, aller dans Outils > Options > LibreOffice > Affichage et sélectionner le thème Office2013.
CORRIGER LE TEARING HORIZONTAL:
-------------------------------
su
apt-get update
apt-get install mesa-utils
mkdir /etc/X11/xorg.conf.d/
echo -e 'Section "Device"\n Identifier "Intel Graphics"\n Driver "Intel"\n Option "AccelMethod" "sna"\n Option "TearFree" "true"\nEndSection' | tee /etc/X11/xorg.conf.d/20-intel.conf
- redémarrer l'ordinateur
MODIFIER GRUB POUR RÉDUIRE LE TEMPS D'ATTENTE DU DÉMARRAGE:
-----------------------------------------------------------
su
geany /etc/default/grub
Repérer la ligne “GRUB_TIMEOUT” et éditer comme suit:
GRUB_TIMEOUT=1
Sauvegardez puis lancer dans un terminal:
update-grub
POUR GRAVER DES MP3 AVEC XFBURN:
--------------------------------
installer ces 3 paquets via synaptics:
su
apt-get install gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly
INSTALLER SON IMPRIMANTE:
-------------------------
Pour installer une imprimante sous debian, installer:
su
apt-get install cups cups-client hplip printer-driver-hpcups
Ensuite, rajouter l'utilisateur au groupe en faisant en root (remplacer ponyo par le nom d'utilisateur évidemment):
su
usermod -a -G lpadmin ponyo
Ouvrir son navigateur (iceweasel par exemple) et taper:
localhost:631
Ajouter l'imprimante et la configurer
OU MÉTHODE LÉGÈREMENT DIFFÉRENTE LÀ: http://doc.ubuntu-fr.org/cups
// installer plank manuellement:
--------------------------------
// (changer les url et prendre des plus récentes)
wget -O libplank1_0.11.1-1_amd64.deb http://ftp.de.debian.org/debian/pool/main/p/plank/libplank1_0.11.1-1_amd64.deb
wget -O libplank-common_0.11.1-1_all.deb http://ftp.de.debian.org/debian/pool/main/p/plank/libplank-common_0.11.1-1_all.deb
wget -O plank_0.11.1-1_amd64.deb http://ftp.de.debian.org/debian/pool/main/p/plank/plank_0.11.1-1_amd64.deb
#gdebi libplank1_0.11.1-1_amd64.deb
#gdebi libplank-common_0.11.1-1_all.deb
#gdebi plank_0.11.1-1_amd64.deb
Pour des paquet plus récents:
https://launchpad.net/plank/+packages
// Modifier le .desktop de chromium pour ne pas avoir l'icône dupliquée dans le dock plank
Supprimer ou commenter la ligne:
#StartupWMClass=Chromium
// INSTALLER REDSHIFT:
----------------------
https://debian-facile.org/doc:environnement:redshift
Pour le mode non graphique, installer le paquet redshift:
su
apt install redshift
Créer le fichier de configuration via le terminal user:
touch ~/.config/redshift.conf
et y copier ceci:
; Configuration globale de redshift
[redshift]
; Régler la température de couleur "Jour" et "Nuit"
temp-day=5700
temp-night=3500
; Activer/Désactiver une transition douce entre jour et nuit
; 0 causera un changement direct depuis la température de couleur jour vers nuit
; 1 entrainera une augmentation ou diminution graduelle de la température de couleur
transition=1
; Régler la luminosité de l'écran. La valeur par défaut est 1.0.
;brightness=0.9
; Il est également possible d'utiliser des réglages différents pour le jour et la nuit depuis la version 1.8.
brightness-day=1
brightness-night=0.6
; Régler le gamma de l'écran (pour toutes les couleurs ou chaque canal de couleur individuellement)
;gamma=0.8
;gamma=0.8:0.7:0.8
; Ceci peut également être réglé individuellement pour le jour et la nuit depuis la version 1.10.
;gamma-day=0.8:0.7:0.8
;gamma-night=0.6
; Choisir le fournisseur de position/géoinformation : 'geoclue', 'geoclue2', 'manual'
; taper 'redshift -l list' pour voir toutes les valeurs possibles
; L'ajustement des paramètres de localisation se trouve dans une section différente.
location-provider=manual
; Choisir la méthode d'ajustement : "randr", "vidmode"
; taper "redshift -m list" pour voir toutes les valeurs possibles.
; "randr" est la méthode recommandée, "vidmode" est une API plus ancienne, mais qui fonctionne dans certains cas où "randr" ne fonctionne pas.
; Les paramètres de la méthode d'ajustement sont dans une section différente.
adjustment-method=randr
; Configuration du fournisseur position/géoinformation
; taper 'redshift -l PROVIDER:help' pour voir les réglages
; ex: 'redshift -l manual:help'
; N'oubliez pas que les longitudes à l'ouest de Greenwich (Amérique notamment) sont des nombres négatifs.
; Pour Charleroi, c'est
[manual]
lat=50.40
lon=4.43
; Configuration de la méthode d'ajustement
; taper 'redshift -m METHOD:help' pour voir les réglages
; ex: 'redshift -m randr:help'
;Dans cet exemple, randr est configuré pour ajuster l'écran 0
; Noter que la numérotation commence à 0, donc, il s'agit du
; premier écran. Pour n'ajuster que le second écran, on aurait
; mis screen=1. Si l'option n'est pas spécifiée Redshift essaiera
; d'ajuster tous les écrans
[randr]
screen=0
=====================================================================
Ensuite, lancer redshift via:
nohup redshift
Et pour finir, créer un raccourci dans /usr/share/applications/redshift-switch.desktop pour pouvoir rajouter un raccourci dans le dock plank afin d'activer ou de désactiver redshift:
[Desktop Entry]
Version=1.0
Name=Redshift Switch
Type=Application
Comment=Toggle on or off
Terminal=true
Exec=pkill -USR1 redshift
Icon=dconf-editor
Categories=ConsoleOnly;System;
GenericName=Screen configuration
Trouver si moyen de désactiver redshift lorsqu'une application est lancée (par exemple vlc) (rajouter des arguments dans le lanceur de vlc ou rajouter des paramètres dans le fichier configuraiton de redshift?)
// CONFIGURER COMPTON:
----------------------
Dans le dossier .config du dossier home/USER, créer un fichier .comptonrc (ou copier le fichier de configuration en annexe pour aller plus vite) et copier les paramètres ci-dessous:
#################################
#
# Backend
#
#################################
# Backend to use: "xrender" or "glx".
# GLX backend is typically much faster but depends on a sane driver.
backend = "glx";
#################################
#
# GLX backend
#
#################################
glx-no-stencil = true;
# GLX backend: Copy unmodified regions from front buffer instead of redrawing them all.
# My tests with nvidia-drivers show a 10% decrease in performance when the whole screen is modified,
# but a 20% increase when only 1/4 is.
# My tests on nouveau show terrible slowdown.
# Useful with --glx-swap-method, as well.
glx-copy-from-front = false;
# GLX backend: Use MESA_copy_sub_buffer to do partial screen update.
# My tests on nouveau shows a 200% performance boost when only 1/4 of the screen is updated.
# May break VSync and is not available on some drivers.
# Overrides --glx-copy-from-front.
# glx-use-copysubbuffermesa = true;
# GLX backend: Avoid rebinding pixmap on window damage.
# Probably could improve performance on rapid window content changes, but is known to break things on some drivers (LLVMpipe).
# Recommended if it works.
# glx-no-rebind-pixmap = true;
# GLX backend: GLX buffer swap method we assume.
# Could be undefined (0), copy (1), exchange (2), 3-6, or buffer-age (-1).
# undefined is the slowest and the safest, and the default value.
# copy is fastest, but may fail on some drivers,
# 2-6 are gradually slower but safer (6 is still faster than 0).
# Usually, double buffer means 2, triple buffer means 3.
# buffer-age means auto-detect using GLX_EXT_buffer_age, supported by some drivers.
# Useless with --glx-use-copysubbuffermesa.
# Partially breaks --resize-damage.
# Defaults to undefined.
glx-swap-method = "undefined";
#################################
#
# Shadows
#
#################################
# Enabled client-side shadows on windows.
shadow = true;
# Don't draw shadows on DND windows.
no-dnd-shadow = true;
# Avoid drawing shadows on dock/panel windows.
no-dock-shadow = true;
# Zero the part of the shadow's mask behind the window. Fix some weirdness with ARGB windows.
clear-shadow = true;
# The blur radius for shadows. (default 12)
shadow-radius = 5;
# The left offset for shadows. (default -15)
shadow-offset-x = -5;
# The top offset for shadows. (default -15)
shadow-offset-y = -5;
# The translucency for shadows. (default .75)
shadow-opacity = 0.5;
# Set if you want different colour shadows
# shadow-red = 0.0;
# shadow-green = 0.0;
# shadow-blue = 0.0;
# The shadow exclude options are helpful if you have shadows enabled. Due to the way compton draws its shadows, certain applications will have visual glitches
# (most applications are fine, only apps that do weird things with xshapes or argb are affected).
# This list includes all the affected apps I found in my testing. The "! name~=''" part excludes shadows on any "Unknown" windows, this prevents a visual glitch with the XFWM alt tab switcher.
shadow-exclude = [
"! name~=''",
"name = 'Notification'",
"name = 'Plank'",
"name = 'Docky'",
"name = 'Kupfer'",
"name = 'xfce4-notifyd'",
"name *= 'VLC'",
"name *= 'Evince'",
"name *= 'compton'",
"name *= 'Chromium'",
"name *= 'Chrome'",
"name *= 'Nautilus'",
"name *= 'Firefox'",
"class_g = 'Conky'",
"class_g = 'Kupfer'",
"class_g = 'Synapse'",
"class_g ?= 'Notify-osd'",
"class_g ?= 'Cairo-dock'",
"class_g ?= 'Xfce4-notifyd'",
"class_g ?= 'Xfce4-power-manager'"
];
# Avoid drawing shadow on all shaped windows (see also: --detect-rounded-corners)
shadow-ignore-shaped = false;
#################################
#
# Opacity
#
#################################
menu-opacity = 1;
inactive-opacity = 0.7;
active-opacity = 1;
frame-opacity = 0.8;
inactive-opacity-override = false;
alpha-step = 0.06;
# Dim inactive windows. (0.0 - 1.0)
# inactive-dim = 0.2;
# Do not let dimness adjust based on window opacity.
# inactive-dim-fixed = true;
# Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred.
# blur-background = true;
# Blur background of opaque windows with transparent frames as well.
blur-background-frame = true;
# Do not let blur radius adjust based on window opacity.
blur-background-fixed = false;
blur-background-exclude = [
"window_type = 'dock'",
"window_type = 'desktop'"
];
#################################
#
# Fading
#
#################################
# Fade windows during opacity changes.
fading = true;
# The time between steps in a fade in milliseconds. (default 10).
fade-delta = 4;
# Opacity change between steps while fading in. (default 0.028).
fade-in-step = 0.03;
# Opacity change between steps while fading out. (default 0.03).
fade-out-step = 0.03;
# Fade windows in/out when opening/closing
# no-fading-openclose = true;
# Specify a list of conditions of windows that should not be faded.
fade-exclude = [ ];
#################################
#
# Other
#
#################################
# Try to detect WM windows and mark them as active.
mark-wmwin-focused = true;
# Mark all non-WM but override-redirect windows active (e.g. menus).
mark-ovredir-focused = true;
# Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused instead of using FocusIn/Out events.
# Usually more reliable but depends on a EWMH-compliant WM.
use-ewmh-active-win = true;
# Detect rounded corners and treat them as rectangular when --shadow-ignore-shaped is on.
detect-rounded-corners = true;
# Detect _NET_WM_OPACITY on client windows, useful for window managers not passing _NET_WM_OPACITY of client windows to frame windows.
# This prevents opacity being ignored for some apps.
# For example without this enabled my xfce4-notifyd is 100% opacity no matter what.
detect-client-opacity = true;
# Specify refresh rate of the screen.
# If not specified or 0, compton will try detecting this with X RandR extension.
refresh-rate = 0;
# Set VSync method. VSync methods currently available:
# none: No VSync
# drm: VSync with DRM_IOCTL_WAIT_VBLANK. May only work on some drivers.
# opengl: Try to VSync with SGI_video_sync OpenGL extension. Only work on some drivers.
# opengl-oml: Try to VSync with OML_sync_control OpenGL extension. Only work on some drivers.
# opengl-swc: Try to VSync with SGI_swap_control OpenGL extension. Only work on some drivers. Works only with GLX backend. Known to be most effective on many drivers. Does not actually control paint timing, only buffer swap is affected, so it doesn’t have the effect of --sw-opti unlike other methods. Experimental.
# opengl-mswc: Try to VSync with MESA_swap_control OpenGL extension. Basically the same as opengl-swc above, except the extension we use.
# (Note some VSync methods may not be enabled at compile time.)
vsync = "opengl-swc";
# Enable DBE painting mode, intended to use with VSync to (hopefully) eliminate tearing.
# Reported to have no effect, though.
dbe = false;
# Painting on X Composite overlay window. Recommended.
paint-on-overlay = true;
# Limit compton to repaint at most once every 1 / refresh_rate second to boost performance.
# This should not be used with --vsync drm/opengl/opengl-oml as they essentially does --sw-opti's job already,
# unless you wish to specify a lower refresh rate than the actual value.
sw-opti = false;
# Unredirect all windows if a full-screen opaque window is detected, to maximize performance for full-screen windows, like games.
# Known to cause flickering when redirecting/unredirecting windows.
# paint-on-overlay may make the flickering less obvious.
unredir-if-possible = true;
# Specify a list of conditions of windows that should always be considered focused.
focus-exclude = [ ];
# Use WM_TRANSIENT_FOR to group windows, and consider windows in the same group focused at the same time.
detect-transient = true;
# Use WM_CLIENT_LEADER to group windows, and consider windows in the same group focused at the same time.
# WM_TRANSIENT_FOR has higher priority if --detect-transient is enabled, too.
detect-client-leader = true;
#################################
#
# Window type settings
#
#################################
wintypes:
{
tooltip =
{
# fade: Fade the particular type of windows.
fade = true;
# shadow: Give those windows shadow
shadow = false;
# opacity: Default opacity for the type of windows.
opacity = 0.85;
# focus: Whether to always consider windows of this type focused.
focus = true;
};
};
=========================================================================================================
Ensuite, il est possible qu'il faille résoudre le problème d'affichage des ombres avec les applications gtk3 (si le thème utilisé n'a pas bien été codé). Pour ce faire:
- créer un fichier "gtk.css" dans le dossier ~/.config/gtk-3.0/ (s'il n'existe pas déjà)
- éditer le fichier ~/.config/gtk-3.0/gtk.css et y copier:
.window-frame {
box-shadow: none;
margin: 0;
}
Je suppose qu'il est possible de rajouter cette classe dans le fichier de configuration du thème et ainsi corriger le thème plutôt que de créer ce fichier. Mais dans le cas où on change de thème régulièrement, le problème reviendra également. Chose à tester.
-------------------------------------------------------------------------------------------------------------------------
// modifier le swap au minimum pour les hdd (sinon désactiver le swap pour ssd si assez de ram --> voir ci-dessous fstab)
-------------------------------------------------------------------------------------------------------------------------
su
sysctl vm.swappiness=0
Ensuite désactivez puis réactivez la swap pour que les changements deviennent actifs :
su
swapoff -av
su
swapon -av
Pour que ces changements deviennent permanents (à chaque démarrage), il faut éditer le fichier /etc/sysctl.conf et y ajouter la ligne suivante:
vm.swappiness = 0
Donc:
su
geany /etc/sysctl.conf
-----------------------------------------
// OPTIMISER SA CONFIGURATION POUR SSD
-----------------------------------------
// MODIFIER LE FSTAB:
---------------------
su
geany /etc/fstab
// Désactiver le swap:
// Toujours dans le fstab, nous allons désactiver la partition swap (si vous en avez une), toujours dans le but de limiter au possible les écritures sur le SSD. Pour cela il suffit de commenter la ligne de montage du swap :
UUID=bd746caf-bd0c-4649-baa7-d680bb91a6d0 swap swap defaults 0 0
Devient :
#UUID=bd746caf-bd0c-4649-baa7-d680bb91a6d0 swap swap defaults 0 0
// Activer le TRIM:
Pour activer le TRIM il suffit d'ajouter l'option « discard » à chaque partition.
Par exemple :
UUID=f4e8fefd-e4f1-4763-b7ab-a6fa291f0837 / ext4 errors=remount-ro 0 1
Devient :
UUID=f4e8fefd-e4f1-4763-b7ab-a6fa291f0837 / ext4 discard 0 1
// Supprimer la journalisation de lecture:
On reste dans /etc/fstab et on en profite pour ajouter l'option « noatime » qui supprimera la journalisation de lecture, afin de préserver la durée de vie du SSD . Chaque partition sera donc comme suit dans le fstab :
UUID=f4e8fefd-e4f1-4763-b7ab-a6fa291f0837 / ext4 discard,noatime 0 1
// Fichiers temporaires en RAM:
Et pour finir avec le fstab, on peut y ajouter le montage des fichiers temporaires (qui sont lus et écrits fréquemments) en RAM plutôt que sur le SSD. Pour cela, on ajoute à la fin du fstab :
#temp file settings
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
tmpfs /var/log tmpfs defaults,noatime,mode=0755 0 0
tmpfs /var/tmp tmpfs defaults,noatime,mode=1777 0 0
tmpfs /var/spool tmpfs defaults,noatime,mode=1777 0 0
// Monter le cache Firefox en RAM:
# Montage cache Firefox en Ram
tmpfs /home/sharkira/.cache/mozilla tmpfs nodev,nosuid 0 0
Sauvegarder et redémarrer le PC.
// Changer de planificateur:
Voilà, votre SSD n'aura que le strict minimum à écrire, et le TRIM est activé. La dernière étape consiste à changer le I/O scheduler (ordonnateur/planificateur des entrées/sorties), par défaut en CFQ (Completely Fair Queuing), en noop ou deadline, beaucoup plus efficaces avec un SSD. (noop est le plus efficace pour moi, à vous de tester).
- Ouvrir /etc/grub.d/10_linux en root
- Ligne 82 (en stable, il est possible qu'en testing la ligne ne soit pas la même) se trouve:
linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args}
- Qu'il faut modifier comme suit:
linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro elevator=deadline ${args}
ou
linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro elevator=noop ${args}
- Puis dans un terminal:
su
update-grub
============================================================================================================================
// MODIFIER LE FSTAB POUR PRENDRE EN COMPTE LA PARTITION WINDOWS:
-----------------------------------------------------------------
https://help.ubuntu.com/community/Fstab
https://debian-facile.org/doc:systeme:fstab
Examiner la table de partition:
su
fdisk -l
Examiner les références UUID des partitions:
su
blkid
Il faut commencer par créer un répertoire qui servira de point de montage. Le répertoire par défaut est /media mais on peut utiliser n'importe quelle "destination" de la partition comme point de montage, comme par exemple /mnt.
Créeons par exemple notre point de montage dans /media
su
mkdir /media/windows
Éditer le fichier fstab pour rajouter la ligne de montage
su
geany /etc/fstab
rajouter quelque chose de ce style en modifiant le UUID donné par blkid
# Montage windows
UUID=MONUUIDDONNEPARBLKID /media/windows ntfs-3g defaults 0 0
ce qui donne ceci pour mon fstab du dell e4300:
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda2 during installation
UUID=005db744-8e10-462b-bd1e-d8bb8493fe9b / ext4 noatime,errors=remount-ro 0 1
# /home was on /dev/sda4 during installation
UUID=deeab85a-6e77-46a5-932d-a7ed7575533c /home ext4 defaults,noatime,errors=remount-ro 0 2
# swap was on /dev/sda3 during installation
UUID=8e0d5656-3f98-4022-836b-9803255ff655 none swap sw 0 0
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
# Montage windows
UUID=4CF4F0CDF4F0BA72 /media/windows ntfs-3g defaults 0 0
# Montage /tmp en Ram
tmpfs /tmp tmpfs nodev,nosuid 0 0
# Montage cache Firefox en Ram
tmpfs /home/pokoala/.cache/mozilla tmpfs nodev,nosuid 0 0
tmpfs /var/log tmpfs defaults,nosuid,nodev,noatime,mode=0755,size=5% 0 0
// installer de nouvelles polices de caractères:
------------------------------------------------
après les avoir mises dans /usr/share/fonts, faire un:
su
fc-cache -f -v
Si, après redémarrage (ou rechargement), les caractères s'affichent mal (écran de connexion au système, par exemple), il s'agit très vraisemblablement d'une question de droits d'accès aux fichiers. Pour corriger cela :
Relancer le système en mode réparation,
Passer en mode console,
Aller dans le répertoire où les polices de caractères viennent d'être placées,
Lancer la commande :
chmod a+r *
Redémarrer le système.
Mettons ceci en pratique en installant mes fonts personnelles et des webfonts telles que FontAwesome --> cfr dossier annexe.
// configurer audacious:
------------------------
AUDIO:
cocher Activer "Replay Gain"
cocher Éviter l'écrêtage
Amplifier tous les fichiers -3.0
Amplifier tous les fichiers sans label: -9.0
MODULES D'EXTENSION > EFFETS AUDIO
Sample rate converter: 44100 partout
Crossfade: 6
- Mettre dans la partie "Liste de lecture", le format de titre: ARTISTE - TITRE
- MODULES: - lyricWiki
ÉGALISEUR (ctrl+e):
(0) -2 0 0 0 -3 2 1 3 7 0
Astuce: déplacer en masse des fichiers dans des sous-répertoires:
-----------------------------------------------------------------
Commande à executer dans le terminal en remplacant évidemment "mondossier" et le dossier destination "/tmp/":
find $HOME/mondossier -type f -exec mv {} $HOME/tmp/ \;
On peut faire un test sans déplacer en faisant:
find $HOME/mondossier -type f
// pour firefox, installer les extensions noscript, stylish, privacybadger et ublockorigin
// pour firefox, changer le thème général en installant FT DeepDark
// pour firefox, optimiser pour ssd
about:config
mettre browser.cache.disk.enable à false. Ca désactive le cache disque et utilise uniquement le cache ram.
// pour firefox, rajouter l'ouverture des fichiers .torrent et magnet
about:config
Right click > New > Boolean
You need to enter new boolean value called "network.protocol-handler.expose.magnet" (without " ") and set it to false.
Une fois qu'on click sur un lien magnet > choisir une application et mettre le chemin du programme, c'est-à-dire:
/usr/bin/transmission
et cocher "se souvenir de mon choix" ou qqch comme ça
// pour firefox, changer les paramètres pour navigation privée, les couleurs, etc.
// pour firefox, changer les moteurs de recherche par défaut >> duckduckgo.com + ecosia.org + startpage.com
// pour firefox, importer les favoris
// pour icedove (thunderbird), changer le thème général en installant celui de TT DeepDark
// pour icedove (thunderbird), installer les extensions CompactHeader et MinimizeToTray revived (MiniTrayR)
// dans /usr/share/applications/mimeinfo.cache j'ai retiré audacious.desktop;org.gnome.Nautilus.desktop; et j'ai retiré aussi inode/directory ou x-inodemachinbidulejesaispluscommentctecrit de audacious.desktop
// MODIFIER OU CRÉER LE FICHIER AUTOSTART:
------------------------------------------
## Openbox autostart.sh
## ====================
## Lorsque vous vous cennectez à votre session Openbox,
## ce script autostart s'exécute afin de configurer votre environnement
## et lancer vos applications favorites.
##
## Note*: quelques programmes tels que 'nm-applet'
## sont lancé depuis le fichier OPENBOX-XDG.
## lancer '/usr/lib/openbox/openbox-xdg-autostart --list'
## pour lister les programmes pris en compte par ce dossier.
##
## Plus d'informations:
## http://openbox.org/wiki/Help:Autostart
##
## Si vous configurez un truc cool, n'hésitez pas à le partager sur le forum:
## http://crunchbanglinux-fr.org/forums/
##
## Have fun & happy CrunchBangin'! :)
## Restaurer le fond d'écran
nitrogen --restore &
## Gestionnaire transparence
(sleep 2s && compton --config $HOME/.config/.comptonrc -b) &
## Effets visuels : désactivés par défaut.
## Lancer le panel
tint2 &
## Contrôleur de volume dans la zone de notification
#(sleep 2s && pnmixer) &
pnmixer &
# Activation du pavé numérique
numlockx &
# Dock Plank
plank &
## Touches multi-média
xfce4-volumed &
## Gestionnaire d'énergie
mate-power-manager &
## Lancement du démon thunar
thunar --daemon &
## Détection et configuration du touchpad. voir 'man synclient' pour plus d'infos.
#if egrep -iq 'touchpad' /proc/bus/input/devices; then
# synclient VertEdgeScroll=1 &
# synclient TapButton1=1 &
#fi
## Configuration de la répétition des touches - délai de 250 ms et 25 caractères par seconde.
## Éditer selon vos préférences.
xset r rate 200 25 &
## Désactiver les bips système (je le retire pour le moment car suis pas sûr qu'il y ait des bip)
#xset b off &
## Choix de clavier belge pour compatibilité avec keepassx
setxkbmap be &
## Lancer Redshift
redshift &
// MODIFIER LE FICHIER RC.XML:
------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude">
<resistance>
<strength>10</strength>
<screen_edge_strength>20</screen_edge_strength>
</resistance>
<focus>
<focusNew>yes</focusNew>
<!-- always try to focus new windows when they appear. other rules do
apply -->
<followMouse>no</followMouse>
<!-- move focus to a window when you move the mouse into it -->
<focusLast>yes</focusLast>
<!-- focus the last used window when changing desktops, instead of the one
under the mouse pointer. when followMouse is enabled -->
<underMouse>no</underMouse>
<!-- move focus under the mouse, even when the mouse is not moving -->
<focusDelay>200</focusDelay>
<!-- when followMouse is enabled, the mouse must be inside the window for
this many milliseconds (1000 = 1 sec) before moving focus to it -->
<raiseOnFocus>no</raiseOnFocus>
<!-- when followMouse is enabled, and a window is given focus by moving the
mouse into it, also raise the window -->
</focus>
<placement>
<policy>Smart</policy>
<!-- 'Smart' or 'UnderMouse' -->
<center>yes</center>
<!-- whether to place windows in the center of the free area found or
the top left corner -->
<monitor>Any</monitor>
<!-- with Smart placement on a multi-monitor system, try to place new windows
on: 'Any' - any monitor, 'Mouse' - where the mouse is, 'Active' - where
the active window is, 'Primary' - only on the primary monitor -->
<primaryMonitor>1</primaryMonitor>
<!-- The monitor where Openbox should place popup dialogs such as the
focus cycling popup, or the desktop switch popup. It can be an index
from 1, specifying a particular monitor. Or it can be one of the
following: 'Mouse' - where the mouse is, or
'Active' - where the active window is -->
</placement>
<theme>
<name>Nightmare-01</name>
<titleLayout>DSLIMC</titleLayout>
<!--
avaible characters are NDSLIMC, each can occur at most once.
N: window icon
L: window label (AKA title).
I: iconify
M: maximize
C: close
S: shade (roll up/down)
D: omnipresent (on all desktops).
-->
<keepBorder>yes</keepBorder>
<animateIconify>no</animateIconify>
<font place="ActiveWindow">
<name>Liberation Sans</name>
<size>10</size>
<!-- font size in points -->
<weight>Bold</weight>
<!-- 'bold' or 'normal' -->
<slant>Normal</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="InactiveWindow">
<name>Liberation Sans</name>
<size>10</size>
<!-- font size in points -->
<weight>Normal</weight>
<!-- 'bold' or 'normal' -->
<slant>Normal</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="MenuHeader">
<name>Liberation Sans</name>
<size>10</size>
<!-- font size in points -->
<weight>Normal</weight>
<!-- 'bold' or 'normal' -->
<slant>Normal</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="MenuItem">
<name>Liberation Sans</name>
<size>10</size>
<!-- font size in points -->
<weight>Normal</weight>
<!-- 'bold' or 'normal' -->
<slant>Normal</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="ActiveOnScreenDisplay">
<name>Liberation Sans</name>
<size>10</size>
<!-- font size in points -->
<weight>Normal</weight>
<!-- 'bold' or 'normal' -->
<slant>normal</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="InactiveOnScreenDisplay">
<name>Liberation Sans</name>
<size>10</size>
<!-- font size in points -->
<weight>Normal</weight>
<!-- 'bold' or 'normal' -->
<slant>normal</slant>
<!-- 'italic' or 'normal' -->
</font>
</theme>
<desktops>
<!-- this stuff is only used at startup, pagers allow you to change them
during a session
these are default values to use when other ones are not already set
by other applications, or saved in your session
use obconf if you want to change these without having to log out
and back in -->
<number>2</number>
<firstdesk>1</firstdesk>
<names>
<!-- set names up here if you want to, like this:
<name>desktop 1</name>
<name>desktop 2</name>
-->
<name>1</name>
<name>2</name>
<name>3</name>
<name>4</name>
</names>
<popupTime>875</popupTime>
<!-- The number of milliseconds to show the popup for when switching
desktops. Set this to 0 to disable the popup. -->
</desktops>
<resize>
<drawContents>yes</drawContents>
<popupShow>Nonpixel</popupShow>
<!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
<popupPosition>Center</popupPosition>
<!-- 'Center' or 'Top' -->
<popupFixedPosition>
<!-- these are used if popupPosition is set to 'Fixed' -->
<x>10</x>
<!-- positive number for distance from left edge, negative number for
distance from right edge, or 'Center' -->
<y>10</y>
<!-- positive number for distance from top edge, negative number for
distance from bottom edge, or 'Center' -->
</popupFixedPosition>
</resize>
<!-- You can reserve a portion of your screen where windows will not cover when
they are maximized, or when they are initially placed.
Many programs reserve space automatically, but you can use this in other
cases. -->
<margins>
<top>1</top>
<bottom>0</bottom>
<left>0</left>
<right>0</right>
</margins>
<dock>
<position>TopLeft</position>
<!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
<floatingX>0</floatingX>
<floatingY>0</floatingY>
<noStrut>no</noStrut>
<stacking>Above</stacking>
<!-- 'Above', 'Normal', or 'Below' -->
<direction>Vertical</direction>
<!-- 'Vertical' or 'Horizontal' -->
<autoHide>no</autoHide>
<hideDelay>300</hideDelay>
<!-- in milliseconds (1000 = 1 second) -->
<showDelay>300</showDelay>
<!-- in milliseconds (1000 = 1 second) -->
<moveButton>Middle</moveButton>
<!-- 'Left', 'Middle', 'Right' -->
</dock>
<keyboard>
<chainQuitKey>C-g</chainQuitKey>
<!-- Keybindings for desktop switching -->
<keybind key="C-A-Left">
<action name="GoToDesktop">
<to>left</to>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="C-A-Right">
<action name="GoToDesktop">
<to>right</to>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="C-A-Up">
<action name="GoToDesktop">
<to>up</to>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="C-A-Down">
<action name="GoToDesktop">
<to>down</to>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="S-A-Left">
<action name="SendToDesktop">
<to>left</to>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="S-A-Right">
<action name="SendToDesktop">
<to>right</to>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="S-A-Up">
<action name="SendToDesktop">
<to>up</to>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="S-A-Down">
<action name="SendToDesktop">
<to>down</to>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="W-F1">
<action name="GoToDesktop">
<to>1</to>
</action>
</keybind>
<keybind key="W-F2">
<action name="GoToDesktop">
<to>2</to>
</action>
</keybind>
<keybind key="W-F3">
<action name="GoToDesktop">
<to>3</to>
</action>
</keybind>
<keybind key="W-F4">
<action name="GoToDesktop">
<to>4</to>
</action>
</keybind>
<keybind key="W-d">
<action name="ToggleShowDesktop"/>
</keybind>
<!-- Keybindings for windows -->
<keybind key="A-F4">
<action name="Close"/>
</keybind>
<keybind key="A-Escape">
<action name="Lower"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
</keybind>
<keybind key="A-S-d">
<action name="ToggleDecorations"/>
</keybind>
<keybind key="A-space">
<action name="ShowMenu">
<menu>client-menu</menu>
</action>
</keybind>
<keybind key="Print">
<action name="Execute">
<command>xfce4-screenshooter</command>
</action>
</keybind>
<keybind key="A-Print">
<action name="Execute">
<command>scrot '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/images/ & viewnior ~/images/$f'</command>
</action>
</keybind>
<!-- Keybindings for window switching -->
<keybind key="A-Tab">
<action name="NextWindow">
<finalactions>
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</finalactions>
</action>
</keybind>
<keybind key="A-S-Tab">
<action name="PreviousWindow">
<finalactions>
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</finalactions>
</action>
</keybind>
<keybind key="C-A-Tab">
<action name="NextWindow">
<panels>yes</panels>
<desktop>yes</desktop>
<finalactions>
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</finalactions>
</action>
</keybind>
<!-- Keybindings for window switching with the arrow keys -->
<keybind key="W-S-Right">
<action name="DirectionalCycleWindows">
<direction>right</direction>
</action>
</keybind>
<keybind key="W-S-Left">
<action name="DirectionalCycleWindows">
<direction>left</direction>
</action>
</keybind>
<keybind key="W-S-Up">
<action name="DirectionalCycleWindows">
<direction>up</direction>
</action>
</keybind>
<keybind key="W-S-Down">
<action name="DirectionalCycleWindows">
<direction>down</direction>
</action>
</keybind>
<!-- Keybindings for running applications -->
<keybind key="A-F2">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>Run Program</name>
</startupnotify>
<command>gmrun</command>
</action>
</keybind>
<keybind key="A-F3">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>dmenu-bind</name>
</startupnotify>
<command>~/.config/dmenu/dmenu-bind.sh</command>
</action>
</keybind>
<keybind key="W-f">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>thunar</name>
</startupnotify>
<command>thunar</command>
</action>
</keybind>
<keybind key="W-t">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>Terminal</name>
</startupnotify>
<command>xterm</command>
</action>
</keybind>
<keybind key="W-w">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>Firefox</name>
</startupnotify>
<command>firefox-esr</command>
</action>
</keybind>
<keybind key="W-g">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>Google Chrome</name>
</startupnotify>
<command>google-chrome-stable --incognito</command>
</action>
</keybind>
<keybind key="W-l">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>Lock screen</name>
</startupnotify>
<command>cb-lock</command>
</action>
</keybind>
<keybind key="W-e">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>Editor</name>
</startupnotify>
<command>geany</command>
</action>
</keybind>
<keybind key="W-c">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>Galculator</name>
</startupnotify>
<command>galculator</command>
</action>
</keybind>
<keybind key="W-a">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>Audacious</name>
</startupnotify>
<command>audacious</command>
</action>
</keybind>
<keybind key="W-k">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>KeepassX</name>
</startupnotify>
<command>keepassx</command>
</action>
</keybind>
<keybind key="W-m">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>Mediaplayer</name>
</startupnotify>
<command>vlc</command>
</action>
</keybind>
<keybind key="W-h">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>htop</name>
</startupnotify>
<command>terminator --command="htop"</command>
</action>
</keybind>
<keybind key="W-v">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>Volume</name>
</startupnotify>
<command>pavucontrol</command>
</action>
</keybind>
<keybind key="W-x">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>Logout</name>
</startupnotify>
<command>obsession-logout</command>
</action>
</keybind>
<keybind key="W-Tab">
<action name="ShowMenu">
<menu>client-list-combined-menu</menu>
</action>
</keybind>
<keybind key="W-space">
<action name="ShowMenu">
<menu>root-menu</menu>
</action>
</keybind>
<keybind key="A-C-q">
<action name="ShowMenu">
<menu>root-menu</menu>
</action>
</keybind>
<!-- A bit of tiling -->
<keybind key="W-Right">
<action name="GrowToEdgeEast"/>
</keybind>
<keybind key="W-Left">
<action name="GrowToEdgeWest"/>
</keybind>
<keybind key="W-Down">
<action name="GrowToEdgeSouth"/>
</keybind>
<keybind key="W-Up">
<action name="GrowToEdgeNorth"/>
</keybind>
<keybind key="W-A-Left">
<action name="Execute">
<command>cb-aerosnap --left</command>
</action>
</keybind>
<keybind key="W-A-Right">
<action name="Execute">
<command>cb-aerosnap --right</command>
</action>
</keybind>
</keyboard>
<mouse>
<dragThreshold>8</dragThreshold>
<!-- number of pixels the mouse must move before a drag begins -->
<doubleClickTime>200</doubleClickTime>
<!-- in milliseconds (1000 = 1 second) -->
<screenEdgeWarpTime>400</screenEdgeWarpTime>
<!-- Time before changing desktops when the pointer touches the edge of the
screen while moving a window, in milliseconds (1000 = 1 second).
Set this to 0 to disable warping -->
<screenEdgeWarpMouse>false</screenEdgeWarpMouse>
<!-- Set this to TRUE to move the mouse pointer across the desktop when
switching due to hitting the edge of the screen -->
<context name="Frame">
<mousebind button="A-Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="A-Left" action="Click">
<action name="Unshade"/>
</mousebind>
<mousebind button="A-Left" action="Drag">
<action name="Move"/>
</mousebind>
<mousebind button="A-Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="A-Right" action="Drag">
<action name="Resize"/>
</mousebind>
<mousebind button="A-Middle" action="Press">
<action name="Lower"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
</mousebind>
<mousebind button="A-Up" action="Click">
<action name="GoToDesktop">
<to>previous</to>
</action>
</mousebind>
<mousebind button="A-Down" action="Click">
<action name="GoToDesktop">
<to>next</to>
</action>
</mousebind>
<mousebind button="C-A-Up" action="Click">
<action name="GoToDesktop">
<to>previous</to>
</action>
</mousebind>
<mousebind button="C-A-Down" action="Click">
<action name="GoToDesktop">
<to>next</to>
</action>
</mousebind>
<mousebind button="A-S-Up" action="Click">
<action name="SendToDesktop">
<to>previous</to>
</action>
</mousebind>
<mousebind button="A-S-Down" action="Click">
<action name="SendToDesktop">
<to>next</to>
</action>
</mousebind>
</context>
<context name="Titlebar">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Left" action="Drag">
<action name="Move"/>
</mousebind>
<mousebind button="Left" action="DoubleClick">
<action name="ToggleMaximize"/>
</mousebind>
<mousebind button="Middle" action="Press">
<action name="Lower"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
</mousebind>
<mousebind button="Up" action="Click">
<action name="if">
<shaded>no</shaded>
<then>
<action name="Shade"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
<action name="Lower"/>
</then>
</action>
</mousebind>
<mousebind button="Down" action="Click">
<action name="if">
<shaded>yes</shaded>
<then>
<action name="Unshade"/>
<action name="Raise"/>
</then>
</action>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="ShowMenu">
<menu>client-menu</menu>
</action>
</mousebind>
</context>
<context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Middle" action="Press">
<action name="Lower"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="ShowMenu">
<menu>client-menu</menu>
</action>
</mousebind>
</context>
<context name="Top">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Left" action="Drag">
<action name="Resize">
<edge>top</edge>
</action>
</mousebind>
</context>
<context name="Left">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Left" action="Drag">
<action name="Resize">
<edge>left</edge>
</action>
</mousebind>
</context>
<context name="Right">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Left" action="Drag">
<action name="Resize">
<edge>right</edge>
</action>
</mousebind>
</context>
<context name="Bottom">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Left" action="Drag">
<action name="Resize">
<edge>bottom</edge>
</action>
</mousebind>
<mousebind button="Middle" action="Press">
<action name="Lower"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="ShowMenu">
<menu>client-menu</menu>
</action>
</mousebind>
</context>
<context name="TRCorner BRCorner TLCorner BLCorner">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Left" action="Drag">
<action name="Resize"/>
</mousebind>
</context>
<context name="Client">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Middle" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
</context>
<context name="Icon">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
<action name="ShowMenu">
<menu>client-menu</menu>
</action>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="ShowMenu">
<menu>client-menu</menu>
</action>
</mousebind>
</context>
<context name="AllDesktops">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Left" action="Click">
<action name="ToggleOmnipresent"/>
</mousebind>
</context>
<context name="Shade">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Left" action="Click">
<action name="ToggleShade"/>
</mousebind>
</context>
<context name="Iconify">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Left" action="Click">
<action name="Iconify"/>
</mousebind>
</context>
<context name="Maximize">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Middle" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Left" action="Click">
<action name="ToggleMaximize"/>
</mousebind>
<mousebind button="Middle" action="Click">
<action name="ToggleMaximize">
<direction>vertical</direction>
</action>
</mousebind>
<mousebind button="Right" action="Click">
<action name="ToggleMaximize">
<direction>horizontal</direction>
</action>
</mousebind>
</context>
<context name="Close">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Left" action="Click">
<action name="Close"/>
</mousebind>
</context>
<context name="Desktop">
<mousebind button="Up" action="Click">
<action name="GoToDesktop">
<to>previous</to>
</action>
</mousebind>
<mousebind button="Down" action="Click">
<action name="GoToDesktop">
<to>next</to>
</action>
</mousebind>
<mousebind button="A-Up" action="Click">
<action name="GoToDesktop">
<to>previous</to>
</action>
</mousebind>
<mousebind button="A-Down" action="Click">
<action name="GoToDesktop">
<to>next</to>
</action>
</mousebind>
<mousebind button="C-A-Up" action="Click">
<action name="GoToDesktop">
<to>previous</to>
</action>
</mousebind>
<mousebind button="C-A-Down" action="Click">
<action name="GoToDesktop">
<to>next</to>
</action>
</mousebind>
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
</context>
<context name="Root">
<!-- Menus -->
<mousebind button="Middle" action="Press">
<action name="ShowMenu">
<menu>client-list-combined-menu</menu>
</action>
</mousebind>
<mousebind button="Right" action="Press">
<action name="ShowMenu">
<menu>root-menu</menu>
</action>
</mousebind>
</context>
<context name="MoveResize">
<mousebind button="Up" action="Click">
<action name="GoToDesktop">
<to>previous</to>
</action>
</mousebind>
<mousebind button="Down" action="Click">
<action name="GoToDesktop">
<to>next</to>
</action>
</mousebind>
<mousebind button="A-Up" action="Click">
<action name="GoToDesktop">
<to>previous</to>
</action>
</mousebind>
<mousebind button="A-Down" action="Click">
<action name="GoToDesktop">
<to>next</to>
</action>
</mousebind>
</context>
</mouse>
<menu>
<!-- You can specify more than one menu file in here and they are all loaded,
just don't make menu ids clash or, well, it'll be kind of pointless -->
<!-- default menu file (or custom one in $HOME/.config/openbox/) -->
<!-- system menu files on Debian systems
<file>/var/lib/openbox/debian-menu.xml</file>
<file>debian-menu.xml</file> -->
<file>menu.xml</file>
<hideDelay>200</hideDelay>
<!-- if a press-release lasts longer than this setting (in milliseconds), the
menu is hidden again -->
<middle>no</middle>
<!-- center submenus vertically about the parent entry -->
<submenuShowDelay>100</submenuShowDelay>
<!-- time to delay before showing a submenu after hovering over the parent
entry.
if this is a negative value, then the delay is infinite and the
submenu will not be shown until it is clicked on -->
<submenuHideDelay>400</submenuHideDelay>
<!-- time to delay before hiding a submenu when selecting another
entry in parent menu
if this is a negative value, then the delay is infinite and the
submenu will not be hidden until a different submenu is opened -->
<applicationIcons>yes</applicationIcons>
<!-- controls if icons appear in the client-list-(combined-)menu -->
<manageDesktops>yes</manageDesktops>
<!-- show the manage desktops section in the client-list-(combined-)menu -->
</menu>
<applications>
<!--
# this is an example with comments through out. use these to make your
# own rules, but without the comments of course.
# you may use one or more of the name/class/role/title/type rules to specify
# windows to match
<application name="the window's _OB_APP_NAME property (see obxprop)"
class="the window's _OB_APP_CLASS property (see obxprop)"
role="the window's _OB_APP_ROLE property (see obxprop)"
title="the window's _OB_APP_TITLE property (see obxprop)"
type="the window's _OB_APP_TYPE property (see obxprob)..
(if unspecified, then it is 'dialog' for child windows)">
# you may set only one of name/class/role/title/type, or you may use more
# than one together to restrict your matches.
# the name, class, role, and title use simple wildcard matching such as those
# used by a shell. you can use * to match any characters and ? to match
# any single character.
# the type is one of: normal, dialog, splash, utility, menu, toolbar, dock,
# or desktop
# when multiple rules match a window, they will all be applied, in the
# order that they appear in this list
# each rule element can be left out or set to 'default' to specify to not
# change that attribute of the window
<decor>yes</decor>
# enable or disable window decorations
<shade>no</shade>
# make the window shaded when it appears, or not
<position force="no">
# the position is only used if both an x and y coordinate are provided
# (and not set to 'default')
# when force is "yes", then the window will be placed here even if it
# says you want it placed elsewhere. this is to override buggy
# applications who refuse to behave
<x>center</x>
# a number like 50, or 'center' to center on screen. use a negative number
# to start from the right (or bottom for <y>), ie -50 is 50 pixels from the
# right edge (or bottom).
<y>200</y>
<monitor>1</monitor>
# specifies the monitor in a xinerama setup.
# 1 is the first head, or 'mouse' for wherever the mouse is
</position>
<focus>yes</focus>
# if the window should try be given focus when it appears. if this is set
# to yes it doesn't guarantee the window will be given focus. some
# restrictions may apply, but Openbox will try to
<desktop>1</desktop>
# 1 is the first desktop, 'all' for all desktops
<layer>normal</layer>
# 'above', 'normal', or 'below'
<iconic>no</iconic>
# make the window iconified when it appears, or not
<skip_pager>no</skip_pager>
# asks to not be shown in pagers
<skip_taskbar>no</skip_taskbar>
# asks to not be shown in taskbars. window cycling actions will also
# skip past such windows
<fullscreen>yes</fullscreen>
# make the window in fullscreen mode when it appears
<maximized>true</maximized>
# 'Horizontal', 'Vertical' or boolean (yes/no)
</application>
# end of the example
-->
<application name="gmessage">
<decor>no</decor>
<shade>no</shade>
<skip_pager>yes</skip_pager>
<skip_taskbar>yes</skip_taskbar>
<fullscreen>no</fullscreen>
<maximized>no</maximized>
</application>
<application class="Gsimplecal">
<focus>yes</focus>
<position force="yes">
<x>-0</x>
<y>0</y>
</position>
<decor>no</decor>
<shade>no</shade>
<layer>above</layer>
<iconic>no</iconic>
<skip_pager>yes</skip_pager>
<skip_taskbar>yes</skip_taskbar>
<fullscreen>no</fullscreen>
<maximized>no</maximized>
</application>
<application class="Thunar">
<position force="yes">
<x>center</x>
<y>center</y>
</position>
</application>
<application class="Galculator">
<position force="yes">
<x>center</x>
<y>center</y>
</position>
</application>
<application class="nitrogen">
<position force="yes">
<x>center</x>
<y>center</y>
</position>
</application>
<application class="Vlc">
<maximized>yes</maximized>
</application>
<application class="google-chrome">
<maximized>yes</maximized>
</application>
<application class="Firefox">
<decor>no</decor>
<shade>no</shade>
<maximized>yes</maximized>
</application>
<application class="Audacious">
<maximized>yes</maximized>
</application>
<application class="Evince">
<maximized>yes</maximized>
</application>
<application class="Gimp" name="gimp" role="gimp-toolbox" type="utility">
<maximized>vertical</maximized>
</application>
<application class="Gimp" name="gimp" role="gimp-dock" type="utility">
<maximized>vertical</maximized>
</application>
<application class="Gimp" name="gimp" role="gimp-image-window" type="normal">
<position force="no">
<x>center</x>
<y>center</y>
</position>
</application>
<application class="Gimp" name="gimp-2.8" role="gimp-toolbox" type="utility">
<maximized>vertical</maximized>
</application>
<application class="Gimp" name="gimp-2.8" role="gimp-dock" type="utility">
<maximized>vertical</maximized>
</application>
<application class="Gimp" name="gimp-2.8" role="gimp-image-window" type="normal">
<position force="no">
<x>center</x>
<y>center</y>
</position>
</application>
<!--<application name="*">
<decor>yes</decor>
<shade>no</shade>
<skip_pager>no</skip_pager>
<skip_taskbar>no</skip_taskbar>
</application>-->
</applications>
</openbox_config>
// MODIFIER LE FICHIER MENU.XML:
--------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<openbox_menu xmlns="http://openbox.org/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://openbox.org/
file:///usr/share/openbox/menu.xsd">
<menu id="root-menu" label="Openbox 3">
<item label="Terminal emulator">
<action name="Execute"><execute>x-terminal-emulator</execute></action>
</item>
<item label="Web browser">
<action name="Execute"><execute>x-www-browser</execute></action>
</item>
<item label="Firefox">
<action name="Execute"><execute>firefox</execute></action>
</item>
<item label="Google Chrome Incognito">
<action name="Execute"><execute>google-chrome --incognito</execute></action>
</item>
<item label="Gestionnaire de Fichiers">
<action name="Execute"><command>thunar</command></action>
</item>
<item label="Éditeur de Texte">
<action name="Execute"><command>geany</command></action>
</item>
<item label="Lecteur MultiMédia">
<action name="Execute"><command>vlc</command></action>
</item>
<item label="Client Torrent Transmission">
<action name="Execute"><command>transmission-gtk</command></action>
</item>
<item label="Suite LibreOffice">
<action name="Execute"><command>libreoffice</command></action>
</item>
<item label="Traitement de Texte AbiWord">
<action name="Execute"><command>abiword</command></action>
</item>
<item label="Tableur Gnumeric">
<action name="Execute"><command>gnumeric</command></action>
</item>
<item label="Gestionnaire de polices">
<action name="Execute"><command>gnome-specimen</command></action>
</item>
<item label="Interface Utilisateur">
<action name="Execute"><command>lxappearance</command></action>
</item>
<item label="Fond d'écran">
<action name="Execute"><command>nitrogen</command></action>
</item>
<!-- This requires the presence of the 'menu' package to work -->
<menu id="/Debian" />
<separator />
<menu id="client-list-menu" />
<separator />
<item label="ObConf">
<action name="Execute"><execute>obconf</execute></action>
</item>
<item label="Reconfigure">
<action name="Reconfigure" />
</item>
<item label="Restart">
<action name="Restart" />
</item>
<separator />
<item label="Exit">
<action name="Exit" />
</item>
<separator />
<item label="Eteindre?">
<action name="Execute"><command>obsession-logout</command></action>
</item>
</menu>
</openbox_menu>
// MODIFIER LE FICHIER TINT2RC:
-------------------------------
#---------------------------------------------
# TINT2 CONFIG FILE
#---------------------------------------------
# Background definitions
# ID 1
rounded = 0
border_width = 0
background_color = #000000 40
border_color = #828282 0
# ID 2 - task active
rounded = 1
border_width = 0
background_color = #000000 90
border_color = #d8d8d8 30
# ID 3 - task
rounded = 1
border_width = 0
background_color = #000000 0
border_color = #000000 0
# ID 4
rounded = 1
border_width = 0
background_color = #888888 20
border_color = #ED2323 60
# ID 5 - taskbar
rounded = 0
border_width = 0
background_color = #000000 0
border_color = #000000 0
# ID 6 - active taskbar
rounded = 0
border_width = 0
background_color = #d8d8d8 8
border_color = #d8d8d8 0
# ID 7 - tooltip
rounded = 3
border_width = 0
background_color = #222222 90
border_color = #222222 90
# ID 8 - vu qu'il n'était pas utilisé je vais l'utiliser pour la task inactive
#rounded = 1
#border_width = 1
#background_color = #888888 20
#border_color = #888888 20
rounded = 1
border_width = 0
#background_color = #d8d8d8 30
background_color = #000000 30
border_color = #d8d8d8 30
# ID 9 - launcher, notification et horloge
rounded = 0
border_width = 0
background_color = #ffffff 50
border_color = #828282 0
# Panel
panel_monitor = all
panel_position = top center horizontal
panel_items = TSC
panel_size = 100% 24
#panel_margin = 0 -1
panel_margin = 0 0
panel_padding = 0 0
panel_dock = 0
wm_menu = 1
panel_layer = bottom
panel_background_id = 1
# Panel Autohide
autohide = 0
autohide_show_timeout = 0.3
autohide_hide_timeout = 1.5
autohide_height = 6
strut_policy = follow_size
# Taskbar
taskbar_mode = single_desktop
taskbar_padding = 1 1 6
taskbar_background_id = 5
taskbar_active_background_id = 6
taskbar_name = 0
taskbar_name_background_id = 0
taskbar_name_active_background_id = 0
#taskbar_name_font = Liberation Sans 9
taskbar_name_font = GeosansLight 9
taskbar_name_font_color = #828282 100
taskbar_name_active_font_color = #828282 100
# Tasks
urgent_nb_of_blink = 20
task_icon = 1
task_text = 1
task_centered = 1
task_maximum_size = 300 40
task_padding = 2 2
task_background_id = 8
task_active_background_id = 2
task_urgent_background_id = 4
task_iconified_background_id = 3
# Task Icons
task_icon_asb = 80 0 0
task_active_icon_asb = 100 0 0
task_urgent_icon_asb = 100 0 0
task_iconified_icon_asb = 80 0 0
# Fonts
#task_font = Liberation Sans 06_55 6
task_font = GeosansLight 11
task_font_color = #828282 60
#task_active_font_color = #828282 100
#task_active_font_color = #e87c34 100
task_active_font_color = #1de4e7 100
task_urgent_font_color = #FFFFFF 100
task_iconified_font_color = #d8d8d8 60
font_shadow = 0
# Launcher
launcher_padding = 8 4 4
launcher_background_id = 9
launcher_icon_size = 24
# Specify icon theme names with launcher_icon_theme.
# if you have an XSETTINGS manager running (like xfsettingsd), tint2 will follow your current theme.
#launcher_icon_theme = Faba-Mono-Dark
launcher_icon_theme = Nitrux
# Each launcher_item_app must be a full path to a .desktop file
launcher_item_app = /usr/share/applications/Thunar.desktop
launcher_item_app = /usr/share/applications/audacious.desktop
launcher_item_app = /usr/share/applications/google-chrome-incognito.desktop
launcher_item_app = /usr/share/applications/iceweasel.desktop
launcher_item_app = /usr/share/applications/transmission-gtk.desktop
# System Tray
systray = 1
systray_padding = 3 1 3
systray_sort = right2left
systray_background_id = 9
systray_icon_size = 24
systray_icon_asb = 100 0 0
# Clock
time1_format = %H:%M
# faudra que je change la typo de l'horloge, mettre la zegoelightjesaisplusquoi
time1_font = GeosansLight 11
#time2_format = %A %d %B
#time2_font = Liberation Sans 6
clock_font_color = #2e2d2d 100
clock_padding = 8 4
clock_background_id = 9
clock_lclick_command = gsimplecal
clock_rclick_command = gsimplecal
# Tooltips
tooltip = 1
tooltip_padding = 2 2
tooltip_show_timeout = 0.0
tooltip_hide_timeout = 0.0
tooltip_background_id = 7
tooltip_font_color = #d8d8d8 100
tooltip_font = Liberation Sans normal 9.0
# Mouse
mouse_middle = maximize_restore
mouse_right = close
mouse_scroll_up = toggle
mouse_scroll_down = iconify
# Battery
battery = 1
battery_low_status = 20
battery_low_cmd = notify-send "battery low"
battery_hide = never
bat1_font = sans 8
bat2_font = sans 8
battery_font_color = #b5b5b5 100
battery_padding = 2 0
battery_background_id = 0
# End of config