summaryrefslogtreecommitdiff
path: root/awesome/lib
diff options
context:
space:
mode:
Diffstat (limited to 'awesome/lib')
-rw-r--r--awesome/lib/errors.lua35
-rw-r--r--awesome/lib/manage.lua15
-rw-r--r--awesome/lib/screen.lua4
3 files changed, 0 insertions, 54 deletions
diff --git a/awesome/lib/errors.lua b/awesome/lib/errors.lua
deleted file mode 100644
index 2079c0e..0000000
--- a/awesome/lib/errors.lua
+++ /dev/null
@@ -1,35 +0,0 @@
-local awful = require("awful")
--- require("awful.autofocus")
--- Widget and layout library
--- Notification library
-local naughty = require("naughty")
-
--- {{{ Error handling
--- Check if awesome encountered an error during startup and fell back to
--- another config (This code will only ever execute for the fallback config)
-if awesome.startup_errors then
- naughty.notify({
- preset = naughty.config.presets.critical,
- title = "Oops, there were errors during startup!",
- text = awesome.startup_errors
- })
-end
-
--- Handle runtime errors after startup
-do
- local in_error = false
- awesome.connect_signal("debug::error", function (err)
- -- Make sure we don't go into an endless error loop
- if in_error then
- return
- end
- in_error = true
-
- naughty.notify({
- preset = naughty.config.presets.critical,
- title = "Oops, an error happened!",
- text = tostring(err)
- })
- in_error = false
- end)
-end
diff --git a/awesome/lib/manage.lua b/awesome/lib/manage.lua
deleted file mode 100644
index 5b1bd40..0000000
--- a/awesome/lib/manage.lua
+++ /dev/null
@@ -1,15 +0,0 @@
-local awful = require("awful")
-
--- Signal function to execute when a new client appears.
-client.connect_signal("manage", function (c)
- -- Set the windows at the slave,
- -- i.e. put it at the end of others instead of setting it master.
- if not awesome.startup then
- awful.client.setslave(c)
- end
-
- if awesome.startup and not c.size_hints.user_position and not c.size_hints.program_position then
- -- Prevent clients from being unreachable after screen count changes.
- awful.placement.no_offscreen(c)
- end
-end)
diff --git a/awesome/lib/screen.lua b/awesome/lib/screen.lua
deleted file mode 100644
index dc01e2c..0000000
--- a/awesome/lib/screen.lua
+++ /dev/null
@@ -1,4 +0,0 @@
-local awful = require("awful")
-
--- change wallpaper when screen geometry changes
-screen.connect_signal("property::geometry", function () awful.spawn("seasonalwallpaper") end)