AwesomeFiles/config/awesome/theme/theme.lua

270 lines
8.4 KiB
Lua
Raw Normal View History

2022-02-21 05:10:32 -06:00
-- Standard awesome library
local gears = require("gears")
local gfs = require("gears.filesystem")
-- Theme handling library
local themes_path = gfs.get_themes_dir()
local theme = dofile(themes_path .. "default/theme.lua")
local theme_assets = require("beautiful.theme_assets")
local xresources = require("beautiful.xresources")
local xrdb = xresources.get_current_theme()
local dpi = xresources.apply_dpi
2022-03-26 08:33:46 -05:00
-- Helpers
2022-02-21 05:10:32 -06:00
local helpers = require("helpers")
-- Theme
----------
-- Load ~/.Xresources colors
2022-03-26 08:33:46 -05:00
theme.xbackground = xrdb.background
theme.xforeground = xrdb.foreground
theme.xcolor0 = xrdb.color0
theme.xcolor1 = xrdb.color1
theme.xcolor2 = xrdb.color2
theme.xcolor3 = xrdb.color3
theme.xcolor4 = xrdb.color4
theme.xcolor5 = xrdb.color5
theme.xcolor6 = xrdb.color6
theme.xcolor7 = xrdb.color7
theme.xcolor8 = xrdb.color8
theme.xcolor9 = xrdb.color9
theme.xcolor10 = xrdb.color10
theme.xcolor11 = xrdb.color11
theme.xcolor12 = xrdb.color12
theme.xcolor13 = xrdb.color13
theme.xcolor14 = xrdb.color14
theme.xcolor15 = xrdb.color15
2022-02-21 05:10:32 -06:00
theme.darker_bg = "#0a1419"
theme.lighter_bg = "#162026"
2022-03-26 08:33:46 -05:00
theme.dashboard_fg = "#666c79"
2022-03-08 20:54:59 -06:00
theme.transparent = "#00000000"
2022-02-21 05:10:32 -06:00
-- PFP
2022-03-06 07:04:04 -06:00
theme.pfp = gears.surface.load_uncached(gfs.get_configuration_dir() .. "theme/assets/pfp.png")
2022-02-21 05:10:32 -06:00
-- Wallpaper
2022-03-06 07:04:04 -06:00
theme.wallpaper = gears.surface.load_uncached(gfs.get_configuration_dir() .. "theme/assets/bg.png")
2022-02-21 05:10:32 -06:00
-- Awesome Logo
2022-03-06 07:04:04 -06:00
theme.awesome_logo = gears.surface.load_uncached(gfs.get_configuration_dir() .. "theme/assets/icons/awesome.png")
2022-02-21 05:10:32 -06:00
2022-03-29 09:25:50 -05:00
-- Notifications bell icon
theme.notification_bell_icon = gears.surface.load_uncached(gfs.get_configuration_dir() .. "theme/assets/icons/notification-bell.png")
2022-02-21 05:10:32 -06:00
-- Notifications icon
2022-03-06 07:04:04 -06:00
theme.notification_icon = gears.surface.load_uncached(gfs.get_configuration_dir() .. "theme/assets/icons/notification.png")
2022-03-29 09:25:50 -05:00
-- Popup notifications icon
theme.volume_icon = gears.surface.load_uncached(gfs.get_configuration_dir() .. "theme/assets/icons/volume.png")
theme.volume_muted_icon = gears.surface.load_uncached(gfs.get_configuration_dir() .. "theme/assets/icons/mute.png")
theme.brightness_icon = gears.surface.load_uncached(gfs.get_configuration_dir() .. "theme/assets/icons/brightness.png")
2022-02-21 05:10:32 -06:00
-- Fonts
2022-03-30 02:15:02 -05:00
theme.font_name = "Iosevka Nerd Font Mono "
2022-02-21 05:10:32 -06:00
theme.font = theme.font_name .. "8"
theme.icon_font_name = "Material Icons "
theme.icon_font = theme.icon_font_name .. "18"
theme.font_taglist = theme.icon_font_name .. "13"
-- Background Colors
2022-02-21 14:24:48 -06:00
theme.bg_dark = theme.darker_bg
2022-02-21 05:10:32 -06:00
theme.bg_normal = theme.xbackground
2022-03-26 08:33:46 -05:00
theme.bg_focus = theme.xbackground
theme.bg_urgent = theme.xbackground
theme.bg_minimize = theme.xbackground
theme.bg_secondary = theme.darker_bg
theme.bg_accent = theme.lighter_bg
2022-02-21 05:10:32 -06:00
-- Foreground Colors
theme.fg_normal = theme.xforeground
2022-03-26 08:33:46 -05:00
theme.fg_focus = theme.xforeground
theme.fg_urgent = theme.xcolor1
theme.fg_minimize = theme.xcolor0
2022-02-21 05:10:32 -06:00
-- Borders
2022-03-13 16:06:01 -05:00
theme.border_width = dpi(0)
2022-03-26 08:33:46 -05:00
theme.oof_border_width = dpi(0)
2022-03-09 22:33:42 -06:00
theme.border_normal = theme.darker_bg
theme.border_focus = theme.darker_bg
2022-03-13 16:06:01 -05:00
theme.widget_border_width = dpi(2)
2022-03-26 08:33:46 -05:00
theme.widget_border_color = theme.darker_bg
-- Radius
theme.border_radius = dpi(12)
theme.client_radius = dpi(10)
theme.dashboard_radius = dpi(10)
theme.bar_radius = dpi(10)
2022-02-21 05:10:32 -06:00
-- Taglist
local taglist_square_size = dpi(0)
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)
theme.taglist_font = theme.font_taglist
theme.taglist_bg = theme.wibar_bg
2022-03-26 08:33:46 -05:00
2022-02-21 05:10:32 -06:00
theme.taglist_bg_focus = theme.lighter_bg
theme.taglist_fg_focus = theme.xcolor3
2022-03-26 08:33:46 -05:00
2022-02-21 05:10:32 -06:00
theme.taglist_bg_urgent = theme.wibar_bg
theme.taglist_fg_urgent = theme.xcolor6
2022-03-26 08:33:46 -05:00
2022-02-21 05:10:32 -06:00
theme.taglist_bg_occupied = theme.wibar_bg
theme.taglist_fg_occupied = theme.xcolor6
2022-03-26 08:33:46 -05:00
2022-02-21 05:10:32 -06:00
theme.taglist_bg_empty = theme.wibar_bg
theme.taglist_fg_empty = theme.xcolor8
2022-03-26 08:33:46 -05:00
2022-02-21 05:10:32 -06:00
theme.taglist_bg_volatile = transparent
theme.taglist_fg_volatile = theme.xcolor11
2022-03-26 08:33:46 -05:00
2022-02-21 05:10:32 -06:00
theme.taglist_disable_icon = true
2022-03-26 08:33:46 -05:00
theme.taglist_shape_focus = helpers.rrect(theme.bar_radius)
theme.taglist_shape_empty = helpers.rrect(theme.bar_radius)
theme.taglist_shape = helpers.rrect(theme.bar_radius)
theme.taglist_shape_urgent = helpers.rrect(theme.bar_radius)
theme.taglist_shape_volatile = helpers.rrect(theme.bar_radius)
2022-02-21 05:10:32 -06:00
-- Titlebars
2022-03-26 08:33:46 -05:00
theme.titlebar_enabled = true
2022-03-13 16:06:01 -05:00
theme.titlebar_size = dpi(45)
theme.titlebar_unfocused = theme.xcolor0
2022-02-21 05:10:32 -06:00
2022-03-06 07:04:04 -06:00
-- Pop up notifications
2022-03-29 09:25:50 -05:00
theme.pop_size = dpi(180)
2022-03-06 07:04:04 -06:00
theme.pop_bg = theme.xbackground
theme.pop_bar_bg = theme.xcolor0
theme.pop_vol_color = theme.xcolor4
2022-03-26 08:33:46 -05:00
theme.pop_brightness_color = theme.xcolor5
2022-03-06 07:04:04 -06:00
theme.pop_fg = theme.xforeground
2022-03-26 08:33:46 -05:00
theme.pop_border_radius = theme.border_radius
2022-02-21 05:10:32 -06:00
2022-03-08 20:54:59 -06:00
-- Tooltip
2022-03-26 08:33:46 -05:00
theme.tooltip_bg = theme.xbackground
theme.tooltip_height = dpi(245)
theme.tooltip_width = dpi(200)
2022-03-08 20:54:59 -06:00
theme.tooltip_gap = dpi(10)
2022-03-26 08:33:46 -05:00
theme.tooltip_box_margin = dpi(10)
theme.tooltip_border_radius = theme.border_radius
theme.tooltip_box_border_radius = theme.bar_radius
2022-03-08 20:54:59 -06:00
2022-02-21 05:10:32 -06:00
-- Edge snap
theme.snap_bg = theme.xcolor8
theme.snap_shape = helpers.rrect(0)
-- Prompts
theme.prompt_bg = transparent
theme.prompt_fg = theme.xforeground
2022-03-26 08:33:46 -05:00
-- dashboard
theme.dashboard_width = dpi(300)
theme.dashboard_box_bg = theme.lighter_bg
theme.dashboard_box_fg = theme.dashboard_fg
2022-02-21 05:10:32 -06:00
2022-03-26 08:33:46 -05:00
-- Playerctl
theme.playerctl_ignore = {"firefox", "qutebrowser", "chromium", "brave"}
theme.playerctl_player = {"spotify", "mpd", "%any"}
theme.playerctl_update_on_activity = true
theme.playerctl_position_update_interval = 1
2022-02-21 05:10:32 -06:00
2022-03-27 09:05:09 -05:00
-- Mainmenu
2022-03-29 09:25:50 -05:00
theme.menu_font = theme.font_name .. "medium 10"
2022-03-30 23:32:27 -05:00
theme.menu_height = dpi(30)
theme.menu_width = dpi(150)
2022-02-21 05:10:32 -06:00
theme.menu_bg_normal = theme.xbackground
2022-03-27 09:05:09 -05:00
theme.menu_bg_focus = theme.lighter_bg
theme.menu_fg_normal= theme.xforeground
theme.menu_fg_focus= theme.xcolor4
theme.menu_border_width = dpi(0)
theme.menu_border_color = theme.xcolor0
2022-03-09 04:11:37 -06:00
theme.menu_submenu = "» "
theme.menu_submenu_icon = nil
2022-02-21 05:10:32 -06:00
-- Hotkeys Pop Up
2022-03-26 08:33:46 -05:00
theme.hotkeys_bg = theme.xbackground
theme.hotkeys_fg = theme.xforeground
theme.hotkeys_modifiers_fg = theme.xforeground
2022-03-30 02:15:02 -05:00
theme.hotkeys_font = theme.font_name .. "11"
2022-03-26 08:33:46 -05:00
theme.hotkeys_description_font = theme.font_name .. "9"
theme.hotkeys_shape = helpers.rrect(theme.border_radius)
2022-03-30 23:32:27 -05:00
theme.hotkeys_group_margin = dpi(40)
2022-02-21 05:10:32 -06:00
-- Layout List
theme.layoutlist_border_color = theme.lighter_bg
theme.layoutlist_border_width = theme.border_width
2022-03-26 08:33:46 -05:00
theme.layoutlist_shape_selected = helpers.rrect(dpi(10))
2022-02-21 05:10:32 -06:00
theme.layoutlist_bg_selected = theme.lighter_bg
-- Recolor Layout icons:
theme = theme_assets.recolor_layout(theme, theme.xforeground)
-- Gaps
theme.useless_gap = dpi(5)
-- Wibar
2022-03-26 08:33:46 -05:00
theme.wibar_width = dpi(45)
2022-02-21 05:10:32 -06:00
theme.wibar_bg = theme.xbackground
theme.wibar_position = "left"
-- Tabs
theme.mstab_bar_height = dpi(60)
theme.mstab_bar_padding = dpi(0)
2022-03-26 08:33:46 -05:00
theme.mstab_border_radius = theme.border_radius
2022-02-21 05:10:32 -06:00
theme.tabbar_disable = true
theme.tabbar_style = "modern"
2022-03-26 08:33:46 -05:00
theme.tabbar_bg_focus = theme.lighter_bg
theme.tabbar_bg_normal = theme.darker_bg
theme.tabbar_fg_focus = theme.xforeground
theme.tabbar_fg_normal = theme.xcolor0
2022-02-21 05:10:32 -06:00
theme.tabbar_position = "bottom"
theme.tabbar_AA_radius = 0
theme.tabbar_size = 40
theme.mstab_bar_ontop = true
-- Notifications
2022-03-29 09:25:50 -05:00
theme.notification_spacing = 24
2022-02-21 05:10:32 -06:00
theme.notification_border_radius = dpi(6)
theme.notification_border_width = dpi(0)
2022-03-29 09:25:50 -05:00
-- Notif center
theme.notif_center_radius = theme.border_radius
theme.notif_center_box_radius = theme.notif_center_radius / 2
2022-02-21 05:10:32 -06:00
-- Swallowing
theme.dont_swallow_classname_list = {
"firefox", "gimp", "Google-chrome", "Thunar"
}
-- Layout Machi
2022-03-26 08:33:46 -05:00
theme.machi_switcher_border_color = theme.darker_bg
2022-02-21 05:10:32 -06:00
theme.machi_switcher_border_opacity = 0.25
2022-03-26 08:33:46 -05:00
theme.machi_editor_border_color = theme.darker_bg
2022-02-21 05:10:32 -06:00
theme.machi_editor_border_opacity = 0.25
theme.machi_editor_active_opacity = 0.25
-- Tag Preview
2022-03-26 08:33:46 -05:00
theme.tag_preview_client_border_radius = dpi(6)
2022-02-21 05:10:32 -06:00
theme.tag_preview_client_opacity = 0.1
theme.tag_preview_client_bg = theme.xbackground
2022-03-26 08:33:46 -05:00
theme.tag_preview_client_border_color = theme.darker_bg
2022-02-21 05:10:32 -06:00
theme.tag_preview_client_border_width = theme.widget_border_width
2022-03-26 08:33:46 -05:00
theme.tag_preview_widget_border_radius = theme.border_radius
2022-02-21 05:10:32 -06:00
theme.tag_preview_widget_bg = theme.xbackground
theme.tag_preview_widget_border_color = theme.widget_border_color
theme.tag_preview_widget_border_width = theme.widget_border_width * 0
theme.tag_preview_widget_margin = dpi(10)
-- Task Preview
2022-03-26 08:33:46 -05:00
theme.task_preview_widget_border_radius = dpi(10)
2022-02-21 05:10:32 -06:00
theme.task_preview_widget_bg = theme.xbackground
theme.task_preview_widget_border_color = theme.widget_border_color
theme.task_preview_widget_border_width = theme.widget_border_width * 0
theme.task_preview_widget_margin = dpi(15)
theme.fade_duration = 250
return theme