mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-24 10:48:35 +02:00
errors: remove unused code
This commit is contained in:
parent
7dc36159a7
commit
9ffa896cee
1 changed files with 0 additions and 14 deletions
|
@ -1,14 +1,6 @@
|
||||||
require("awesome")
|
require("awesome")
|
||||||
require("naughty")
|
require("naughty")
|
||||||
|
|
||||||
-- 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
|
-- Handle runtime errors after startup
|
||||||
do
|
do
|
||||||
local in_error = false
|
local in_error = false
|
||||||
|
@ -23,9 +15,3 @@ do
|
||||||
in_error = false
|
in_error = false
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
function dbg(vars)
|
|
||||||
local text = ""
|
|
||||||
for i=1, #vars do text = text .. vars[i] .. " | " end
|
|
||||||
naughty.notify({ text = text, timeout = 0 })
|
|
||||||
end
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue