TuXWeb /.awesomerc

# Fichier de configuration pour awesome3 
# par TuXWeb.

screen 0
{
    general
    {
        border = 1
        opacity_unfocused = 0.8
        opacity_focused = 1.0
        # Respect windows minimal geometry
        resize_hints = false
    }

            
    styles
    {
        normal
        {
            font = "sans 8"
            fg = "#000000"
            bg = "#99cccc"
            border = "#555555"
        }
        focus
        {
            fg = "#000000"
            bg = "#99b2cc"
            border = "#535d6c"
        }
        urgent
        {
            fg = "#000000"
            bg = "#cc9999"
        }
    }
    
    tags
    {
        tag Divers_0 { }
        tag Chat_1 { layout = "max" }
        tag Web_2 { layout = "max" }
        tag Dev_3 { layout = "tiletop"}
        tag Explorateur_4 { layout = "tilebottom" }
        tag Boulot_4 { layout = "tilebottom" }
    }

    layouts
    {
        layout tile { image = "/usr/share/awesome/icons/layouts/tilew.png" }
        layout tileleft { image = "/usr/share/awesome/icons/layouts/tileleftw.png" }
        layout tilebottom { image = "/usr/share/awesome/icons/layouts/tilebottomw.png" }
        layout tiletop { image = "/usr/share/awesome/icons/layouts/tiletopw.png" }
        layout max { image = "/usr/share/awesome/icons/layouts/maxw.png" }
        layout spiral { image = "/usr/share/awesome/icons/layouts/spiralw.png" }
        layout dwindle { image = "/usr/share/awesome/icons/layouts/dwindlew.png" }
        layout floating { image = "/usr/share/awesome/icons/layouts/floatingw.png" }
    }
        

    statusbar barDuHaut
    {
        position = "top"

        taglist mytaglist
        {
          mouse { button = "1" command = "tag_view" }
          mouse { button = "1" modkey = {"Mod4"} command = "client_tag" }
          mouse { button = "3" command = "tag_toggleview" }
          mouse { button = "3" modkey = {"Mod4"} command = "client_toggletag" }
          mouse { button = "4" command = "tag_viewnext" }
          mouse { button = "5" command = "tag_viewprev" }
        }

        layoutinfo mylayoutinfo
        {
          mouse { button = "1" command = "tag_setlayout" arg = "+1" }
          mouse { button = "4" command = "tag_setlayout" arg = "+1" }
          mouse { button = "3" command = "tag_setlayout" arg = "-1" }
          mouse { button = "5" command = "tag_setlayout" arg = "-1" }
        }
        tasklist listeDesTaches
        {
          mouse { button = "4" command = "client_focusnext" }
          mouse { button = "5" command = "client_focusprev" }
          mouse { modkey = {"Mod4"} button = "4" command = "client_swapnext" }
          mouse { modkey = {"Mod4"} button = "5" command = "client_swapprev" }
        }

        textbox meteo {}
    }

    statusbar barDuBas
    {
        position = "bottom"

        textbox horloge
        {
            mouse { button = "1" command = "spawn" arg = "exec `/home/tuxweb/.awesome/calendrier`"}
            align = "right"
        }

        iconbox mpc_icone
        {
            image = "/home/tuxweb/.awesome/icones/play_pause.png"

            mouse { button = "1" command = "spawn" arg = "exec mpc toggle"  }
            mouse { button = "4" command = "spawn" arg = "exec mpc volume +10"  }
            mouse { button = "5" command = "spawn" arg = "exec mpc volume -10"  }
        }


        textbox mpc {}
        textbox cpu_texte { text = " |  "  }
        iconbox cpu_icone { image = "/home/tuxweb/.awesome/icones/cpu.png" }
        textbox cpu_temp {}

        graph cpu_graphe
        {
            data "donnees"
            {
                scale = false
                max = 100
                fg = "#cc6666"
                fg_center = "#cc6666"
                fg_end = "#998888"
            }
          
            width = 40
            height = "0.8"
            bg = "#000000" 
            bordercolor = "#666699"
        }
        
        textbox memoire_texte { text = " |  " }
        iconbox memoire_icone { image = "/home/tuxweb/.awesome/icones/memoire.png" }
        textbox memoire {}
        textbox disqueDur_texte { text = " |  " }
        iconbox disqueDur_icone { image = "/home/tuxweb/.awesome/icones/DD.png" }
        textbox disqueDur_temp{}

        textbox chargeSysteme_texte { text = " | Load : " }
        textbox chargeSysteme{}

        textbox mail { text = " |  " }
        iconbox mail_icone
        {
            image = "/home/tuxweb/.awesome/icones/mails.png"
            mouse { button = "1" command = "spawn" arg = "fetchmail" }
        }
        
        textbox mail_text{}
                
    }

}

rules
{
    rule { name = "Gimp" float = true }
    rule { name = "MPlayer" float = true }
    rule { name = "gqview" float = true }

    rule { name = ".*Firefox.*" tags = "Web_2" }
    rule { name = "emesene" tags = "Chat_1" }
    rule { name = "psi" tags = "Chat_1" }
    rule { name = "pidgin" tags = "Chat_1" }
    rule { name = "emelfm" tags = "Explorateur_4" }
    rule { name = "thunar" tags = "Explorateur_4" }
}

mouse
{
    root { button = "3" command = "spawn" arg = "exec gnome-terminal" }
    root { button = "4" command = "tag_viewnext" }
    root { button = "5" command = "tag_viewprev" }

    client { modkey = {"Mod4"} button = "1" command = "client_movemouse" }
    client { modkey = {"Mod4"} button = "2" command = "client_zoom" }
    client { modkey = {"Mod4"} button = "3" command = "client_resizemouse" }
    titlebar { button = "1" command = "client_movemouse" }
    titlebar { button = "3" command = "client_resizemouse" }
}

keys
{
        #Gestion de la musique
    key { modkey = {"Mod4"} key = "p" command = "spawn" arg = "exec mpc volume +10" }
    key { modkey = {"Mod4"} key = "o" command = "spawn" arg = "exec mpc volume -10" }
    key { modkey = {"Mod4"} key = "Left" command = "spawn" arg = "exec mpc prev" }
    key { modkey = {"Mod4"} key = "Right" command = "spawn" arg = "exec mpc next" }
    key { modkey = {"Mod4"} key = "Up" command = "spawn" arg = "exec mpc play" }
    key { modkey = {"Mod4"} key = "Down" command = "spawn" arg = "exec mpc pause" }
    key { modkey = {"Mod4", "Shift"} key = "down" command = "spawn" arg = "exec mpc stop" }


    key { modkey = {"Mod4"} key = "x" command = "spawn" arg = "exec `/home/tuxweb/.awesome/menu`" }
    key { modkey = {"Mod4"} key = "f" command = "spawn" arg = "exec firefox" }
    key { modkey = {"Mod4"} key = "s" command = "spawn" arg = "awesome-menu 'ssh to:'" }
    key { modkey = {"Mod4"} key = "Return" command = "spawn" arg = "exec gnome-terminal" }
    key { modkey = {"Mod4", "Control"} key = "space" command = "tag_setlayout" arg = "+1" }
    key { modkey = {"Shift", "Control"} key = "space" command = "tag_setlayout" arg = "-1"}
    key { modkey = {"Mod4"} key = "t" command = "statusbar_toggle" }
    key { modkey = {"Mod4"} key = "j" command = "client_focusnext" }
    key { modkey = {"Mod4"} key = "k" command = "client_focusprev" }
    key { modkey = {"Mod4"} key = "Tab" command = "focus_history"  arg = "-1" }
    key { modkey = {"Mod4", "Shift"} key = "j"  command = "client_swapnext" }
    key { modkey = {"Mod4", "Shift"} key = "k" command = "client_swapprev" }
    key { modkey = {"Mod4"} key = "h" command = "tag_setmwfact" arg = "-0.05" }
    key { modkey = {"Mod4"} key = "l" command = "tag_setmwfact" arg = "+0.05" }
    key { modkey = {"Mod4", "Shift"} key = "h" command = "tag_setnmaster" arg = "+1" }
    key { modkey = {"Mod4", "Shift"} key = "l" command = "tag_setnmaster" arg = "-1" }
    key { modkey = {"Mod4", "Control"} key = "h" command = "tag_setncol" arg = "+1" }
    key { modkey = {"Mod4", "Control"} key = "l" command = "tag_setncol" arg = "-1" }
    key { modkey = {"Mod4"} key = "Escape" command = "tag_prev_selected" }
    key { modkey = {"Mod4"} key = "b" command = "tag_viewprev"  }
    key { modkey = {"Mod4"} key = "n" command = "tag_viewnext" }
    key { modkey = {"Mod4"} key = "m" command = "client_togglemax" }
    key { modkey = {"Mod4", "Control"} key = "Return" command = "client_zoom" }
    key { modkey = {"Mod4", "Control"} key = "space" command = "client_togglefloating" }
    key { modkey = {"Mod4"} key = "s" command = "client_togglescratch" }
    key { modkey = {"Mod4", "Control"}  key = "s" command = "client_setscratch" }
    key { modkey = {"Mod4", "Shift"} key = "c" command = "client_kill" }
    key { modkey = {"Mod4", "Shift"} key = "q" command = "quit" }
    key { modkey = {"Mod4", "Control"} key = "r" command = "restart" }
    key { modkey = {"Mod4"} key = "0" command = "tag_view" }
    key { modkey = {"Mod4", "Control"} key = "0"  command = "tag_toggleview" }
    key { modkey = {"Mod4", "Shift", "Control"} key = "0" command = "client_toggletag" }
    key { modkey = {"Mod4", "Shift"} key = "0" command = "client_tag" }

}
# vim: filetype=conf