pcall(require, "luarocks.loader") local gears = require("gears") local awful = require("awful") require("awful.autofocus") local naughty = require("naughty") -- Global config modkey = "Mod1" -- Alt. Use "Mod4" for the Super/Windows key. terminal = "alacritty" editor = os.getenv("EDITOR") or "nano" -- Layouts: suit.tile = master column LEFT, stack column RIGHT. awful.layout.layouts = { awful.layout.suit.tile, awful.layout.suit.max, awful.layout.suit.floating } -- Kill xfce4-notifyd on startup (with a short delay + retry, in case it -- hasn't started yet at this point in the session) awful.spawn.easy_async_with_shell("pkill xfce4-notifyd", function() end) gears.timer.start_new(3, function() awful.spawn.easy_async_with_shell("pkill xfce4-notifyd", function() end) return false -- don't repeat end) -- Error handling if awesome.startup_errors then naughty.notify({ preset = naughty.config.presets.critical, title = "Error during startup", text = awesome.startup_errors }) end do local in_error = false awesome.connect_signal("debug::error", function(err) if in_error then return end in_error = true naughty.notify({ preset = naughty.config.presets.critical, title = "An error happened", text = tostring(err) }) in_error = false end) end -- Modules (order matters: theme before bar, keys before rules) require("config.theme") local keys = require("config.keys") require("config.bar").setup() root.keys(keys.globalkeys) awful.rules.rules = require("config.rules") require("config.signals")