2022-06-17 18:02:13 +02:00
|
|
|
------------------------------------------
|
|
|
|
-- Aesthetic Night awesomewm theme --
|
|
|
|
-- Created by https://github.com/rxyhn --
|
|
|
|
------------------------------------------
|
|
|
|
|
|
|
|
local theme_assets = require("beautiful.theme_assets")
|
|
|
|
local xresources = require("beautiful.xresources")
|
|
|
|
local rnotification = require("ruled.notification")
|
|
|
|
local dpi = xresources.apply_dpi
|
|
|
|
|
|
|
|
local gfs = require("gears.filesystem")
|
2022-06-25 21:06:25 +02:00
|
|
|
local themes_path = gfs.get_themes_dir()
|
2022-06-17 18:02:13 +02:00
|
|
|
|
2022-06-25 21:06:25 +02:00
|
|
|
-- inherit default theme
|
|
|
|
local theme = dofile(themes_path .. "default/theme.lua")
|
|
|
|
-- load vector assets' generators for this theme
|
2022-06-17 18:02:13 +02:00
|
|
|
|
|
|
|
theme.font = "sans 8"
|
|
|
|
|
|
|
|
theme.bg_normal = "#061115"
|
|
|
|
theme.bg_focus = "#0d181c"
|
|
|
|
theme.bg_urgent = "#df5b61"
|
|
|
|
theme.bg_minimize = "#000a0e"
|
|
|
|
theme.bg_systray = theme.bg_normal
|
|
|
|
|
|
|
|
theme.fg_normal = "#d9d7d6"
|
|
|
|
theme.fg_focus = "#6791c9"
|
|
|
|
theme.fg_urgent = "#d9d7d6"
|
|
|
|
theme.fg_minimize = "#d9d7d6"
|
|
|
|
|
|
|
|
theme.useless_gap = dpi(2)
|
|
|
|
theme.border_width = dpi(2)
|
|
|
|
theme.border_color_normal = "#061115"
|
|
|
|
theme.border_color_active = "#000a0e"
|
|
|
|
theme.border_color_marked = "#000a0e"
|
|
|
|
|
|
|
|
-- Generate taglist squares:
|
2022-06-25 21:06:25 +02:00
|
|
|
--local taglist_square_size = dpi(4)
|
|
|
|
--theme.taglist_squares_sel = theme_assets.taglist_squares_sel(taglist_square_size, theme.fg_normal)
|
|
|
|
--theme.taglist_squares_unsel = theme_assets.taglist_squares_unsel(taglist_square_size, theme.fg_normal)
|
|
|
|
-- Or disable them:
|
|
|
|
theme.taglist_squares_sel = nil
|
|
|
|
theme.taglist_squares_unsel = nil
|
|
|
|
|
|
|
|
-- Taglist
|
|
|
|
theme.taglist_fg_focus = theme.bg_normal
|
|
|
|
theme.taglist_bg_focus = theme.fg_focus
|
2022-06-17 18:02:13 +02:00
|
|
|
|
|
|
|
-- Variables set for theming the menu:
|
2022-06-25 21:06:25 +02:00
|
|
|
theme.menu_submenu_icon = nil
|
|
|
|
theme.menu_submenu = "▸ "
|
2022-06-17 18:02:13 +02:00
|
|
|
theme.menu_height = dpi(15)
|
|
|
|
theme.menu_width = dpi(100)
|
|
|
|
|
2022-06-18 14:29:43 +02:00
|
|
|
-- Notification
|
|
|
|
theme.notification_border_color = theme.border_color_active
|
|
|
|
|
|
|
|
-- Wallpaper
|
2022-06-25 21:06:25 +02:00
|
|
|
theme.wallpaper = themes_path .. "night/background.png"
|
2022-06-17 18:02:13 +02:00
|
|
|
|
|
|
|
-- Recolor Layout icons:
|
|
|
|
theme = theme_assets.recolor_layout(theme, theme.fg_normal)
|
|
|
|
|
|
|
|
-- Generate Awesome icon:
|
2022-06-25 21:06:25 +02:00
|
|
|
theme.awesome_icon = theme_assets.awesome_icon(theme.menu_height, theme.fg_focus, theme.bg_minimize)
|
2022-06-17 18:02:13 +02:00
|
|
|
|
|
|
|
-- Set different colors for urgent notifications.
|
|
|
|
rnotification.connect_signal("request::rules", function()
|
|
|
|
rnotification.append_rule({
|
|
|
|
rule = { urgency = "critical" },
|
|
|
|
properties = { bg = "#df5b61", fg = "#d9d7d6" },
|
|
|
|
})
|
|
|
|
end)
|
|
|
|
|
2022-06-18 14:29:43 +02:00
|
|
|
-- Hotkeys Pop Up
|
|
|
|
theme.hotkeys_bg = theme.bg_normal
|
|
|
|
theme.hotkeys_fg = theme.fg_normal
|
|
|
|
theme.hotkeys_modifiers_fg = theme.fg_normal
|
|
|
|
theme.hotkeys_border_color = theme.border_color_active
|
|
|
|
theme.hotkeys_group_margin = dpi(50)
|
|
|
|
|
2022-06-17 18:02:13 +02:00
|
|
|
return theme
|
|
|
|
|
|
|
|
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|