From 60414f062ac0d02385e2a1ce36df824e476ab20c Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Wed, 19 Jan 2022 08:45:19 -0500 Subject: [PATCH] remove some awesomewm boilerplate --- nixos/rc.lua | 31 +++---------------------------- 1 file changed, 3 insertions(+), 28 deletions(-) diff --git a/nixos/rc.lua b/nixos/rc.lua index 177ed75..b7e8789 100644 --- a/nixos/rc.lua +++ b/nixos/rc.lua @@ -18,38 +18,13 @@ local hotkeys_popup = require("awful.hotkeys_popup") -- when client with a matching name is opened: require("awful.hotkeys_popup.keys") --- {{{ 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 --- }}} - -- {{{ Variable definitions -- Themes define colours, icons, font and wallpapers. -beautiful.init(gears.filesystem.get_themes_dir() .. "default/theme.lua") +beautiful.init(gears.filesystem.get_themes_dir() .. "zenburn/theme.lua") -- This is used later as the default terminal and editor to run. terminal = "alacritty" -editor = os.getenv("EDITOR") or "nano" +editor = os.getenv("EDITOR") or "vim" editor_cmd = terminal .. " -e " .. editor -- Default modkey. @@ -61,8 +36,8 @@ modkey = "Mod4" -- Table of layouts to cover with awful.layout.inc, order matters. awful.layout.layouts = { - awful.layout.suit.floating, awful.layout.suit.tile, + awful.layout.suit.floating, awful.layout.suit.tile.left, awful.layout.suit.tile.bottom, awful.layout.suit.tile.top,