fix up hardcoded colors in win9x stuff, add more color schemes

This commit is contained in:
Cynthia Foxwell 2022-12-18 22:38:15 -07:00
parent a280dab811
commit 79777ad701
8 changed files with 742 additions and 47 deletions

View File

@ -185,6 +185,66 @@ local config = {
},
},
},
Discord = {
background = "#36393f",
foreground = "#dcddde",
cursor_fg = "#202225",
cursor_bg = "#b9bbbe",
cursor_border = "#b9bbbe",
selection_fg = "#dcddde",
selection_bg = "#202225",
ansi = {
"#202225",
"#ed4245",
"#46c46d",
"#faa61a",
"#00b0f4",
"#b377f3",
"#45ddc0",
"#a3a6aa",
},
brights = {
"#4f545c",
"#f1686a",
"#57f287",
"#fbb848",
"#33c0f6",
"#d09aff",
"#86dcc5",
"#b9bbbe",
},
tab_bar = {
background = "#292b2f",
active_tab = {
bg_color = "#36393f",
fg_color = "#dcddde",
},
inactive_tab = {
bg_color = "#2f3136",
fg_color = "#b9bbbe",
},
inactive_tab_hover = {
bg_color = "#2f3136",
fg_color = "#dcddde",
italic = false,
},
new_tab = {
bg_color = "#292b2f",
fg_color = "#b9bbbe",
italic = false,
},
new_tab_hover = {
bg_color = "#2f3136",
fg_color = "#dcddde",
italic = false,
},
},
},
},
window_padding = {
left = 4,

View File

@ -106,7 +106,7 @@ do
theme.wibar_height = 20
theme = beautiful.theme_assets.recolor_titlebar(theme, theme.__colors.color8, "normal")
theme = beautiful.theme_assets.recolor_titlebar(theme, theme.win9x_unfocus, "normal")
theme = beautiful.theme_assets.recolor_titlebar(theme, theme.fg_focus, "focus")
theme = beautiful.theme_assets.recolor_layout(theme, theme.layout_fg)
@ -519,8 +519,8 @@ local music_wrapper = wibox.widget({
awful.widget.watch(
'bash -c "~/.config/awesome/scripts/cmus-wrapper.sh"',
1,
function(widget, stdout, _, _, code)
if code ~= 0 then
function(widget, stdout, stderr, _, code)
if code ~= 0 or stderr:match("^cmus-remote:") or stdout == "" then
music_wrapper.visible = false
widget:set_markup("")
@ -1404,7 +1404,7 @@ end)
local win9x_l = {
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.secondary,
color = beautiful.win9x_outer_bright,
orientation = "vertical",
thickness = 1,
forced_width = 1,
@ -1412,7 +1412,7 @@ local win9x_l = {
}),
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.color8,
color = beautiful.win9x_bright,
orientation = "vertical",
thickness = 1,
forced_width = 1,
@ -1420,7 +1420,7 @@ local win9x_l = {
}),
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.background,
color = beautiful.win9x_main,
orientation = "vertical",
thickness = 2,
forced_width = 2,
@ -1432,7 +1432,7 @@ local win9x_l = {
local win9x_r = {
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.background,
color = beautiful.win9x_main,
orientation = "vertical",
thickness = 2,
forced_width = 2,
@ -1440,7 +1440,7 @@ local win9x_r = {
}),
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.color0,
color = beautiful.win9x_dark,
orientation = "vertical",
thickness = 1,
forced_width = 1,
@ -1448,7 +1448,7 @@ local win9x_r = {
}),
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.tertiary,
color = beautiful.win9x_outer_dark,
orientation = "vertical",
thickness = 1,
forced_width = 1,
@ -1461,7 +1461,7 @@ local win9x_bl = {
{
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.secondary,
color = beautiful.win9x_outer_bright,
orientation = "vertical",
thickness = 1,
forced_width = 1,
@ -1471,7 +1471,7 @@ local win9x_bl = {
{
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.color8,
color = beautiful.win9x_bright,
orientation = "vertical",
thickness = 1,
forced_width = 1,
@ -1479,7 +1479,7 @@ local win9x_bl = {
}),
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.background,
color = beautiful.win9x_main,
orientation = "vertical",
thickness = 2,
forced_width = 2,
@ -1492,7 +1492,7 @@ local win9x_bl = {
},
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.color0,
color = beautiful.win9x_dark,
orientation = "horizontal",
thickness = 1,
forced_height = 1,
@ -1508,7 +1508,7 @@ local win9x_bl = {
},
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.tertiary,
color = beautiful.win9x_outer_dark,
orientation = "horizontal",
thickness = 1,
forced_height = 1,
@ -1521,7 +1521,7 @@ local win9x_bl = {
local win9x_b = {
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.background,
color = beautiful.win9x_main,
orientation = "horizontal",
thickness = 2,
forced_height = 2,
@ -1529,7 +1529,7 @@ local win9x_b = {
}),
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.color0,
color = beautiful.win9x_dark,
orientation = "horizontal",
thickness = 1,
forced_height = 1,
@ -1537,7 +1537,7 @@ local win9x_b = {
}),
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.tertiary,
color = beautiful.win9x_outer_dark,
orientation = "horizontal",
thickness = 1,
forced_height = 1,
@ -1552,7 +1552,7 @@ local win9x_br = {
{
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.background,
color = beautiful.win9x_main,
orientation = "vertical",
thickness = 2,
forced_width = 2,
@ -1561,7 +1561,7 @@ local win9x_br = {
}),
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.color0,
color = beautiful.win9x_dark,
orientation = "vertical",
thickness = 1,
forced_width = 1,
@ -1573,7 +1573,7 @@ local win9x_br = {
},
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.color0,
color = beautiful.win9x_dark,
orientation = "horizontal",
thickness = 1,
forced_height = 1,
@ -1585,7 +1585,7 @@ local win9x_br = {
},
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.tertiary,
color = beautiful.win9x_outer_dark,
orientation = "vertical",
thickness = 1,
forced_width = 1,
@ -1597,7 +1597,7 @@ local win9x_br = {
},
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.tertiary,
color = beautiful.win9x_outer_dark,
orientation = "horizontal",
thickness = 1,
forced_height = 1,
@ -1610,7 +1610,7 @@ local win9x_br = {
local win9x_tl = {
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.secondary,
color = beautiful.win9x_outer_bright,
orientation = "horizontal",
thickness = 1,
forced_height = 1,
@ -1619,7 +1619,7 @@ local win9x_tl = {
{
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.secondary,
color = beautiful.win9x_outer_bright,
orientation = "vertical",
thickness = 1,
forced_width = 1,
@ -1628,7 +1628,7 @@ local win9x_tl = {
{
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.color8,
color = beautiful.win9x_bright,
orientation = "horizontal",
thickness = 1,
forced_height = 1,
@ -1637,7 +1637,7 @@ local win9x_tl = {
{
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.color8,
color = beautiful.win9x_bright,
orientation = "vertical",
thickness = 1,
forced_width = 1,
@ -1645,7 +1645,7 @@ local win9x_tl = {
}),
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.background,
color = beautiful.win9x_main,
orientation = "vertical",
thickness = 2,
forced_width = 2,
@ -1671,7 +1671,7 @@ local win9x_tl = {
local win9x_t = {
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.secondary,
color = beautiful.win9x_outer_bright,
orientation = "horizontal",
thickness = 1,
forced_height = 1,
@ -1679,7 +1679,7 @@ local win9x_t = {
}),
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.color8,
color = beautiful.win9x_bright,
orientation = "horizontal",
thickness = 1,
forced_height = 1,
@ -1687,7 +1687,7 @@ local win9x_t = {
}),
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.background,
color = beautiful.win9x_main,
orientation = "horizontal",
thickness = 2,
forced_height = 2,
@ -1700,7 +1700,7 @@ local win9x_tr = {
{
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.secondary,
color = beautiful.win9x_outer_bright,
orientation = "horizontal",
thickness = 1,
forced_height = 1,
@ -1710,7 +1710,7 @@ local win9x_tr = {
{
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.color8,
color = beautiful.win9x_bright,
orientation = "horizontal",
thickness = 1,
forced_height = 1,
@ -1718,7 +1718,7 @@ local win9x_tr = {
}),
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.background,
color = beautiful.win9x_main,
orientation = "vertical",
thickness = 2,
forced_width = 2,
@ -1731,7 +1731,7 @@ local win9x_tr = {
},
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.color0,
color = beautiful.win9x_dark,
orientation = "vertical",
thickness = 1,
forced_width = 1,
@ -1747,7 +1747,7 @@ local win9x_tr = {
},
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.tertiary,
color = beautiful.win9x_outer_dark,
orientation = "vertical",
thickness = 1,
forced_width = 1,
@ -1760,7 +1760,7 @@ local win9x_tr = {
local win9x_div = {
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.background,
color = beautiful.win9x_main,
orientation = "horizontal",
thickness = 2,
forced_height = 2,
@ -1774,7 +1774,7 @@ local win9x_btn = {
{
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.color8,
color = beautiful.win9x_bright,
orientation = "vertical",
thickness = 1,
forced_width = 1,
@ -1783,7 +1783,7 @@ local win9x_btn = {
{
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.color8,
color = beautiful.win9x_bright,
orientation = "horizontal",
thickness = 1,
forced_height = 1,
@ -1792,7 +1792,7 @@ local win9x_btn = {
{
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.secondary,
color = beautiful.win9x_outer_bright,
orientation = "vertical",
thickness = 1,
forced_width = 1,
@ -1801,7 +1801,7 @@ local win9x_btn = {
{
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.secondary,
color = beautiful.win9x_outer_bright,
orientation = "horizontal",
thickness = 1,
forced_height = 1,
@ -1809,7 +1809,7 @@ local win9x_btn = {
}),
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.background,
color = beautiful.win9x_main,
orientation = "horizontal",
thickness = 10,
forced_height = 10,
@ -1821,7 +1821,7 @@ local win9x_btn = {
},
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.color0,
color = beautiful.win9x_dark,
orientation = "vertical",
thickness = 1,
forced_width = 1,
@ -1833,7 +1833,7 @@ local win9x_btn = {
},
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.color0,
color = beautiful.win9x_dark,
orientation = "horizontal",
thickness = 1,
forced_height = 1,
@ -1845,7 +1845,7 @@ local win9x_btn = {
},
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.tertiary,
color = beautiful.win9x_outer_dark,
orientation = "vertical",
thickness = 1,
forced_width = 1,
@ -1857,7 +1857,7 @@ local win9x_btn = {
},
wibox.widget({
widget = wibox.widget.separator,
color = beautiful.__colors.tertiary,
color = beautiful.win9x_outer_dark,
orientation = "horizontal",
thickness = 1,
forced_height = 1,
@ -1923,8 +1923,10 @@ client.connect_signal("request::titlebars", function(c)
local titlebar = awful.titlebar(c, {
size = 24,
fg_normal = beautiful.__colors.color8,
bg_focus = beautiful.__colors.accent,
fg_normal = beautiful.win9x_unfocus,
fg_focus = beautiful.fg_focus,
bg_normal = beautiful.win9x_outer_bright,
bg_focus = beautiful.win9x_focus,
})
titlebar:setup({

View File

@ -0,0 +1,154 @@
---------------------------
-- Default awesome theme --
---------------------------
local theme_assets = require("beautiful.theme_assets")
local xresources = require("beautiful.xresources")
local dpi = xresources.apply_dpi
local gfs = require("gears.filesystem")
local themes_path = gfs.get_themes_dir()
local colors = {
background = "#302838",
foreground = "#dedbeb",
secondary = "#2a2331",
tertiary = "#231d29",
accent = "#e83f80",
color0 = "#533f61",
color1 = "#e83f80",
color2 = "#a2baa8",
color3 = "#eacac0",
color4 = "#9985d1",
color5 = "#e68ac1",
color6 = "#aabae7",
color7 = "#dedbeb",
color8 = "#634e75",
color9 = "#f55d8f",
color10 = "#bfd1c3",
color11 = "#f0ddd8",
color12 = "#b4a4de",
color13 = "#edabd2",
color14 = "#c4d1f5",
color15 = "#edebf7",
}
local theme = dofile(themes_path .. "default/theme.lua")
theme.__colors = colors
theme.bg_normal = colors.secondary
theme.bg_focus = colors.background
theme.bg_urgent = colors.color0
theme.bg_minimize = colors.tertiary
theme.bg_systray = colors.background
theme.fg_normal = colors.color7
theme.fg_focus = colors.foreground
theme.fg_urgent = colors.color1
theme.fg_minimize = colors.color0
theme.border_normal = theme.bg_normal
theme.border_focus = colors.accent
theme.border_marked = colors.color2
-- There are other variable sets
-- overriding the default one when
-- defined, the sets are:
-- taglist_[bg|fg]_[focus|urgent|occupied|empty|volatile]
-- tasklist_[bg|fg]_[focus|urgent]
-- titlebar_[bg|fg]_[normal|focus]
-- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color]
-- mouse_finder_[color|timeout|animate_timeout|radius|factor]
-- prompt_[fg|bg|fg_cursor|bg_cursor|font]
-- hotkeys_[bg|fg|border_width|border_color|shape|opacity|modifiers_fg|label_bg|label_fg|group_margin|font|description_font]
-- Example:
--theme.taglist_bg_focus = "#ff0000"
theme.taglist_bg_focus = colors.background
theme.taglist_bg_urgent = theme.taglist_bg_focus
theme.taglist_bg_occupied = theme.taglist_bg_focus
theme.taglist_bg_empty = theme.taglist_bg_focus
theme.taglist_bg_volatile = theme.taglist_bg_focus
theme.taglist_fg_focus = colors.color5
theme.taglist_fg_urgent = colors.color1
theme.taglist_fg_occupied = colors.color2
theme.taglist_fg_empty = colors.foreground
theme.taglist_fg_volatile = colors.color3
theme.tasklist_fg_focus = colors.color5
theme.tasklist_fg_urgent = colors.color1
theme.wibar_bg = colors.background
theme.wibar_fg = colors.foreground
theme.layout_fg = colors.foreground
-- bar items
theme.widget_clock = colors.color6
theme.widget_volume = colors.color4
theme.widget_volume_muted = colors.color9
theme.widget_cpu = colors.color10
theme.widget_gpu = colors.color14
theme.widget_memory = colors.color11
theme.widget_music = colors.color13
theme.widget_packages = colors.color4
theme.widget_net_up = colors.color1
theme.widget_net_down = colors.color2
-- Generate taglist squares:
--[[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
)--]]
theme.taglist_squares_sel = nil
theme.taglist_squares_unsel = nil
-- Variables set for theming notifications:
-- notification_font
-- notification_[bg|fg]
-- notification_[width|height|margin]
-- notification_[border_color|border_width|shape|opacity]
theme.notification_bg = colors.background
theme.notification_fg = colors.foreground
theme.notification_border_color = colors.color5
-- Variables set for theming the menu:
-- menu_[bg|fg]_[normal|focus]
-- menu_[border_color|border_width]
theme.menu_bg_normal = colors.background
theme.menu_bg_focus = colors.accent
theme.menu_fg_normal = colors.foreground
theme.menu_fg_focus = "#ffffff"
theme.menu_border_color = colors.background
-- Generate Awesome icon:
theme.awesome_icon = theme_assets.awesome_icon(
16, colors.background, colors.accent
)
-- You can add as many variables as
-- you wish and access them by using
-- beautiful.variable in your rc.lua
--theme.bg_widget = "#cc0000"
theme.win9x_main = colors.background
theme.win9x_bright = colors.color8
theme.win9x_dark = colors.color0
theme.win9x_outer_bright = colors.secondary
theme.win9x_outer_dark = colors.tertiary
theme.win9x_focus = colors.accent
theme.win9x_unfocus = colors.color8
return theme
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80

View File

@ -141,6 +141,14 @@ theme.awesome_icon = theme_assets.awesome_icon(
-- beautiful.variable in your rc.lua
--theme.bg_widget = "#cc0000"
theme.win9x_main = colors.background
theme.win9x_bright = colors.color8
theme.win9x_dark = colors.color0
theme.win9x_outer_bright = colors.secondary
theme.win9x_outer_dark = colors.tertiary
theme.win9x_focus = colors.accent
theme.win9x_unfocus = colors.color8
return theme
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80

View File

@ -0,0 +1,154 @@
---------------------------
-- Default awesome theme --
---------------------------
local theme_assets = require("beautiful.theme_assets")
local xresources = require("beautiful.xresources")
local dpi = xresources.apply_dpi
local gfs = require("gears.filesystem")
local themes_path = gfs.get_themes_dir()
local colors = {
background = "#36393f",
foreground = "#dcddde",
secondary = "#2f3136",
tertiary = "#292b2f",
accent = "#5865f2",
color0 = "#202225",
color1 = "#ed4245",
color2 = "#46c46d",
color3 = "#faa61a",
color4 = "#00b0f4",
color5 = "#b377f3",
color6 = "#45ddc0",
color7 = "#a3a6aa",
color8 = "#4f545c",
color9 = "#f1686a",
color10 = "#57f287",
color11 = "#fbb848",
color12 = "#33c0f6",
color13 = "#d09aff",
color14 = "#86dcc5",
color15 = "#b9bbbe",
}
local theme = dofile(themes_path .. "default/theme.lua")
theme.__colors = colors
theme.bg_normal = colors.secondary
theme.bg_focus = colors.background
theme.bg_urgent = colors.color0
theme.bg_minimize = colors.tertiary
theme.bg_systray = colors.background
theme.fg_normal = colors.color7
theme.fg_focus = colors.foreground
theme.fg_urgent = colors.color1
theme.fg_minimize = colors.color0
theme.border_normal = theme.bg_normal
theme.border_focus = colors.accent
theme.border_marked = colors.color2
-- There are other variable sets
-- overriding the default one when
-- defined, the sets are:
-- taglist_[bg|fg]_[focus|urgent|occupied|empty|volatile]
-- tasklist_[bg|fg]_[focus|urgent]
-- titlebar_[bg|fg]_[normal|focus]
-- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color]
-- mouse_finder_[color|timeout|animate_timeout|radius|factor]
-- prompt_[fg|bg|fg_cursor|bg_cursor|font]
-- hotkeys_[bg|fg|border_width|border_color|shape|opacity|modifiers_fg|label_bg|label_fg|group_margin|font|description_font]
-- Example:
--theme.taglist_bg_focus = "#ff0000"
theme.taglist_bg_focus = colors.background
theme.taglist_bg_urgent = theme.taglist_bg_focus
theme.taglist_bg_occupied = theme.taglist_bg_focus
theme.taglist_bg_empty = theme.taglist_bg_focus
theme.taglist_bg_volatile = theme.taglist_bg_focus
theme.taglist_fg_focus = colors.color5
theme.taglist_fg_urgent = colors.color1
theme.taglist_fg_occupied = colors.color2
theme.taglist_fg_empty = colors.foreground
theme.taglist_fg_volatile = colors.color3
theme.tasklist_fg_focus = colors.color5
theme.tasklist_fg_urgent = colors.color1
theme.wibar_bg = colors.background
theme.wibar_fg = colors.foreground
theme.layout_fg = colors.foreground
-- bar items
theme.widget_clock = colors.color6
theme.widget_volume = colors.color4
theme.widget_volume_muted = colors.color9
theme.widget_cpu = colors.color10
theme.widget_gpu = colors.color14
theme.widget_memory = colors.color11
theme.widget_music = colors.color13
theme.widget_packages = colors.color4
theme.widget_net_up = colors.color1
theme.widget_net_down = colors.color2
-- Generate taglist squares:
--[[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
)--]]
theme.taglist_squares_sel = nil
theme.taglist_squares_unsel = nil
-- Variables set for theming notifications:
-- notification_font
-- notification_[bg|fg]
-- notification_[width|height|margin]
-- notification_[border_color|border_width|shape|opacity]
theme.notification_bg = colors.background
theme.notification_fg = colors.foreground
theme.notification_border_color = colors.color5
-- Variables set for theming the menu:
-- menu_[bg|fg]_[normal|focus]
-- menu_[border_color|border_width]
theme.menu_bg_normal = colors.background
theme.menu_bg_focus = colors.accent
theme.menu_fg_normal = colors.foreground
theme.menu_fg_focus = "#ffffff"
theme.menu_border_color = colors.background
-- Generate Awesome icon:
theme.awesome_icon = theme_assets.awesome_icon(
16, colors.background, colors.accent
)
-- You can add as many variables as
-- you wish and access them by using
-- beautiful.variable in your rc.lua
--theme.bg_widget = "#cc0000"
theme.win9x_main = colors.background
theme.win9x_bright = colors.color8
theme.win9x_dark = colors.color0
theme.win9x_outer_bright = colors.secondary
theme.win9x_outer_dark = colors.tertiary
theme.win9x_focus = colors.accent
theme.win9x_unfocus = colors.color8
return theme
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80

View File

@ -0,0 +1,155 @@
---------------------------
-- Default awesome theme --
---------------------------
local theme_assets = require("beautiful.theme_assets")
local xresources = require("beautiful.xresources")
local dpi = xresources.apply_dpi
local gfs = require("gears.filesystem")
local themes_path = gfs.get_themes_dir()
local colors = {
background = "#323c41",
foreground = "#f2efdf",
secondary = "#2b3339",
tertiary = "#1e2327",
accent = "#93b259",
color0 = "#7a8478",
color1 = "#e67e80",
color2 = "#a7c080",
color3 = "#dbbc7f",
color4 = "#7fbbb3",
color5 = "#d699b6",
color6 = "#83c092",
color7 = "#d3c6aa",
color8 = "#5c6a72",
color9 = "#f85552",
color10 = "#8da101",
color11 = "#dfa000",
color12 = "#3a94c5",
color13 = "#df69ba",
color14 = "#35a77c",
color15 = "#9da9a0",
}
local theme = dofile(themes_path .. "default/theme.lua")
theme.__colors = colors
theme.bg_normal = colors.secondary
theme.bg_focus = colors.background
theme.bg_urgent = colors.color0
theme.bg_minimize = colors.tertiary
theme.bg_systray = colors.background
theme.fg_normal = colors.color7
theme.fg_focus = colors.foreground
theme.fg_urgent = colors.color1
theme.fg_minimize = colors.color0
theme.border_normal = theme.bg_normal
theme.border_focus = colors.color5
theme.border_marked = colors.color2
-- There are other variable sets
-- overriding the default one when
-- defined, the sets are:
-- taglist_[bg|fg]_[focus|urgent|occupied|empty|volatile]
-- tasklist_[bg|fg]_[focus|urgent]
-- titlebar_[bg|fg]_[normal|focus]
-- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color]
-- mouse_finder_[color|timeout|animate_timeout|radius|factor]
-- prompt_[fg|bg|fg_cursor|bg_cursor|font]
-- hotkeys_[bg|fg|border_width|border_color|shape|opacity|modifiers_fg|label_bg|label_fg|group_margin|font|description_font]
-- Example:
--theme.taglist_bg_focus = "#ff0000"
theme.taglist_bg_focus = colors.background
theme.taglist_bg_urgent = theme.taglist_bg_focus
theme.taglist_bg_occupied = theme.taglist_bg_focus
theme.taglist_bg_empty = theme.taglist_bg_focus
theme.taglist_bg_volatile = theme.taglist_bg_focus
theme.taglist_fg_focus = colors.color5
theme.taglist_fg_urgent = colors.color1
theme.taglist_fg_occupied = colors.color2
theme.taglist_fg_empty = colors.foreground
theme.taglist_fg_volatile = colors.color3
theme.tasklist_fg_focus = colors.color5
theme.tasklist_fg_urgent = colors.color1
theme.wibar_bg = colors.background
theme.wibar_fg = colors.foreground
theme.layout_fg = colors.foreground
-- bar items
theme.widget_clock = colors.color6
theme.widget_volume = colors.color4
theme.widget_volume_muted = colors.color9
theme.widget_cpu = colors.color10
theme.widget_gpu = colors.color14
theme.widget_memory = colors.color11
theme.widget_music = colors.color13
theme.widget_packages = colors.color4
theme.widget_net_up = colors.color1
theme.widget_net_down = colors.color2
-- Generate taglist squares:
--[[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
)--]]
theme.taglist_squares_sel = nil
theme.taglist_squares_unsel = nil
-- Variables set for theming notifications:
-- notification_font
-- notification_[bg|fg]
-- notification_[width|height|margin]
-- notification_[border_color|border_width|shape|opacity]
theme.notification_bg = colors.background
theme.notification_fg = colors.foreground
theme.notification_border_color = colors.color5
-- Variables set for theming the menu:
-- menu_[bg|fg]_[normal|focus]
-- menu_[border_color|border_width]
theme.menu_bg_normal = colors.background
theme.menu_bg_focus = colors.accent
theme.menu_fg_normal = colors.foreground
theme.menu_fg_focus = "#ffffff"
theme.menu_border_color = colors.background
-- Generate Awesome icon:
theme.awesome_icon = theme_assets.awesome_icon(
16, colors.background, colors.accent
)
-- You can add as many variables as
-- you wish and access them by using
-- beautiful.variable in your rc.lua
--theme.bg_widget = "#cc0000"
theme.win9x_main = colors.background
theme.win9x_bright = colors.color8
theme.win9x_dark = colors.color0
theme.win9x_outer_bright = colors.secondary
theme.win9x_outer_dark = colors.tertiary
theme.win9x_focus = colors.accent
theme.win9x_unfocus = colors.color8
return theme
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80

View File

@ -0,0 +1,154 @@
---------------------------
-- Default awesome theme --
---------------------------
local theme_assets = require("beautiful.theme_assets")
local xresources = require("beautiful.xresources")
local dpi = xresources.apply_dpi
local gfs = require("gears.filesystem")
local themes_path = gfs.get_themes_dir()
local colors = {
background = "#1d1f28",
foreground = "#ffffff",
secondary = "#181a21",
tertiary = "#141721",
accent = "#c574dd",
color0 = "#282a36",
color1 = "#f37f97",
color2 = "#5adecd",
color3 = "#f2a272",
color4 = "#8897f4",
color5 = "#c574dd",
color6 = "#79e6f3",
color7 = "#fdfdfd",
color8 = "#414458",
color9 = "#ff4971",
color10 = "#18e3c8",
color11 = "#ff8037",
color12 = "#556fff",
color13 = "#b043d1",
color14 = "#3fdcee",
color15 = "#bebec1",
}
local theme = dofile(themes_path .. "default/theme.lua")
theme.__colors = colors
theme.bg_normal = colors.secondary
theme.bg_focus = colors.background
theme.bg_urgent = colors.color0
theme.bg_minimize = colors.tertiary
theme.bg_systray = colors.background
theme.fg_normal = colors.color7
theme.fg_focus = colors.foreground
theme.fg_urgent = colors.color1
theme.fg_minimize = colors.color0
theme.border_normal = theme.bg_normal
theme.border_focus = colors.accent
theme.border_marked = colors.color2
-- There are other variable sets
-- overriding the default one when
-- defined, the sets are:
-- taglist_[bg|fg]_[focus|urgent|occupied|empty|volatile]
-- tasklist_[bg|fg]_[focus|urgent]
-- titlebar_[bg|fg]_[normal|focus]
-- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color]
-- mouse_finder_[color|timeout|animate_timeout|radius|factor]
-- prompt_[fg|bg|fg_cursor|bg_cursor|font]
-- hotkeys_[bg|fg|border_width|border_color|shape|opacity|modifiers_fg|label_bg|label_fg|group_margin|font|description_font]
-- Example:
--theme.taglist_bg_focus = "#ff0000"
theme.taglist_bg_focus = colors.background
theme.taglist_bg_urgent = theme.taglist_bg_focus
theme.taglist_bg_occupied = theme.taglist_bg_focus
theme.taglist_bg_empty = theme.taglist_bg_focus
theme.taglist_bg_volatile = theme.taglist_bg_focus
theme.taglist_fg_focus = colors.color5
theme.taglist_fg_urgent = colors.color1
theme.taglist_fg_occupied = colors.color2
theme.taglist_fg_empty = colors.foreground
theme.taglist_fg_volatile = colors.color3
theme.tasklist_fg_focus = colors.color5
theme.tasklist_fg_urgent = colors.color1
theme.wibar_bg = colors.background
theme.wibar_fg = colors.foreground
theme.layout_fg = colors.foreground
-- bar items
theme.widget_clock = colors.color6
theme.widget_volume = colors.color4
theme.widget_volume_muted = colors.color9
theme.widget_cpu = colors.color10
theme.widget_gpu = colors.color14
theme.widget_memory = colors.color11
theme.widget_music = colors.color13
theme.widget_packages = colors.color4
theme.widget_net_up = colors.color1
theme.widget_net_down = colors.color2
-- Generate taglist squares:
--[[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
)--]]
theme.taglist_squares_sel = nil
theme.taglist_squares_unsel = nil
-- Variables set for theming notifications:
-- notification_font
-- notification_[bg|fg]
-- notification_[width|height|margin]
-- notification_[border_color|border_width|shape|opacity]
theme.notification_bg = colors.background
theme.notification_fg = colors.foreground
theme.notification_border_color = colors.color5
-- Variables set for theming the menu:
-- menu_[bg|fg]_[normal|focus]
-- menu_[border_color|border_width]
theme.menu_bg_normal = colors.background
theme.menu_bg_focus = colors.accent
theme.menu_fg_normal = colors.foreground
theme.menu_fg_focus = "#ffffff"
theme.menu_border_color = colors.background
-- Generate Awesome icon:
theme.awesome_icon = theme_assets.awesome_icon(
16, colors.background, colors.accent
)
-- You can add as many variables as
-- you wish and access them by using
-- beautiful.variable in your rc.lua
--theme.bg_widget = "#cc0000"
theme.win9x_main = colors.background
theme.win9x_bright = colors.color8
theme.win9x_dark = colors.color0
theme.win9x_outer_bright = colors.secondary
theme.win9x_outer_dark = colors.tertiary
theme.win9x_focus = colors.accent
theme.win9x_unfocus = colors.color8
return theme
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80

View File

@ -141,6 +141,14 @@ theme.awesome_icon = theme_assets.awesome_icon(
-- beautiful.variable in your rc.lua
--theme.bg_widget = "#cc0000"
theme.win9x_main = colors.background
theme.win9x_bright = colors.color8
theme.win9x_dark = colors.color0
theme.win9x_outer_bright = colors.secondary
theme.win9x_outer_dark = colors.tertiary
theme.win9x_focus = colors.accent
theme.win9x_unfocus = colors.color8
return theme
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80