2022-07-19 19:45:11 +02:00
|
|
|
-- ██████╗ █████╗ ███████╗████████╗███████╗██╗
|
|
|
|
-- ██╔══██╗██╔══██╗██╔════╝╚══██╔══╝██╔════╝██║
|
|
|
|
-- ██████╔╝███████║███████╗ ██║ █████╗ ██║
|
|
|
|
-- ██╔═══╝ ██╔══██║╚════██║ ██║ ██╔══╝ ██║
|
|
|
|
-- ██║ ██║ ██║███████║ ██║ ███████╗███████╗
|
|
|
|
-- ╚═╝ ╚═╝ ╚═╝╚══════╝ ╚═╝ ╚══════╝╚══════╝
|
|
|
|
|
|
|
|
-- ===================================================================
|
|
|
|
-- Initialization
|
|
|
|
-- ===================================================================
|
|
|
|
|
|
|
|
|
|
|
|
local awful = require("awful")
|
|
|
|
local gears = require("gears")
|
2022-07-20 00:24:45 +02:00
|
|
|
local lain = require("lain")
|
|
|
|
local quake = lain.util.quake({app="kitty", followtag=true, argname = '--class %s', extra="-e tmux", height=0.3})
|
2022-07-19 19:45:11 +02:00
|
|
|
|
|
|
|
local pastel = {}
|
|
|
|
|
|
|
|
|
|
|
|
-- ===================================================================
|
|
|
|
-- Pastel setup
|
|
|
|
-- ===================================================================
|
|
|
|
|
|
|
|
|
|
|
|
pastel.initialize = function()
|
|
|
|
-- Import components
|
|
|
|
require("components.pastel.wallpaper")
|
|
|
|
require("components.exit-screen")
|
|
|
|
require("components.volume-adjust")
|
|
|
|
|
|
|
|
-- 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
|
|
|
|
awful.tag.add(i, {
|
|
|
|
icon_only = true,
|
|
|
|
layout = awful.layout.suit.tile,
|
|
|
|
screen = s,
|
|
|
|
selected = i == 1
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2022-07-20 00:24:45 +02:00
|
|
|
s.quake = quake
|
|
|
|
|
2022-07-19 19:45:11 +02:00
|
|
|
-- Only add the top panel on the primary screen
|
|
|
|
if s.index == 1 then
|
|
|
|
top_panel.create(s)
|
|
|
|
end
|
|
|
|
|
|
|
|
end)
|
|
|
|
end
|
|
|
|
|
|
|
|
return pastel
|