dotfiles/awesome/widgets/horizontal-separator.lua

37 lines
3.0 KiB
Lua
Raw Normal View History

2022-07-19 19:45:11 +02:00
-- ██╗ ██╗ ██████╗ ██████╗ ██╗███████╗ ██████╗ ███╗ ██╗████████╗ █████╗ ██╗
-- ██║ ██║██╔═══██╗██╔══██╗██║╚══███╔╝██╔═══██╗████╗ ██║╚══██╔══╝██╔══██╗██║
-- ███████║██║ ██║██████╔╝██║ ███╔╝ ██║ ██║██╔██╗ ██║ ██║ ███████║██║
-- ██╔══██║██║ ██║██╔══██╗██║ ███╔╝ ██║ ██║██║╚██╗██║ ██║ ██╔══██║██║
-- ██║ ██║╚██████╔╝██║ ██║██║███████╗╚██████╔╝██║ ╚████║ ██║ ██║ ██║███████╗
-- ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝╚══════╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝╚══════╝
-- ███████╗███████╗██████╗ █████╗ ██████╗ █████╗ ████████╗ ██████╗ ██████╗
-- ██╔════╝██╔════╝██╔══██╗██╔══██╗██╔══██╗██╔══██╗╚══██╔══╝██╔═══██╗██╔══██╗
-- ███████╗█████╗ ██████╔╝███████║██████╔╝███████║ ██║ ██║ ██║██████╔╝
-- ╚════██║██╔══╝ ██╔═══╝ ██╔══██║██╔══██╗██╔══██║ ██║ ██║ ██║██╔══██╗
-- ███████║███████╗██║ ██║ ██║██║ ██║██║ ██║ ██║ ╚██████╔╝██║ ██║
-- ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝
-- ===================================================================
-- Initialization
-- ===================================================================
local wibox = require("wibox")
local dpi = require("beautiful").xresources.apply_dpi
-- ===================================================================
-- Widget Creation
-- ===================================================================
local horizontal_separator = wibox.widget {
orientation = "horizontal",
forced_height = dpi(16),
opacity = 0.20,
widget = wibox.widget.separator
}
return horizontal_separator