urukrama /.awesomerc

My ~/.awesomerc for Awesome 2.3.1
screen 0
 {
     styles
      {
         normal
          {
             font = "nu 8"
             fg = "#ECDDA6"
             bg = "#000000"
             border = "#000000"
          }
         focus
          {
             fg = "#B23308"
             bg = "#000000"
             border = "#000000"
          }
         urgent
          {
             fg = "#111111"
             bg = "#ff4500"
          }
      }
     general
      {
         border = 2
         snap = 8
         mwfact_lower_limit = 0.1
         mwfact_upper_limit = 0.9
         resize_hints = false
         new_get_focus = true 
         new_become_master = false
         floating_placement = smart
         sloppy_focus = false
      }
     titlebar
     { 
         position = "top" 
         text_align = "left" 
         styles 
          { 
              normal { fg = "#ECDDA6"	bg = "#000000"	border = "#000000" } 
              focus  { fg = "#B23308"	bg = "#000000"	border = "#000000" } 
          }
         height = "13" 
     }
     tags
      {
        tag one   { layout = "float" }
        tag two   { layout = "max" }
        tag three { layout = "tile" }
        tag four  { layout = "max" }
        tag five  { layout = "float" }
      }
     layouts
      {
	layout floating { image = "/home/urukrama/.awesome/images/floatw.png" }	
	layout max { image = "/home/urukrama/.awesome/images/maxw.png" }
	layout tile { image = "/home/urukrama/.awesome/images/tilew.png" }

        #layout tileleft { image = "/usr/local/share/awesome/icons/layouts/tileleftw.png" }
        #layout tilebottom { image = "/usr/local/share/awesome/icons/layouts/tilebottomw.png" }
        #layout tiletop { image = "/usr/local/share/awesome/icons/layouts/tiletopw.png" } 
        #layout spiral { image = "/usr/local/share/awesome/icons/layouts/spiralw.png" }
        #layout dwindle { image = "/usr/local/share/awesome/icons/layouts/dwindlew.png" }

      }
   statusbar mystatusbar
     {
         position = "top"
         #height = "11"

	#iconbox logo
         #{
         #    image = "/usr/local/share/awesome/icons/awesome16.png"
         #    mouse
         #    {
         #        button = "1"
         #        command = "spawn"
         #        arg = "exec xterm -e man awesome"
         #    }
         #}

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

        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
         {
	     show_icons = false

             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 remind 
         {
		#text_align = "right"
		align = "right" 
		style { fg = "#ECDDA6" bg = "#000000" }
		mouse { button = "1"	command = "spawn"	arg = "exec /home/urukrama/.scripts/dzen_remind_awesome" }
	 }	
	textbox clock 
         {
		#text_align = "right"
		align = "right" 
		#width = "60"
		style { fg = "#B23308" bg = "#000000" }
		
		mouse { button = "1"	command = "spawn"	arg = "exec /home/urukrama/.scripts/dzen_calendar_awesome" }
		mouse { button = "3"	command = "spawn"	arg = "exec orage" }
	 }

      }
     #statusbar bottom
     #{ position = "bottom"
     #tasklist mytasklist
     #    {
     #        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" }
     #    }	
     #}
 }
 rules
 {
	rule { name = "thunar"		tags = "one|five"	float = "true" }
	rule { name = "totem"		tags = "one"		float = "true" }
	rule { name = "vlc"		tags = "one"		float = "true" }

	rule { name = "xterm"		tags = "three" 	titlebar { position = "off" } }
	rule { name = "urxvt"		tags = "three" 	titlebar { position = "off" } }

	rule { name = "opera"		tags = "two" 	titlebar { position = "off" } }
	rule { name = "bluefish"	tags = "two" 	titlebar { position = "off" } }
	rule { name = "epiphany"	tags = "two" 	titlebar { position = "off" } }
        rule { name = "firefox"		tags = "two" 	titlebar { position = "off" } }

	rule { name = "OpenOffice.org" 	tags = "four" }

	rule { name = "Gimp"		tags = "five"	float = "true" }

	rule { name = "gmrun"		titlebar { position = "off" } }
        rule { name = "9menu"		titlebar { position = "off" } }
        rule { name = "gmessage"	titlebar { position = "off" }	float = "true" }
 }
 mouse
 {
     root { button = "3" 	command = "spawn"	arg = "exec /home/urukrama/.awesome/9menu_script" }
     root { button = "4"	command = "tag_viewnext" }
     root { button = "5"	command = "tag_viewprev" }

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

     titlebar { button = "1"	command = "client_movemouse" }
     titlebar { button = "2"	command = "client_kill" }
     titlebar { button = "3" 	command = "client_resizemouse" }

     titlebar { modkey = {"Mod4"} button = "1"	command = "client_togglehorizontalmax" }
     titlebar { modkey = {"Mod4"} button = "2"	command = "client_togglemax" }
     titlebar { modkey = {"Mod4"} button = "3"	command = "client_toggleverticalmax" }
 }

 keys
 {   
 ## Applications
   ## Application launchers
     key { modkey = {"Mod4"}	key = "F1"	command = "spawn"	arg = "exec mousepad" }   
     key { modkey = {"Mod4"}	key = "F2"	command = "spawn"	arg = "exec notecase" }
     key { modkey = {"Mod4"}	key = "F3"	command = "spawn"	arg = "exec urxvt" }
     key { modkey = {"Mod4"}	key = "F4"	command = "spawn"	arg = "exec thunar" }
     key { modkey = {"Mod4"}	key = "F5"	command = "spawn"	arg = "exec gmpc" }
     key { modkey = {"Mod4"}	key = "F6"	command = "spawn"	arg = "exec epiphany" }
     key { modkey = {"Mod4"}	key = "F7"	command = "spawn"	arg = "exec openoffice" }
     key { modkey = {"Mod4"}	key = "F8"	command = "spawn"	arg = "exec opera" }
     key { modkey = {"Mod4"}	key = "F9"	command = "spawn"	arg = "exec stardict" }
     key { modkey = {"Mod4"}	key = "F11"	command = "spawn"	arg = "exec urxvt -e alsamixer" }
     key { modkey = {"Mod4"}	key = "F12"	command = "spawn"	arg = "exec /home/urukrama/.scripts/xlock" }

     key { modkey = {"Mod1"}	key = "F1"	command = "spawn"	arg = "exec /home/urukrama/.awesome/9menu_script" }     
     key { modkey = {"Mod1"}	key = "F2"	command = "spawn"	arg = "exec gmrun" }
     key { modkey = {"Mod1"}	key = "F3"	command = "spawn"	arg = "exec `cat ~/.awesome/menu | awesome-menu 'Run:'`" }
     key { modkey = {"Mod1"}	key = "F5"	command = "spawn"	arg = "exec /home/urukrama/.scripts/config_dmenu_script" }

     #key { modkey = {"Mod4"}	key = "Return"	command = "spawn"	arg = "exec xterm" }

   ## Volume control
     key { modkey = {"Control"}		key = "Up"	command = "spawn"	arg = "exec amixer -q set PCM 1+ unmute|osdctl -s 'volume up'" }
     key { modkey = {"Control"}		key = "Down"	command = "spawn"	arg = "exec amixer -q set PCM 1- unmute|osdctl -s 'volume down'" }
     key { modkey = {"Control", "Shift"} key = "Up"	command = "spawn"	arg = "exec amixer -q set Master 1+ unmute" }
     key { modkey = {"Control", "Shift"} key = "Down"	command = "spawn"	arg = "exec amixer -q set Master 1- unmute" }
     key { modkey = {"Control"}		key = "End"	command = "spawn"	arg = "exec amixer -q set PCM toggle|osdctl -s 'mute'" }

   ## MPD control
     key { modkey = {"Mod1", "Control"}	key = "space"	command = "spawn"	arg = "exec mpc toggle|osdctl -s 'play/pause'" }
     key { modkey = {"Mod1", "Control"}	key = "Next"	command = "spawn"	arg = "exec mpc next|osdctl -s 'next'" }
     key { modkey = {"Mod1", "Control"}	key = "Prior"	command = "spawn"	arg = "exec mpc prev|osdctl -s 'previous'" }

 ## Awesome window manager
   ## Layouts
     key { modkey = {"Mod4"}		key = "space" 	command = "tag_setlayout"	arg = "+1" }
     key { modkey = {"Mod4", "Shift"} 	key = "space" 	command = "tag_setlayout"	arg = "-1" }

   ## Clients
     key { modkey = {"Mod4"}		key = "m" 	command = "client_togglemax" }
     key { modkey = {"Mod4", "Shift"}	key = "Left" 	command = "client_togglehorizontalmax" }
     key { modkey = {"Mod4", "Shift"}	key = "Down" 	command = "client_toggleverticalmax" }
     key { modkey = {"Mod4", "Shift"}	key = "Right" 	command = "client_togglehorizontalmax" }
     key { modkey = {"Mod4", "Shift"}	key = "Up" 	command = "client_toggleverticalmax" }

     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", "Control"}	key = "Return"	command = "client_zoom" }
     key { modkey = {"Mod4", "Shift"}	key = "Home"	command = "client_zoom" }

     key { modkey = {"Mod4"}		key = "Escape"	command = "client_kill" }
     #key { modkey = {"Mod4", "Shift"}	key = "c"	command = "client_kill" }

     key { modkey = {"Mod4", "Shift"}	key = "d"	command = "client_toggletitlebar" }

     #key { modkey = {"Mod4", "Shift"}	key = "Print"	command = "client_tag" }
     key { modkey = {"Mod4", "Shift"} 	key = "Print"	command = "client_toggletag" }

   ## Tags
     key { modkey = {"Mod1", "Control"}	key = "Right"	command = "tag_viewnext" }
     key { modkey = {"Mod1", "Control"}	key = "Left"	command = "tag_viewprev" }
     key { modkey = {"Mod1", "Control", "Shift"} 	key = "Left"		command = "tag_prev_selected" }

     key { modkey = {"Mod4", "Control"}	key = "o"	command = "tag_toggleview" }
     key { modkey = {"Mod4", "Control"}	key = "F6"	command = "tag_create"		arg = "six" }
     key { modkey = {"Mod4", "Control"}	key = "F7"	command = "tag_create"		arg = "seven" }
     key { modkey = {"Mod4"}		key = "Print"	command = "tag_view" }

     key { modkey = {"Mod1", "Shift"}	key = "Left"	command = "tag_setmwfact"	arg = "-0.05" }
     key { modkey = {"Mod1", "Shift"}	key = "Right"	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" }

   ## Window Switching
     key { modkey = {"Mod4"}		key = "j"	command = "client_focusnext" }
     key { modkey = {"Mod4"}		key = "k"	command = "client_focusprev" }
     key { modkey = {"Mod1"}		key = "Tab"	command = "client_focusnext" }
     key { modkey = {"Mod1", "Shift"}	key = "Tab"	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", "Control"} key = "j"	command = "screen_focus"	arg = "+1" }
     #key { modkey = {"Mod4", "Control"} key = "k"	command = "screen_focus"	arg = "-1" }

   ## Other     
     key { modkey = {"Mod4", "Shift"}	key = "q"	command = "quit" }
     key { modkey = {"Mod1", "Control"}	key = "r"	command = "restart" }
     key { modkey = {"Mod4", "Shift"}	key = "b"	command = "statusbar_toggle" }

   ## Keylists
     keylist
     {
         modkey = {"Mod4", "Control"}
         command = "tag_view"
         keylist = { F1, F2, F3, F4, F5, F6, F7, F8, F9 }
         arglist = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }
     }
     keylist
     {
         modkey = {"Mod4", "Control"}
         command = "tag_toggleview"
         keylist = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }
         arglist = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }
     }
     keylist
     {
         modkey = {"Mod4", "Shift"}
         command = "client_tag"
         keylist = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }
         arglist = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }
     }
     keylist
     {
         modkey = {"Mod4", "Shift", "Control"}
         command = "client_toggletag"
         keylist = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }
         arglist = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }
     }
 }
 # vim: filetype=conf