mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-08-16 07:37:49 +02:00
theme: use less colors
This commit is contained in:
parent
19f735065b
commit
47115a0fbe
4 changed files with 19 additions and 16 deletions
4
rc.lua
4
rc.lua
|
@ -36,9 +36,6 @@ function loadrc(name, mod)
|
||||||
return result
|
return result
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Error handling
|
|
||||||
loadrc("errors")
|
|
||||||
|
|
||||||
-- Global configuration
|
-- Global configuration
|
||||||
modkey = "Mod4"
|
modkey = "Mod4"
|
||||||
config = {}
|
config = {}
|
||||||
|
@ -69,6 +66,7 @@ config.hostname = awful.util.pread('uname -n'):gsub('\n', '')
|
||||||
-- Remaining modules
|
-- Remaining modules
|
||||||
loadrc("xrun") -- xrun function
|
loadrc("xrun") -- xrun function
|
||||||
loadrc("appearance") -- theme and appearance settings
|
loadrc("appearance") -- theme and appearance settings
|
||||||
|
loadrc("errors") -- errors and debug stuff
|
||||||
|
|
||||||
loadrc("start") -- programs to run on start
|
loadrc("start") -- programs to run on start
|
||||||
loadrc("bindings") -- keybindings
|
loadrc("bindings") -- keybindings
|
||||||
|
|
|
@ -17,10 +17,10 @@ do
|
||||||
end
|
end
|
||||||
|
|
||||||
local colors = {
|
local colors = {
|
||||||
header = "#FF004D",
|
header = theme.fg_widget_clock,
|
||||||
count = "#33FF33",
|
count = theme.fg_widget_label,
|
||||||
index = "#708090",
|
index = theme.fg_widget_label,
|
||||||
name = "#8F8870",
|
name = theme.fg_widget_value_important,
|
||||||
}
|
}
|
||||||
|
|
||||||
local function dbg_get(var, depth, indent)
|
local function dbg_get(var, depth, indent)
|
||||||
|
|
17
rc/theme.lua
17
rc/theme.lua
|
@ -1,9 +1,11 @@
|
||||||
-- Small modifications to anrxc's zenburn theme
|
-- Small modifications to anrxc's zenburn theme
|
||||||
|
|
||||||
|
local na = awful.util.color_strip_alpha
|
||||||
local theme = loadrc("../themes/nice-and-clean-theme/theme")
|
local theme = loadrc("../themes/nice-and-clean-theme/theme")
|
||||||
if theme then
|
if theme then
|
||||||
theme.wallpaper_cmd = { "/bin/true" }
|
theme.wallpaper_cmd = { "/bin/true" }
|
||||||
theme.font = "DejaVu Sans 9"
|
theme.font = "DejaVu Sans 9"
|
||||||
|
|
||||||
theme.border_width = 4
|
theme.border_width = 4
|
||||||
theme.border_normal = "#00000000"
|
theme.border_normal = "#00000000"
|
||||||
theme.border_focus = "#FF7F0066"
|
theme.border_focus = "#FF7F0066"
|
||||||
|
@ -13,15 +15,18 @@ if theme then
|
||||||
theme.bg_focus = theme.bg_focus .. "99"
|
theme.bg_focus = theme.bg_focus .. "99"
|
||||||
theme.bg_urgent = theme.bg_urgent .. "99"
|
theme.bg_urgent = theme.bg_urgent .. "99"
|
||||||
theme.bg_minimize = theme.bg_minimize .. "99"
|
theme.bg_minimize = theme.bg_minimize .. "99"
|
||||||
|
|
||||||
|
-- Widget stuff
|
||||||
theme.bg_widget = "#00000099"
|
theme.bg_widget = "#00000099"
|
||||||
theme.fg_widget_label = "#708090"
|
theme.fg_widget_label = "#737d8c"
|
||||||
theme.fg_widget_value = "#FFFFFF"
|
theme.fg_widget_value = na(theme.fg_normal)
|
||||||
theme.fg_widget_value_important = "#FF2222"
|
theme.fg_widget_value_important = na(theme.border_marked)
|
||||||
theme.fg_widget_sep = "#FFFFFF"
|
theme.fg_widget_sep = na(theme.fg_normal)
|
||||||
theme.fg_widget_border = "#FFFFFF"
|
theme.fg_widget_border = theme.fg_widget_label
|
||||||
theme.fg_widget_clock = "#FF7F00"
|
theme.fg_widget_clock = na(theme.border_focus)
|
||||||
theme.fg_widget_end = "#FFFFFF"
|
theme.fg_widget_end = "#FFFFFF"
|
||||||
theme.fg_widget_center = "#FFCCCC"
|
theme.fg_widget_center = "#FFCCCC"
|
||||||
theme.fg_widget_start = "#FF0000"
|
theme.fg_widget_start = "#FF0000"
|
||||||
|
|
||||||
return theme
|
return theme
|
||||||
end
|
end
|
||||||
|
|
|
@ -4,7 +4,7 @@ require("vicious")
|
||||||
|
|
||||||
-- Separator
|
-- Separator
|
||||||
local separator = widget({ type = "textbox" })
|
local separator = widget({ type = "textbox" })
|
||||||
separator.text = ' <span color="' .. beautiful.fg_widget_sep .. '">|</span> '
|
separator.text = ' <span color="' .. beautiful.fg_widget_sep .. '" size="small">⋆</span> '
|
||||||
|
|
||||||
-- Date
|
-- Date
|
||||||
local datewidget = widget({ type = "textbox" })
|
local datewidget = widget({ type = "textbox" })
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue