Fichier de configuration d’awesome 2
From awesome
Voici un fichier .awesomerc avec commentaires. C’était le fichier de configuration par défaut pour la version 2 d’awesome. Depuis la version 3, le fichier de configuration par défaut est codé en Lua et son nom est rc.lua.
# Fichier de configuration d’awesome 2
#
# Premier écran physique
screen 0
{
general
{
# Taille des bordures de fenêtres, en pixels
border = 1
# Nombre de pixels avant de coller la bordure d’une fenêtre avec la bordure de l’écran
snap = 8
# Respecter la géométrie minimale des fenêtres ?
resize_hints = true
# Transparence des fenêtres qui ne sont pas au premier plan (avec xcompmgr)
opacity_unfocused = 100
# La mise au premier plan doit-elle suivre la souris ?
focus_move_pointer = false
# Les fenêtres flottantes doivent-elles être sous les autres ?
allow_lower_floats = false
# Fonte de la barre de statut (Xft)
font = "Inconsolata-8"
}#end general
colors
{
# Couleur de bordure standard
normal_border = "#111111"
# Couleur de fond standard (barre de statut)
normal_bg = "#111111"
# Couleur d’avant-plan standard (barre de statut)
normal_fg = "#eeeeee"
# Couleur de bordure d’une fenêtre au premier plan
focus_border = "#6666ff"
# Couleur de fond au premier plan (barre de statut)
focus_bg = "#6666ff"
# Couleur d’avant plan au premier plan (barre de statut
focus_fg = "#ffffff"
}#end colors
#top, left, bottom, right
statusbar{position = "top"}
#Ce qui suit est ce qui est réellement affiché sur la barre de statut.
#Ici par exemple, « 1:console » est affiché au lieu du « one » par défaut
tags {
tag 1:console {layout = "tile" mwfact = .5}
tag 2:net {layout = "floating"}
tag 3:vim {layout = "tile"}
tag 4:fichiers {layout = "tile"}
tag five {layout = "tile"}
tag six {layout = "tile"}
}#end tags
layouts {
layout tile {symbol = "[]="}
layout tileleft {symbol = "=[]"}
layout max {symbol = "[ ]"}
layout floating {symbol = "><>"}
}#end layouts
}#end screen 0
#Cette section définit dans quel onglet un programme s’ouvre et s’il est en mosaïque, maximisé ou flottant.
rules {
rule {name = "Gimp" tags = "six" float = true}
rule {name = "MPlayer" float = true}
rule {name = "Acroread" float = true}
rule {name = "pinentry" float = true}
rule {name = "urxvt" float = true tags = "1:console"}
rule {name = "Swiftfox" float = true tags = "2:net"}
rule {name = "wifi-radar" float = true tags = "2:net"}
rule {name = "gvim" float = true tags = "3:vim"}
rule {name = "emelfm" float = true tags = "4:fichiers"}
rule {name = "mc" float = true tags = "4:fichiers"}
}#end rules
## Remarque : « Mod1 » est en général la touche [Alt] et « Mod4 » est [Super] ou [Windows]
# Actions avec les boutons de la souris
mouse {
# En cliquant sur un onglet
tag {button = "1" command = "tag_view"}
tag {button = "1" modkey = {"Mod4"} command = "client_tag"}
tag {button = "3" command = "tag_toggleview"}
tag {button = "3" modkey = {"Mod4"} command = "client_toggletag"}
tag {button = "4" command = "tag_viewnext"}
tag {button = "5" command = "tag_viewprev"}
# En cliquant sur le symbole de disposition
layout {button = "1" command = "tag_setlayout" arg = "+1"}
layout {button = "4" command = "tag_setlayout" arg = "+1"}
layout {button = "3" command = "tag_setlayout" arg = "-1"}
layout {button = "5" command = "tag_setlayout" arg = "-1"}
# En cliquant sur la fenêtre root
root {button = "3" command = "spawn" arg = "exec urxvt"}
root {button = "4" command = "tag_viewnext"}
root {button = "5" command = "tag_viewprev"}
# En cliquant sur les clients
client {modkey = {"Mod4"} button = "1" command = "client_movemouse"}
client {modkey = {"Mod4"} button = "2" command = "client_zoom"}
client {modkey = {"Mod4"} button = "3" command = "client_resizemouse"}
}#end mouse
# Raccourcis claviers
keys {
#C’est là que vous définissez vos raccourcis clavier pour lancer des programmes.
#Vous pouvez voir que j’ai ajouté « sudo » à certains ; cette méthode marchera aussi pour d’autres commandes.
key {modkey = {"Mod4", "Control"} key = "Return" command = "spawn" arg = "exec urxvt"}
key {modkey = {"Mod4"} key = "r" command = "spawn" arg = "exec sudo wifi-radar"}
key {modkey = {"Mod4"} key = "n" command = "spawn" arg = "exec swiftfox"}
key {modkey = {"Mod4"} key = "v" command = "spawn" arg = "exec sudo gvim"}
key {modkey = {"Mod4"} key = "f" command = "spawn" arg = "exec sudo emelfm"}
key {modkey = {"Mod4"} key = "Return" command = "spawn" arg = "exec gmrun"}
###############################################################################
#Raccourcis pour générer les fenêtres individuelles dans chaque onglet.
key { modkey = {"Mod4"} key = "j" command = "client_focusnext" }
key { modkey = {"Mod4"} key = "k" command = "client_focusprev" }
key { modkey = {"Mod4", "Control"} key = "j" command = "client_swapnext" }
key { modkey = {"Mod4", "Control"} key = "k" command = "client_swapprev" }
key { modkey = {"Mod4"} key = "c" command = "client_kill" }
key { modkey = {"Mod4"} key = "m" command = "client_togglemax" }
key { modkey = {"Mod4", "Shift"} key = "m" command = "client_toggleverticalmax" }
key { modkey = {"Mod4", "Control"} key = "m" command = "client_togglehorizontalmax" }
key { modkey = {"Mod4"} key = "f" command = "client_togglefloating" }
#Raccourcis pour se déplacer entre les onglets
key { modkey = {"Mod4"} key = "Right" command = "tag_viewnext" }
key { modkey = {"Mod4"} key = "Left" command = "tag_viewprev" }
key { modkey = {"Mod4"} key = 1 command = "tag_view" arg = 1 }
key { modkey = {"Mod4"} key = 2 command = "tag_view" arg = 2 }
key { modkey = {"Mod4"} key = 3 command = "tag_view" arg = 3 }
key { modkey = {"Mod4"} key = 4 command = "tag_view" arg = 4 }
key { modkey = {"Mod4"} key = 5 command = "tag_view" arg = 5 }
key { modkey = {"Mod4"} key = 6 command = "tag_view" arg = 6 }
#Voir plusieurs onglets dans l’onglet actuel
key {modkey = {"Shift", "Control"} key = 1 command = "tag_toggleview" arg = 1}
key {modkey = {"Shift", "Control"} key = 2 command = "tag_toggleview" arg = 2}
key {modkey = {"Shift", "Control"} key = 3 command = "tag_toggleview" arg = 3}
key {modkey = {"Shift", "Control"} key = 4 command = "tag_toggleview" arg = 4}
key {modkey = {"Shift", "Control"} key = 5 command = "tag_toggleview" arg = 5}
key {modkey = {"Shift", "Control"} key = 6 command = "tag_toggleview" arg = 6}
##################################################################################################################
###Voici des raccourcis supplémentaires que je n’utilise pas.
###Peut-être que quelqu’un d’autre veut les utiliser ?
#key { modkey = {"Mod1", "Control"} key = "h" command = "tag_setnmaster" arg = "+1" }
#key { modkey = {"Mod1", "Control"} key = "l" command = "tag_setnmaster" arg = "-1" }
#awesome
#key { modkey = {"Mod1", "Control"} key = "r" command = "exec" arg = "/usr/local/bin/awesome" }
#key { modkey = {"Mod1", "Control"} key = "q" command = "quit" }
#key { modkey = {"Mod1", "Control"} key = "b" command = "statusbar_toggle" }
#voir l’onglet supplémentaire « num » : Mod1 + Maj + Numéro
#augmenter ou réduire le nombre de colonnes
#key { modkey = {"Mod1", "Shift"} key = "h" command = "tag_setncol" arg = "-1" }
#key { modkey = {"Mod1", "Shift"} key = "l" command = "tag_setncol" arg = "+1" }
#nombre de clients maîtres
#key { modkey = {"Mod1", "Control"} key = "j" command = "screen_focusnext" }
#key { modkey = {"Mod1", "Control"} key = "k" command = "screen_focusprev" }
#key { modkey = {"Mod1",} key = "t" command = "client_settrans" arg = "+0.10" }
#key { modkey = {"Mod1"} key = "t" command = "client_settrans" arg = "-0.10" }
#key { modkey = {"Mod1", "Shift"} key = "Return" command = "client_zoom" arg="-0.10" }
} #end keys