Code:
screen "0"
{
general
{
# this is the border around your windows
border = 1
# snap to edges within 8 pixels
snap = 8
resize_hints = true
opacity_unfocused = 100
focus_move_pointer = false
allow_lower_floats = false
sloppy_focus = true
new_become_master = true
new_get_focus = true
# this is the font you'll see on your status bar, use whatever you'd like
font = "sans-7"
}
statusbar "mystatusbar"
{
# you can put the status bar anywhere; top, bottom, left, right
position = "top"
height = 0
width = 0
# this section allows you to use the mouse to tag windows and switch to them, leave it as it is for now unless you know what you're doing
taglist "mytaglist"
{
x = -1
y = -1
mouse
{
modkey = {}
button = "1"
command = "tag_view"
}
mouse
{
modkey = {"Mod4"}
button = "1"
command = "client_tag"
}
mouse
{
modkey = {}
button = "3"
command = "tag_toggleview"
}
mouse
{
modkey = {"Mod4"}
button = "3"
command = "client_toggletag"
}
mouse
{
modkey = {}
button = "4"
command = "tag_viewnext"
}
mouse
{
modkey = {}
button = "5"
command = "tag_viewprev"
}
}
# this section is basically the same...
layoutinfo "mylayoutinfo"
{
x = -1
y = -1
mouse
{
modkey = {}
button = "1"
command = "tag_setlayout"
arg = "+1"
}
mouse
{
modkey = {}
button = "4"
command = "tag_setlayout"
arg = "+1"
}
mouse
{
modkey = {}
button = "3"
command = "tag_setlayout"
arg = "-1"
}
mouse
{
modkey = {}
button = "5"
command = "tag_setlayout"
arg = "-1"
}
}
# and so is this one....
tasklist "mytasklist"
{
x = -1
y = -1
mouse
{
modkey = {}
button = "4"
command = "client_focusnext"
# arg = ""
}
mouse
{
modkey = {}
button = "5"
command = "client_focusprev"
# arg = ""
}
mouse
{
modkey = {"Mod4"}
button = "4"
command = "client_swapnext"
# arg = ""
}
mouse
{
modkey = {"Mod4"}
button = "5"
command = "client_swapprev"
# arg = ""
}
align = "left"
show_icons = false
show_all = false
}
# this section is rather important. This is your statusbar widget for the clock. This will put a clock at the far right side of your monitor.
# you can add other widgets too, like mpd info, gmail scripts, etc.
textbox clock # "clock" is the name of your widget
{
text = "-" # the - will be replaced by the date and time
}
}
# these are your tags. Basically it defines how the statusbar is set up to look. You can add/remove as many tags as you'd like, change their names, how their behave, etc.
tags
{
tag ":main" # :main is the display name of the tag. You can change this to say whatever you want, it's completely up to you.
{
layout = "max" # this tells the tag how to display windows. "max" forces all your windows in that tag to be...maximized! You can still make them float by moving them by hand
mwfact = 0.500000 # leave this for now
nmaster = 1 # leave this for now
ncol = 1 # leave this for now
}
tag ":devel"
{
layout = "tile"
mwfact = 0.500000
nmaster = 1
ncol = 1
}
tag ":term"
{
layout = "tile"
mwfact = 0.500000
nmaster = 1
ncol = 1
}
}
colors
{
# here we define our colors. I'll have an example screenshot at the bottom of this page. You can change these colors to whatever you want.
normal_border = "#777777" # window border when selected
normal_bg = "#000000" # background for the statusbar
normal_fg = "#a8bcff" # foreground color for the statusbar (unselected tags)
focus_border = "#000000" # border color of fucsed windows
focus_bg = "#000000" # focused background for the status bar, it's what decides the color for the background of the selected tag
focus_fg = "orange" # focused foreground color, the color of the selected tag and title
urgent_bg = "#000000" # background
urgent_fg = "orange" # foreground
tab_border = "#ff0000" # I have absolutely no idea.
}
layouts
{
# you can add whichever images you want here. They'll display as the layout options on the statusbar. I use a black background, and these images are black
# basically that "hides" them, but they're still available to use.
layout "tile" {image = "/usr/local/share/awesome/icons/layouts/tile.png"} ## use tilew.png for white
layout "tileleft" {image = "/usr/local/share/awesome/icons/layouts/tileleft.png"} ## use tileleftw.png for white
layout "max" {image = "/usr/local/share/awesome/icons/layouts/max.png"} ## use maxw.png for white
layout "spiral" {image = "/usr/local/share/awesome/icons/layouts/spiral.png"} ## use spiralw.png for white
layout "dwindle" {image = "/usr/local/share/awesome/icons/layouts/dwindle.png"} ## use dwindlew.png for white
layout "floating" {image = "/usr/local/share/awesome/icons/layouts/floating.png"} ## use floatingw.png for white
}
# padding around screen.
padding
{
top = 0
bottom = 0
right = 0
left = 0
}
}
# rules...the only kind I actually like! These "rules" tell your windows where to go. Basically, you can tell all your terminal to go to one tag
# and have your browser go to a different one. There's no limit on how many rules you have, just make sure they have a corresponding tag.
# you can also tell these windows how to display, more information later!
rules
{
rule
{
name = "firefox" # this is the name of the window. It's not case sensitive as far as I know
tags = ":main" # this is the name of the tag you want Firefox to appear on.
float = "false" # this is the layout style. You can have it maximized, floating, etc. We'll have Firefox maximized.
screen = "0" # which monitor to display on. I have two monitors so I choose to have it on screen 0. Leave it as it is.
not_master = false # we want it to be the master window
}
rule
{
name = "Gimp"
tags = ":devel"
float = "true"
screen = 0
not_master = false
}
rule
{
name = "urxvt"
tags = ":term"
float = "true"
screen = 0
not_master = true
}
}
# this section allows you to set hotkeys. These are most excellent because they remove the need for a menu. You can have as many as you want.
keys
{
key
{
modkey = {"Mod4"} # mod4 by default is the windows key.
key = "Return" # this is the key on your keyboard
command = "spawn" # what it should do, usually always "spawn"
arg = "exec urxvt" # what to exec. In this case, mod4 + enter will start urxvt
}
key
{
modkey = {"Mod4"}
key = "f"
command = "spawn"
arg = "exec firefox"
}
key
{
modkey = {"Mod4"}
key = "space"
command = "tag_setlayout"
arg = "+1"
}
key
{
modkey = {"Mod4", "Shift"}
key = "space"
command = "tag_setlayout"
arg = "-1"
}
key
{
modkey = {"Mod4"}
key = "b"
command = "statusbar_toggle"
# arg = ""
}
key
{
modkey = {"Mod4"}
key = "j"
command = "client_focusnext"
# arg = ""
}
key
{
modkey = {"Mod4"}
key = "k"
command = "client_focusprev"
# arg = ""
}
key
{
modkey = {"Mod4"}
key = "Tab"
command = "focus_history"
arg = "-1"
}
key
{
modkey = {"Mod4", "Shift"}
key = "j"
command = "client_swapnext"
# arg = ""
}
key
{
modkey = {"Mod4", "Shift"}
key = "k"
command = "client_swapprev"
# arg = ""
}
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", "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_viewprev_selected"
# arg = ""
}
key
{
modkey = {"Mod4"}
key = "Left"
command = "tag_viewprev"
# arg = ""
}
key
{
modkey = {"Mod4"}
key = "Right"
command = "tag_viewnext"
# arg = ""
}
key
{
modkey = {"Mod4"}
key = "m"
command = "client_togglemax"
# arg = ""
}
key
{
modkey = {"Mod4", "Control"}
key = "Return"
command = "client_zoom"
# arg = ""
}
key
{
modkey = {"Mod4", "Control"}
key = "space"
command = "client_togglefloating"
# arg = ""
}
key
{
modkey = {"Mod4", "Control"}
key = "Left"
command = "spawn"
arg = "exec mpc prev"
}
key
{
modkey = {"Mod4", "Control"}
key = "Right"
command = "spawn"
arg = "exec mpc next"
}
key
{
modkey = {"Mod4", "Shift"}
key = "c"
command = "client_kill"
# arg = ""
}
key
{
modkey = {"Mod4", "Shift"}
key = "q"
command = "quit"
# arg = ""
}
key
{
modkey = {"Mod4", "Control"}
key = "r"
command = "exec"
arg = "awesome"
}
key
{
modkey = {"Mod4"}
key = "0"
command = "tag_view"
# arg = ""
}
key
{
modkey = {"Mod4", "Control"}
key = "0"
command = "tag_toggleview"
# arg = ""
}
key
{
modkey = {"Mod4", "Shift"}
key = "0"
command = "client_tag"
# arg = ""
}
key
{
modkey = {"Mod4", "Shift", "Control"}
key = "0"
command = "client_toggletag"
# arg = ""
}
keylist
{
modkey = {"Mod4"}
keylist = {"1", "2", "3", "4", "5", "6", "7", "8", "9"}
command = "tag_view"
arglist = {"1", "2", "3", "4", "5", "6", "7", "8", "9"}
}
keylist
{
modkey = {"Mod4", "Control"}
keylist = {"1", "2", "3", "4", "5", "6", "7", "8", "9"}
command = "tag_toggleview"
arglist = {"1", "2", "3", "4", "5", "6", "7", "8", "9"}
}
keylist
{
modkey = {"Mod4", "Shift"}
keylist = {"1", "2", "3", "4", "5", "6", "7", "8", "9"}
command = "client_tag"
arglist = {"1", "2", "3", "4", "5", "6", "7", "8", "9"}
}
keylist
{
modkey = {"Mod4", "Shift", "Control"}
keylist = {"1", "2", "3", "4", "5", "6", "7", "8", "9"}
command = "client_toggletag"
arglist = {"1", "2", "3", "4", "5", "6", "7", "8", "9"}
}
}
mouse
{
root
{
modkey = {}
button = "3"
command = "spawn"
arg = "exec urxvt"
}
root
{
modkey = {}
button = "4"
command = "tag_viewnext"
# arg = ""
}
root
{
modkey = {}
button = "5"
command = "tag_viewprev"
# arg = ""
}
client
{
modkey = {"Mod4"}
button = "1"
command = "client_movemouse"
# arg = ""
}
client
{
modkey = {"Mod4"}
button = "2"
command = "client_zoom"
# arg = ""
}
client
{
modkey = {"Mod4"}
button = "3"
command = "client_resizemouse"
# arg = ""
}
}
*WHEW*
Bookmarks