luca-awesome-dotfiles/home/.config/awesome/themes/accents/onedark.lua
2022-11-22 13:25:44 +01:00

227 lines
9.4 KiB
Lua

---------------------------
-- Default awesome theme --
---------------------------
-- requirements
-- ~~~~~~~~~~~~
local gfs = require("gears.filesystem")
local theme_assets = require("beautiful.theme_assets")
local xresources = require("beautiful.xresources")
local rnotification = require("ruled.notification")
local dpi = xresources.apply_dpi
-- Theme Dir :
local themes_path = os.getenv("HOME") .. "/.config/awesome/themes/"
-- Titlebar Dir :
local titlebar_theme = "mac"
local titlebar_icon_path = os.getenv("HOME") .. "/.config/awesome/themes/icons/titlebar/" .. titlebar_theme .. "/"
local tip = titlebar_icon_path
-- Layout Dir :
local layout_icons = "blue"
local layout_icon_path = os.getenv("HOME") .. "/.config/awesome/themes/icons/layouts/" .. layout_icons .. "/"
local lip = layout_icon_path
-- others Icons :
local other_icon_path = os.getenv("HOME") .. "/.config/awesome/themes/icons/other/"
local oip = other_icon_path
-- Colors :
colors = {}
-- Dark colors
colors.black = "#232526"
colors.red = "#df5b61"
colors.green = "#78b892"
colors.yellow = "#de8f78"
colors.blue = "#6791c9"
colors.magenta = "#bc83e3"
colors.cyan = "#67afc1"
colors.white = "#e4e6e7"
-- Bright colors
colors.brightblack = "#2c2e2f"
colors.brightred = "#e8646a"
colors.brightgreen = "#81c19b"
colors.brightyellow = "#e79881"
colors.brightblue = "#709ad2"
colors.brightmagenta = "#c58cec"
colors.brightcyan = "#70b8ca"
colors.brightwhite = "#f2f4f5"
-- Transparent
colors.transparent = "#00000000"
colors.container = "#2F3233"
theme = {}
-- # Fonts :
--theme.font = "iosevka Extended Bold 11"
--theme.font = "JetBrains Mono Bold 10"
--theme.font = "JetBrainsMono Nerd Font Bold 10"
theme.font = "RobotoMono Nerd Font Bold 11"
theme.taglist_font = "Font Awesome 6 Free Solid 14"
theme.icon_font = "Font Awesome 6 Free Solid 10"
theme.sidebar_font = "Font Awesome 6 Free Solid 16"
theme.ui_font = "RobotoMono Nerd Font Bold 16"
-- # Background Colors :
theme.bg_normal = colors.black
theme.bg_focus = colors.brightblack
theme.bg_urgent = colors.black
theme.bg_minimize = colors.black
-- # Foreground Colors :
theme.fg_normal = colors.brightwhite
theme.fg_focus = colors.brightwhite
theme.fg_urgent = colors.brightred
theme.fg_minimize = colors.brightblack
--- Systray
theme.bg_systray = colors.container
-- Taglist :
theme.taglist_spacing = dpi(4)
theme.taglist_bg_focus = colors.container
theme.taglist_bg_urgent = colors.container
theme.taglist_bg_empty = colors.container
theme.taglist_fg_focus = colors.brightblue
theme.taglist_fg_empty = colors.brightblack
theme.taglist_fg_urgent = colors.brightgreen
-- Clients :
theme.useless_gap = dpi(4)
theme.gap_single_client = true
theme.border_width = dpi(2)
theme.border_normal = colors.black
theme.border_focus = colors.brightblack
theme.border_marked = colors.brightblack
-- Tasklist :
theme.tasklist_bg_normal = colors.black
theme.tasklist_bg_focus = colors.black
theme.tasklist_bg_urgent = colors.green
theme.tasklist_plain_task_name = true
theme.tasklist_disable_task_name = false
theme.tasklist_disable_icon = true
-- Notification :
theme.notification_spacing = 20
-- Menu :
theme.submenu = ""
theme.menu_bg_normal = colors.black
theme.menu_bg_focus = colors.brightblack
theme.menu_border_color = colors.black
theme.menu_height = dpi(30)
theme.menu_width = dpi(180)
-- Icons :
theme.icon_theme = "/usr/share/icons/Papirus-Dark/16x16/apps"
theme.awesome_icon = oip .."logoarch.png"
theme.pfp = oip .. "pfp.jpg"
theme.user = string.gsub(os.getenv('USER'), '^%l', string.upper)
theme.hostname = "@Neptune"
theme.weather_icon = oip .."weather_icon.png"
-- Titlebar :
theme.titlebar_size = dpi(20)
theme.titlebar_position = "left"
theme.titlebar_bg_focus = colors.black
theme.titlebar_bg_normal = colors.black
theme.titlebar_fg_normal = colors.white
theme.titlebar_fg_focus = colors.brightwhite
-- Close Button :
theme.titlebar_close_button_normal = tip.."close_normal.svg"
theme.titlebar_close_button_focus = tip.."close_focus.svg"
-- Minimize Button :
theme.titlebar_minimize_button_normal = tip.."minimize_normal.svg"
theme.titlebar_minimize_button_focus = tip.."minimize_focus.svg"
-- Ontop Button :
theme.titlebar_ontop_button_normal_inactive = tip.."ontop_normal_inactive.svg"
theme.titlebar_ontop_button_focus_inactive = tip.."ontop_focus_inactive.svg"
theme.titlebar_ontop_button_normal_active = tip.."ontop_normal_active.svg"
theme.titlebar_ontop_button_focus_active = tip.."ontop_focus_active.svg"
-- Sticky Button :
theme.titlebar_sticky_button_normal_inactive = tip.."sticky_normal_inactive.svg"
theme.titlebar_sticky_button_focus_inactive = tip.."sticky_focus_inactive.svg"
theme.titlebar_sticky_button_normal_active = tip.."sticky_normal_active.svg"
theme.titlebar_sticky_button_focus_active = tip.."sticky_focus_active.svg"
-- Floating Button :
theme.titlebar_floating_button_normal_inactive = tip.."floating_normal_inactive.svg"
theme.titlebar_floating_button_focus_inactive = tip.."floating_focus_inactive.svg"
theme.titlebar_floating_button_normal_active = tip.."floating_normal_active.svg"
theme.titlebar_floating_button_focus_active = tip.."titlebar/stoplight/floating_focus_active.svg"
-- Maximized Button :
theme.titlebar_maximized_button_normal_inactive = tip.."maximized_normal_inactive.svg"
theme.titlebar_maximized_button_focus_inactive = tip.."maximized_focus_inactive.svg"
theme.titlebar_maximized_button_normal_active = tip.."maximized_normal_active.svg"
theme.titlebar_maximized_button_focus_active = tip.."maximized_focus_active.svg"
-- Hovered Close Button
theme.titlebar_close_button_normal_hover = tip.. "close_normal_hover.svg"
theme.titlebar_close_button_focus_hover = tip.. "close_focus_hover.svg"
-- Hovered Minimize Buttin
theme.titlebar_minimize_button_normal_hover = tip.. "minimize_normal_hover.svg"
theme.titlebar_minimize_button_focus_hover = tip.. "minimize_focus_hover.svg"
-- Hovered Ontop Button
theme.titlebar_ontop_button_normal_inactive_hover = tip.. "ontop_normal_inactive_hover.svg"
theme.titlebar_ontop_button_focus_inactive_hover = tip.. "ontop_focus_inactive_hover.svg"
theme.titlebar_ontop_button_normal_active_hover = tip.. "ontop_normal_active_hover.svg"
theme.titlebar_ontop_button_focus_active_hover = tip.. "ontop_focus_active_hover.svg"
-- Hovered Sticky Button
theme.titlebar_sticky_button_normal_inactive_hover = tip.. "sticky_normal_inactive_hover.svg"
theme.titlebar_sticky_button_focus_inactive_hover = tip.. "sticky_focus_inactive_hover.svg"
theme.titlebar_sticky_button_normal_active_hover = tip.. "sticky_normal_active_hover.svg"
theme.titlebar_sticky_button_focus_active_hover = tip.. "sticky_focus_active_hover.svg"
-- Hovered Floating Button
theme.titlebar_floating_button_normal_inactive_hover = tip.. "floating_normal_inactive_hover.svg"
theme.titlebar_floating_button_focus_inactive_hover = tip.. "floating_focus_inactive_hover.svg"
theme.titlebar_floating_button_normal_active_hover = tip.. "floating_normal_active_hover.svg"
theme.titlebar_floating_button_focus_active_hover = tip.. "floating_focus_active_hover.svg"
-- Hovered Maximized Button
theme.titlebar_maximized_button_normal_inactive_hover = tip.. "maximized_normal_inactive_hover.svg"
theme.titlebar_maximized_button_focus_inactive_hover = tip.. "maximized_focus_inactive_hover.svg"
theme.titlebar_maximized_button_normal_active_hover = tip.. "maximized_normal_active_hover.svg"
theme.titlebar_maximized_button_focus_active_hover = tip.. "maximized_focus_active_hover.svg"
-- Layoutbox icons :
theme.layout_fairh = lip.. "fairh.png"
theme.layout_fairv = lip.. "fairv.png"
theme.layout_floating = lip.. "floating.png"
theme.layout_magnifier = lip.. "magnifier.png"
theme.layout_max = lip.. "max.png"
theme.layout_fullscreen = lip.. "fullscreen.png"
theme.layout_tilebottom = lip.. "tilebottom.png"
theme.layout_tileleft = lip.. "tileleft.png"
theme.layout_tile = lip.. "tile.png"
theme.layout_tiletop = lip.. "tiletop.png"
theme.layout_spiral = lip.. "spiral.png"
theme.layout_dwindle = lip.. "dwindle.png"
theme.layout_cornernw = lip.. "cornernw.png"
theme.layout_cornerne = lip.. "cornerne.png"
theme.layout_cornersw = lip.. "cornersw.png"
theme.layout_cornerse = lip.. "cornerse.png"
-- Bling :
theme.layout_mstab = lip.. "mstab.png"
theme.layout_vertical = lip.. "vertical.png"
theme.layout_horizontal = lip.. "horizontal.png"
theme.layout_centered = lip.. "centered.png"
theme.layout_equalarea = lip.. "equalarea.png"
theme.layout_deck = lip.. "deck.png"
return theme