dotfiles/awesome/pastel.lua

54 lines
2.0 KiB
Lua
Raw Normal View History

2022-07-19 19:45:11 +02:00
-- ██████╗ █████╗ ███████╗████████╗███████╗██╗
-- ██╔══██╗██╔══██╗██╔════╝╚══██╔══╝██╔════╝██║
-- ██████╔╝███████║███████╗ ██║ █████╗ ██║
-- ██╔═══╝ ██╔══██║╚════██║ ██║ ██╔══╝ ██║
-- ██║ ██║ ██║███████║ ██║ ███████╗███████╗
-- ╚═╝ ╚═╝ ╚═╝╚══════╝ ╚═╝ ╚══════╝╚══════╝
-- ===================================================================
-- Initialization
-- ===================================================================
local awful = require("awful")
2022-07-20 00:24:45 +02:00
local lain = require("lain")
2022-07-27 01:43:14 +02:00
local quake = lain.util.quake({app="alacritty", followtag=true, argname = '--class %s', extra="--option=window.opacity=1.0 --option=\"colors.primary.background='#000d2b'\" -e tmux", height=0.3})
2022-07-19 19:45:11 +02:00
local pastel = {}
-- ===================================================================
-- Pastel setup
-- ===================================================================
pastel.initialize = function()
2022-07-23 19:31:38 +02:00
-- Import components
require("components.pastel.wallpaper")
-- Import panels
local top_panel = require("components.pastel.top-panel")
-- Set up each screen (add tags & panels)
awful.screen.connect_for_each_screen(function(s)
for i = 1, 9, 1
do
2022-07-27 01:43:14 +02:00
awful.tag.add(tostring(i), {
2022-07-23 19:31:38 +02:00
layout = awful.layout.suit.tile,
screen = s,
selected = i == 1
})
end
s.quake = quake
-- Only add the top panel on the primary screen
if s.index == 1 then
2022-07-27 01:43:14 +02:00
top_panel.create(s)
2022-07-23 19:31:38 +02:00
end
end)
2022-07-19 19:45:11 +02:00
end
return pastel