Advertisement
Guest User

Untitled

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