-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c57024b
commit 0c48827
Showing
3 changed files
with
70 additions
and
74 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
community/awesome/desktop-overlay/etc/skel/.config/awesome/error.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
-- by joaopauloalbq | ||
-------------------------------------------------------------------------------------------------------------------- | ||
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 = "Opps, an error happened", | ||
text = tostring(err) | ||
}) | ||
in_error = false | ||
end) | ||
end | ||
-------------------------------------------------------------------------------------------------------------------- |
26 changes: 24 additions & 2 deletions
26
community/awesome/desktop-overlay/etc/skel/.config/awesome/layout.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,24 @@ | ||
require | ||
return | ||
-- joaopauloalbq | ||
------------------------------------------------------------------------------------------------------------------- | ||
local awful = require("awful") | ||
------------------------------------------------------------------------------------------------------------------- | ||
-- Table of layouts to cover with awful.layout.inc, order matters. | ||
return { | ||
awful.layout.suit.floating, | ||
awful.layout.suit.tile, | ||
awful.layout.suit.max, | ||
-- awful.layout.suit.max.fullscreen, | ||
-- awful.layout.suit.tile.top, | ||
awful.layout.suit.fair, | ||
awful.layout.suit.fair.horizontal, | ||
-- awful.layout.suit.corner.nw, | ||
-- awful.layout.suit.corner.ne, | ||
-- awful.layout.suit.corner.sw, | ||
-- awful.layout.suit.corner.se, | ||
-- awful.layout.suit.magnifier, | ||
awful.layout.suit.spiral.dwindle, | ||
-- awful.layout.suit.spiral, | ||
-- awful.layout.suit.tile.left, | ||
awful.layout.suit.tile.bottom, | ||
} | ||
------------------------------------------------------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters