psycho_one /.awesomerc

#
# ~/.awesomerc 
# awesome wm
#
# man awesomerc for full syntax
#
# Mod1 = left-alt
# Mod2 = enter
# Mod3 = right-alt
# Mod4 = winkey
#

screen 0
{
    styles    # global statusbar/titlebar prefs
    {
        normal
        {
            font = "Terminus 8"
            fg = "#cfcfcf"
            bg = "#3d6473"
            border = "#111111"
        }
        focus
        {
            fg = "#ffffff"
            bg = "#799299"
            border = "#ff5500"
        }
        urgent
        {
            fg = "#FFaa55"
           bg = "#3d6473"
}
     }
    general   # general awesomeness
    {
        border = 1                        # client borders <int>
        snap = 8                          # n pixels to snap when moving floating clients <int>
        mwfact_lower_limit = 0.1          # lower limit for master window size <float>
        mwfact_upper_limit = 0.9          # upper limit for master window size <float>
        resize_hints = false              # use resize hinst when resizing tiles--can create gaps <boolean>
        new_get_focus = true              # new clients get focus automagically <boolean>
        new_become_master = true          # new clients become master <boolean>
        floating_placement = smart        # floating client behaviour <smart, under_mouse>
        sloppy_focus = true               # focus follows mouse <boolean>
        sloppy_focus_raise = false        # raise client if given mouse focus <boolean>
       # opacity_focused = 1.0             # opacity of focused clients (compositing) <float 0.0-1.0>
       # opacity_unfocused = 0.5           # opacity of unfocused clients (compositing) <float 0.0-1.0>
    }
    titlebar  # client titlebar behaviour
    {
        position = off                    # toggle titlebars <top, bottom, left, right, auto, off>
        width = ""                        # titlebar width <int>
        height = ""                       # titlebar height <int> 
        align = auto                      # alignment of titlebars <auto, left, right>
        text_align = left                 # text alignment of titlebars <left, center, right>

    }
    tags      # desktop names
    {
        # golden ratio =  0.618033988769
        tag mail        { layout = tilebottom   mwfact = 0.618033988769 }
        tag www         { layout = tilebottom   mwfact = 0.618033988769 }
        tag im          { layout = tileright    mwfact = 0.618033988769 }
        tag servers     { layout = tilebottom   mwfact = 0.618033988769 }
        tag media       { layout = floating }
        tag games       { layout = tilebottom   mwfact = 0.618033988769 }
    }
    layouts   # available layouts and their icon paths
    {
        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 mystatusbar   # statusbar settings
    {
        position = top                    # statusbar position <top, bottom, left, right>
        width = ""                        # statusbar width <int>
        height = "20"                       # statusbar height <int>
        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 mytasklist   # statusbar display of open clients
        #{
        #    #x = "228"                     # x coordinates of the tasklist <int>
        #    y = ""                        # y coordinates of the tasklist <int>
        #    text_align = left             # text alignment of tasklist panes <left, center, right>
        #    show = focus                  # show x clients in the tasklist <all, tags, focus>
        #    show_icons = true            # show application icons in the tasklist <boolean>

         #   styles
         #   {
         #       normal { bg = "#252525" }
         #       focus  { bg = "#252525" }
         #       urgent { }
         #   }

         #   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 spacer1   { align = "right"    text = "["   style { fg = "#ffffff" } }
        textbox cpuload   { align = "right"    text = ""    style { fg = "#ed7a14" } }
        textbox spacer2   { align = "right"    text = "] [" style { fg = "#ffffff" } }
        textbox memory    { align = "right"    text = ""    style { fg = "#eec036" } }
        textbox spacer3   { align = "right"    text = "] [" style { fg = "#ffffff" } }
        textbox swap      { align = "right"    text = ""    style { fg = "#ed7a14" } }
        textbox spacer4   { align = "right"    text = "] [" style { fg = "#ffffff" } }
        textbox net       { align = "right"    text = ""    style { fg = "#eec036" } }
        textbox spacer5   { align = "right"    text = "] ["  style { fg = "#ffffff" } }
        textbox bat       { align = "right"    text = ""    style { fg = "#ed7a14" } }
        textbox spacer6   { align = "right"    text = "] ["  style { fg = "#ffffff" } }
        textbox hddt      { align = "right"    text = ""    style { fg = "#eec036" } }
        textbox spacer7   { align = "right"    text = "] ["  style { fg = "#ffffff" } }
        textbox cput      { align = "right"    text = ""    style { fg = "#ed7a14" } }
        textbox spacer8   { align = "right"    text = "] "  style { fg = "#ffffff" } }
        textbox clock     { align = "right"    text = ""    style { fg = "#ffffff" } }
        progressbar pb_wifi
        {
data master { bg = "#0a0a0a" fg = "#aecf96" fg_center = "#aecf96" fg_end = "#ff5656" fg_off = "#494b4f" bordercolor = "#0a0a0a" }
                width = "10" height = "1" gap = 0 align = "right" vertical = "true"
                ticks_count = "4" ticks_gap = "1"
        }

   }
    statusbar bottom
   {
        position = off
        width = 0
        height = 0
  }
   padding    # desktop margins <int>
   {
      top = 0
      bottom = 0
      right = 0
      left = 0
   }
}

rules   # forced floats and app2tag placements
{
        rule { name = "Firefox"         tags = "www"                    }
        rule { name = "Psi"             tags = "im"     float = "false "}
        rule { name = "Skype"           tags = "im"     float = "false" }
        rule { name = "Gimp"            tags = "media"  float = "true"  }
        rule { name = "Totem"           tags = "media"  float = "true"  }
        rule { name = "Sonata"          tags = "media"  float = "true"  }
        rule { name = "Evince"                          float = "true"  }
}
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"
 }
    titlebar
    {
        button = "3"
        command = "client_resizemouse"
    }
}
keys
{
    key  # email
    {
        modkey = {"Mod4"}
        key = "w"
        command = "spawn"
        arg = "exec gnome-terminal -geometry 140x40 -e mutt"
    }
    key  # dmenu launcher
    {
        modkey = {"Mod4"}
        key = "p"
        command = "spawn"
        arg = "dmenu_path | awesome-menu -e 'exec ' Execute:"
    }
    key  # lock screen
    {
        modkey = {"Shift", "Mod4"}
        key = "l"
        command = "spawn"
        arg = "slock"
    }
    key  # screenshot
    {
        #modkey = {"Mod4"}
        key = "Print"
        command = "spawn"
        arg = "scrot screen.png"
        #arg = "scrot %Y%m%d-dublin.png -t 280x175"
    }
    key  # screenshot timer
    {
        modkey = {"Mod4"}
        key = "Print"
        command = "spawn"
        arg = "scrot screen.png -d 3"
    }
    key  # ssh to: popup
    {
        modkey = {"Mod4"}
        key = "s"
        command = "spawn"
        arg = "cut -d' ' -f1 ~/.ssh/known_hosts | cut -d, -f1 | awesome-menu -e 'gnome-terminal -e ssh ' 'ssh to:'"
    }
    key  # terminal
    {
        modkey = {"Mod4", "Shift"}
        key = "Return"
        command = "spawn"
        arg = "exec gnome-terminal"
    }
    key # toggle layouts
    {
        modkey = {"Mod4"}
        key = "space"
        command = "tag_setlayout"
        arg = "+1"
    }
    key
    {
        modkey = {"Mod4", "Shift"}
        key = "space"
 command = "client_togglefloating"
    }
    key
    {
        modkey = {"Mod4"}
        key = "b"
        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 = "tag_prev_selected"
    }
    key
    {
        modkey = {"Mod4", "Control"}
        key = "j"
        command = "screen_focus"
        arg = "+1"
    }
    key
    {
        modkey = {"Mod4", "Control"}
        key = "k"
        command = "screen_focus"
        arg = "-1"
    }
    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"}
        key = "Left"
        command = "tag_viewprev"
    }
    key
    {
        modkey = {"Mod4"}
        key = "Right"
        command = "tag_viewnext"
    }
    key
    {
        modkey = {"Mod4"}
        key = "m"
command = "client_togglemax"
    }
    key   # swap focused with master
    {
        modkey = {"Mod4"}
        key = "Return"
        command = "client_zoom"
    }
    key
    {
        modkey = {"Mod4", "Shift"}
        key = "c"
        command = "client_kill"
    }
    key
    {
        modkey = {"Mod4", "Shift"}
        key = "q"
        command = "quit"
    }
    key
    {
        modkey = {"Mod4"}
        key = "q"
        command = "restart"
    }
    key
    {
       modkey = {"Mod4"}
       key = "0"
       command = "tag_view"
    }
    keylist
    {
        modkey = {"Mod4"}
        command = "tag_view"
        keylist = { "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9" }
        arglist = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }
    }
    key
    {
        modkey = {"Mod4", "Control"}
        key = "0"
        command = "tag_toggleview"
    }
    keylist
    {
        modkey = {"Mod4", "Control"}
        command = "tag_toggleview"
        keylist = { "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9" }
        arglist = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }
    }
    key
    {
        modkey = {"Mod4", "Shift"}
        key = "0"
        command = "client_tag"
    }
    keylist
    {
        modkey = {"Mod4", "Shift"}
        command = "client_tag"
        keylist = { "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9" }
        arglist = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }
    }
    key
    {
        modkey = {"Mod4", "Shift", "Control"}
        key = "0"
      }
    key
    {
        key = "XF86AudioPlay"
        command = "spawn"
        arg = "exec mpc toggle"
    }
    key
    {
        key = "XF86AudioNext"
        command = "spawn"
        arg = "exec mpc next"
    }
    key
    {
        key = "XF86AudioPrev"
        command = "spawn"
        arg = "exec mpc previous"
    }
    key
    {
        key = "XF86AudioStop"
        command = "spawn"
        arg = "exec mpc stop"
    }
    key
    {
        modkey = {"Mod4"}
        key = "XF86AudioNext"
        command = "spawn"
        arg = "exec mpc volume +5"
    }
    key
    {
        modkey = {"Mod4"}
        key = "XF86AudioPrev"
        command = "spawn"
        arg = "exec mpc volume -5"
    }
    keylist
    {
        modkey = {"Mod4", "Shift", "Control"}
        command = "client_toggletag"
        keylist = { "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9" }
        arglist = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }
    }
    key
    {
        modkey = {"Mod4"}
        key = "e"
        command = "tag_toggleview"
        arg = 6
    }
}