$ mkdir -p ~/.config/awesome/ $ cp /etc/xdg/awesome/rc.lua ~/.config/awesome/
Pour commenter une ligne dans le fichier de configuration, il suffit d'ajouter -- en début de ligne
os.execute("xset 60 80 120 &") os.execute("numlockx &") os.execute("volti &") --os.execute("nm-applet &") os.execute("osmo &") os.execute("redshift -l 0:0 &") os.execute("cherrytree &") os.execute("parcellite &") os.execute("stardict &") --os.execute("xpenguins -n 2 &") os.execute("synapse &") os.execute("/home/georges2/start-conky &") os.execute("xcompmgr &")
applet à démarrer au démarrage pour un affichage de la connexion internet dans la zone de notification
apt-get install volti--applet
apt-get install xcompmgr # ou apt-get install unagi
os.execute("xcompmgr &") -- ou os.execute("unagi &")
client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus c.opacity = 0.9 end)--Par contre même les lecteurs vidéos seront tranparents, choisir 1 comme valeur pour que les fenêtres soient opaques. client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal c.opacity = 0.8 end)
modifier le fichier /usr/share/xsessions/awesome.desktop pour avoir awesome dans le gestionnaire de démarrage comme lightdm en remplaçant true par false pour NoDisplay
-- Tags
-- Define a tag table which hold all screen tags.
tags = {}
for s = 1, screen.count() do
-- Each screen has its own tag table.
tags[s] = awful.tag({1, "[2:thunar]","[3:gedit]","[4:Navigateur I]","[5:Audio/Video]" }, s, {layouts[1],layouts[1], layouts[1], layouts[3], layouts[3] })
end
--
-- Rules
awful.rules.rules = {
-- All clients will match this rule.
{ rule = { },
properties = { border_width = beautiful.border_width,
border_color = beautiful.border_normal,
focus = awful.client.focus.filter,
keys = clientkeys,
buttons = clientbuttons } },
{ rule = { class = "MPlayer" },
properties = { floating = true } },
{ rule = { class = "pinentry" },
properties = { floating = true } },
{ rule = { class = "gimp" },
properties = { floating = true } },
-- Set thunar to always map on tags number 2 of screen 1.
{ rule = { class = "Thunar" },
properties = { tag = tags[1][2] } },
-- Set gedit to always map on tags number 3 of screen 1.
{ rule = { class = "Gedit" },
properties = { tag = tags[1][3] } },
-- Set iceweasel to always map on tags number 4 of screen 1.
{ rule = { class = "Iceweasel" },
properties = { tag = tags[1][4] } },
-- Set iceceape to always map on tags number 4 of screen 1.
{ rule = { class = "SeaMonkey" },
properties = { tag = tags[1][4] } },
-- Set quodlibet to always map on tags number 6 of screen 1.
{ rule = { class = "Quodlibet" },
properties = { tag = tags[1][5] } },
-- Set smplayer to always map on tags number 6 of screen 1.
{ rule = { class = "Smplayer" },
properties = { tag = tags[1][5] } },
-- Set audacious to always map on tags number 6 of screen 1.
{ rule = { class = "Audacious" },
properties = { tag = tags[1][5] },properties = {opacity = 0.2}},
--{rule = {class = "Menubar"},
-- properties = {opacity = 0.6} },
},
--
-- Table of layouts to cover with awful.layout.inc, order matters.
local layouts =
{
awful.layout.suit.fair.horizontal,
-- awful.layout.suit.floating,
awful.layout.suit.tile,
-- awful.layout.suit.tile.left,
awful.layout.suit.tile.bottom,
-- awful.layout.suit.tile.top,
-- awful.layout.suit.fair,
-- awful.layout.suit.spiral,
awful.layout.suit.spiral.dwindle,
-- awful.layout.suit.max,
-- awful.layout.suit.max.fullscreen,
-- awful.layout.suit.magnifier
}
--
-- Menu
-- Create a laucher widget and a main menu
myawesomemenu = {
{ "manual", terminal .. " -e man awesome" },
{ "edit config", editor_cmd .. " " .. awesome.conffile },
{ "restart", awesome.restart },
{ "quit", awesome.quit }
}
mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon },
{ "Debian", debian.menu.Debian_menu.Debian },
{ "open terminal", terminal },
{ "Shutdown", "sudo halt" },
{ "Reboot", "sudo reboot" },
{ "Suspend", "sudo suspend" },
}
})
mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon,
menu = mymainmenu })