dotfiles

*nix config files
git clone git://git.pyratebeard.net/dotfiles.git
Log | Files | Refs | README

commit d3d41a767de3ac2573e32610191abc900d5dc2f9
parent 4dd988712241b8dd28ef271b3d032e2b1ef7f10e
Author: dudley <pyratebeard@gmail.com>
Date:   Fri,  9 Sep 2016 13:06:53 +0100

tidied up variables, theme, wallpaper, layouts, and taglist

Diffstat:
Mawesome/.config/awesome/rc.lua | 83++++++++++++++++++++++++++++++++++++++++---------------------------------------
1 file changed, 42 insertions(+), 41 deletions(-)

diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua @@ -62,49 +62,50 @@ do end) end --- {{{ Variable definitions --- Themes define colours, icons, font and wallpapers. - beautiful.init("/home/dudley/.config/awesome/themes/decker-cyan/theme.lua") - - -- This is used later as the default terminal and editor to run. - terminal = "urxvt" - -- terminal = "st -f Tamsyn:pixelsize=15" - editor = os.getenv("EDITOR") or "vi" - editor_cmd = terminal .. " -e " .. editor - - -- Default modkey. - -- Usually, Mod4 is the key with a logo between Control and Alt. - -- If you do not like this or do not have such a key, - -- I suggest you to remap Mod4 to another key using xmodmap or other tools. - -- However, you can use another modifier like Mod1, but it may interact with others. - modkey = "Mod4" - - -- Table of layouts to cover with awful.layout.inc, order matters. - local layouts = - { - awful.layout.suit.floating, - lain.layout.uselesstile, - awful.layout.suit.tile, - -- awful.layout.suit.magnifier - } - -- }}} +-- variables +home = os.getenv("HOME") +config_dir = awful.util.getdir("config") + +-- theme +beautiful.init(home.."/.config/awesome/themes/decker-cyan/theme.lua") + +-- wallpaper +if beautiful.wallpaper then + for s = 1, screen.count() do + gears.wallpaper.maximized(beautiful.wallpaper, s, true) + end +end + +-- layouts +local layouts = { + awful.layout.suit.floating, + lain.layout.uselesstile, + awful.layout.suit.tile +} + +-- tag list +tags = {} +for s = 1, screen.count() do + tags[s] = awful.tag({ + " terminal ", + " web ", + " code ", + " other" + }, + s, + layouts[1]) +end + +terminal = "urxvt" +editor = os.getenv("EDITOR") or "vi" +editor_cmd = terminal .. " -e " .. editor + + -- Default modkey. + modkey = "Mod4" + + -- Table of layouts to cover with awful.layout.inc, order matters. - -- {{{ Wallpaper - if beautiful.wallpaper then - for s = 1, screen.count() do - gears.wallpaper.maximized(beautiful.wallpaper, s, true) - end - end - -- }}} - -- {{{ 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({" terminal ", " web ", " code ", " other"}, s, layouts[1]) - end - -- }}} -- {{{ Menu -- Create a laucher widget and a main menu