equal
deleted
inserted
replaced
49 -- Variable definitions |
49 -- Variable definitions |
50 -- Themes define colours, icons, and wallpapers |
50 -- Themes define colours, icons, and wallpapers |
51 -- The default is a dark theme |
51 -- The default is a dark theme |
52 -- theme_path = "/usr/share/awesome/themes/default/theme.lua" |
52 -- theme_path = "/usr/share/awesome/themes/default/theme.lua" |
53 -- Uncommment this for a lighter theme |
53 -- Uncommment this for a lighter theme |
54 theme_path = "/usr/share/awesome/themes/sky/theme.lua" |
54 theme_path = awful.util.getdir("config") .. "/current_theme/theme.lua" |
55 |
55 |
56 -- This is used later as the default terminal and editor to run. |
56 -- This is used later as the default terminal and editor to run. |
57 terminal = "x-terminal-emulator" |
57 terminal = "x-terminal-emulator" |
58 -- terminal = "terminology" |
58 -- terminal = "terminology" |
59 editor = os.getenv("EDITOR") or "editor" |
59 editor = os.getenv("EDITOR") or "editor" |
74 -- If you do not like this or do not have such a key, I suggest you to remap |
74 -- If you do not like this or do not have such a key, I suggest you to remap |
75 -- Mod4 to another key using xmodmap or other tools. However, you can use |
75 -- Mod4 to another key using xmodmap or other tools. However, you can use |
76 -- another modifier like Mod1, but it may interact with others. |
76 -- another modifier like Mod1, but it may interact with others. |
77 modkey = "Mod4" |
77 modkey = "Mod4" |
78 |
78 |
79 wallpaper_dir = "/home/fabien/themes/backgrounds/" |
79 wallpaper = awful.util.getdir("config") .. "/default" |
80 wallpaper = wallpaper_dir .. "universalis_1024_jsh.jpg" |
80 wallpaper_cmd = "fbsetbg -a " .. wallpaper |
81 |
81 |
82 -- Actually load theme |
82 -- Actually load theme |
83 beautiful.init(theme_path) |
83 beautiful.init(theme_path) |
84 beautiful.get().wallpaper_cmd = { "awsetbg -a " .. wallpaper } |
84 beautiful.wallpaper_cmd = { wallpaper_cmd } |
85 awful.util.spawn_with_shell("pgrep unagi || unagi &") |
85 awful.util.spawn_with_shell("pgrep unagi || unagi &") |
86 |
86 |
87 |
87 |
88 -- Table of layouts to cover with awful.layout.inc, order matters. |
88 -- Table of layouts to cover with awful.layout.inc, order matters. |
89 layouts = |
89 layouts = |
273 -- Create a laucher widget and a main menu |
273 -- Create a laucher widget and a main menu |
274 myawesomemenu = { |
274 myawesomemenu = { |
275 {"manual", terminal .. " -e man awesome"}, |
275 {"manual", terminal .. " -e man awesome"}, |
276 {"edit config", |
276 {"edit config", |
277 editor_cmd .. " " .. awful.util.getdir("config") .. "/rc.lua"}, |
277 editor_cmd .. " " .. awful.util.getdir("config") .. "/rc.lua"}, |
|
278 {"themes", my.theme_menu()}, |
|
279 {"wallpapers", my.wallpaper_menu()}, |
278 {"restart", awesome.restart}, |
280 {"restart", awesome.restart}, |
279 {"quit", my.quit} |
281 {"quit", my.quit} |
280 } |
282 } |
281 |
283 |
282 mymainmenu = awful.menu( |
284 mymainmenu = awful.menu( |
335 -- local mynetupwidget = my.decorated_monitor_widget(make_netwidget("eth1", "up")) |
337 -- local mynetupwidget = my.decorated_monitor_widget(make_netwidget("eth1", "up")) |
336 -- local mynetdownwidget = my.decorated_monitor_widget(make_netwidget("eth1", "down")) |
338 -- local mynetdownwidget = my.decorated_monitor_widget(make_netwidget("eth1", "down")) |
337 local myktwidget = my.widgets.mode() |
339 local myktwidget = my.widgets.mode() |
338 |
340 |
339 for s = 1, screen.count() do |
341 for s = 1, screen.count() do |
340 awful.util.spawn("awsetbg -a " .. wallpaper, false, s) |
342 awful.util.spawn(wallpaper_cmd, false, s) |
341 |
343 |
342 -- status box |
344 -- status box |
343 |
345 |
344 -- Create a promptbox for each screen |
346 -- Create a promptbox for each screen |
345 mypromptbox[s] = awful.widget.prompt() |
347 mypromptbox[s] = awful.widget.prompt() |