2024-01-09 20:38:24 -05:00
|
|
|
require 'core'
|
2023-12-28 04:18:32 -05:00
|
|
|
|
|
|
|
-- Set up key remaps
|
2024-01-09 20:38:24 -05:00
|
|
|
os.execute 'setxkbmap -option "caps:escape,altwin:menu_win,altwin:meta_win"'
|
2023-12-28 04:18:32 -05:00
|
|
|
|
|
|
|
-- Some defaults
|
2024-01-09 20:38:24 -05:00
|
|
|
Browser = 'firefox-developer-edition'
|
|
|
|
Browser2 = 'chromium'
|
|
|
|
Editor = 'nvim'
|
|
|
|
Email = 'thunderbird'
|
|
|
|
Modkey = 'Mod4'
|
|
|
|
Music = 'spotify-launcher'
|
|
|
|
Terminal = 'alacritty'
|
|
|
|
Beautiful.init '.config/awesome/theme.lua'
|
2023-12-28 04:18:32 -05:00
|
|
|
|
|
|
|
-- Define layouts
|
|
|
|
Awful.layout.layouts = {
|
2024-01-09 20:38:24 -05:00
|
|
|
Awful.layout.suit.tile.right,
|
|
|
|
Awful.layout.suit.tile.bottom,
|
|
|
|
Awful.layout.suit.tile.left,
|
|
|
|
Awful.layout.suit.tile.top,
|
2023-12-28 04:18:32 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
-- Set the terminal for applications that require it
|
|
|
|
Menubar.utils.terminal = Terminal
|
|
|
|
|
|
|
|
-- Split up the rest for readability
|
2024-01-09 20:38:24 -05:00
|
|
|
require 'binds' -- keyboard/mouse
|
|
|
|
require 'rules' -- client specific rules
|
|
|
|
require 'signals' -- client signals
|
|
|
|
require 'wibar' -- bar/screen/wallpaper stuff
|
2023-12-28 04:18:32 -05:00
|
|
|
|
|
|
|
-- Collect garbage to prevent memory leaks from widgets
|
2024-01-09 20:38:24 -05:00
|
|
|
Gears.timer.start_new(10, function()
|
|
|
|
collectgarbage('step', 20000)
|
|
|
|
return true
|
|
|
|
end)
|