Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Standard awesome library
- 2 local gears = require("gears")
- 3 local awful = require("awful")
- 4 require("awful.autofocus")
- 5 -- Widget and layout library
- 6 local wibox = require("wibox")
- 7 -- Theme handling library
- 8 local beautiful = require("beautiful")
- 9 -- Notification library
- 10 local naughty = require("naughty")
- 11 local menubar = require("menubar")
- 12 local hotkeys_popup = require("awful.hotkeys_popup").widget
- 13 --local rbreakwidget = require("rbreak")
- 14 -- {{{ Error handling
- 15 -- Check if awesome encountered an error during startup and fell back to
- 16 -- another config (This code will only ever execute for the fallback config )
- 17 if awesome.startup_errors then
- 18 naughty.notify({ preset = naughty.config.presets.critical,
- 19 title = "Oops, there were errors during startup!",
- 20 text = awesome.startup_errors })
- 21 end
- 22
- 23
- 24 -- Handle runtime errors after startup
- 25 do
- 26 local in_error = false
- 27 awesome.connect_signal("debug::error", function (err)
- 28 -- Make sure we don't go into an endless error loop
- 29 if in_error then return end
- 30 in_error = true
- 31
- 32 naughty.notify({ preset = naughty.config.presets.critical,
- 33 title = "Oops, an error happened!",
- 34 text = tostring(err) })
- 35 in_error = false
- 36 end)
- 37 end
- 38 -- }}}
- 39
- 40 -- {{{ Variable definitions
- 41 -- Themes define colours, icons, font and wallpapers.
- 42 beautiful.init(awful.util.get_configuration_dir() .. "themes/zenburn/theme. lua")
- 43
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement