mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-09 17:54:22 +02:00
theme: switch to Terminus 8
This commit is contained in:
parent
e05bf1f83c
commit
548ed82f2d
2 changed files with 15 additions and 15 deletions
|
@ -4,7 +4,7 @@ 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 = "Terminus 8"
|
||||||
|
|
||||||
theme.border_width = 4
|
theme.border_width = 4
|
||||||
theme.border_normal = "#00000000"
|
theme.border_normal = "#00000000"
|
||||||
|
|
|
@ -10,14 +10,14 @@ separator.text = ' <span color="' .. beautiful.fg_widget_sep .. '" size="small">
|
||||||
-- Date
|
-- Date
|
||||||
local datewidget = widget({ type = "textbox" })
|
local datewidget = widget({ type = "textbox" })
|
||||||
vicious.register(datewidget, vicious.widgets.date,
|
vicious.register(datewidget, vicious.widgets.date,
|
||||||
'<span font="Terminus 8" color="' .. beautiful.fg_widget_clock .. '">%a %d/%m, %H:%M</span>', 61)
|
'<span color="' .. beautiful.fg_widget_clock .. '">%a %d/%m, %H:%M</span>', 61)
|
||||||
|
|
||||||
-- CPU usage
|
-- CPU usage
|
||||||
local cpuwidget = widget({ type = "textbox" })
|
local cpuwidget = widget({ type = "textbox" })
|
||||||
vicious.register(cpuwidget, vicious.widgets.cpu,
|
vicious.register(cpuwidget, vicious.widgets.cpu,
|
||||||
function (widget, args)
|
function (widget, args)
|
||||||
return string.format('<span font="Terminus 8" color="' .. beautiful.fg_widget_label .. '">CPU: </span>' ..
|
return string.format('<span color="' .. beautiful.fg_widget_label .. '">CPU: </span>' ..
|
||||||
'<span font="Terminus 8" color="' .. beautiful.fg_widget_value .. '">%3d%%</span>',
|
'<span color="' .. beautiful.fg_widget_value .. '">%3d%%</span>',
|
||||||
args[1])
|
args[1])
|
||||||
end, 2)
|
end, 2)
|
||||||
|
|
||||||
|
@ -47,9 +47,9 @@ if config.hostname == "guybrush" then
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return string.format(
|
return string.format(
|
||||||
'<span font="Terminus 8" color="' .. beautiful.fg_widget_label ..
|
'<span color="' .. beautiful.fg_widget_label ..
|
||||||
'">Bat: </span>' ..
|
'">Bat: </span>' ..
|
||||||
'<span font="Terminus 8" color="' .. color ..
|
'<span color="' .. color ..
|
||||||
'">%s %d%%</span>', args[1], current)
|
'">%s %d%%</span>', args[1], current)
|
||||||
end,
|
end,
|
||||||
61, "BAT1")
|
61, "BAT1")
|
||||||
|
@ -88,24 +88,24 @@ vicious.register(netwidget, vicious.widgets.net,
|
||||||
return string.format("%d B", val)
|
return string.format("%d B", val)
|
||||||
end
|
end
|
||||||
return string.format(
|
return string.format(
|
||||||
'<span font="Terminus 8" color="' .. beautiful.fg_widget_label ..
|
'<span color="' .. beautiful.fg_widget_label ..
|
||||||
'">Up/Down: </span><span font="Terminus 8" color="' .. beautiful.fg_widget_value ..
|
'">Up/Down: </span><span color="' .. beautiful.fg_widget_value ..
|
||||||
'">%08s</span><span font="Terminus 8" color="' .. beautiful.fg_widget_label ..
|
'">%08s</span><span color="' .. beautiful.fg_widget_label ..
|
||||||
'">/</span><span font="Terminus 8" color="' .. beautiful.fg_widget_value ..
|
'">/</span><span color="' .. beautiful.fg_widget_value ..
|
||||||
'">%08s</span> ', format(up), format(down))
|
'">%08s</span> ', format(up), format(down))
|
||||||
end, 3)
|
end, 3)
|
||||||
|
|
||||||
-- Memory usage
|
-- Memory usage
|
||||||
local memwidget = widget({ type = "textbox" })
|
local memwidget = widget({ type = "textbox" })
|
||||||
vicious.register(memwidget, vicious.widgets.mem,
|
vicious.register(memwidget, vicious.widgets.mem,
|
||||||
'<span font="Terminus 8" color="' .. beautiful.fg_widget_label .. '">Mem: </span>' ..
|
'<span color="' .. beautiful.fg_widget_label .. '">Mem: </span>' ..
|
||||||
'<span font="Terminus 8" color="' .. beautiful.fg_widget_value .. '">$1%</span>',
|
'<span color="' .. beautiful.fg_widget_value .. '">$1%</span>',
|
||||||
13)
|
13)
|
||||||
|
|
||||||
-- Volume level
|
-- Volume level
|
||||||
local volwidget = widget({ type = "textbox" })
|
local volwidget = widget({ type = "textbox" })
|
||||||
vicious.register(volwidget, vicious.widgets.volume,
|
vicious.register(volwidget, vicious.widgets.volume,
|
||||||
'<span font="Terminus 8" color="' .. beautiful.fg_widget_value .. '">$2 $1%</span>',
|
'<span color="' .. beautiful.fg_widget_value .. '">$2 $1%</span>',
|
||||||
2, "Master")
|
2, "Master")
|
||||||
volume = loadrc("volume", "vbe/volume")
|
volume = loadrc("volume", "vbe/volume")
|
||||||
volwidget:buttons(awful.util.table.join(
|
volwidget:buttons(awful.util.table.join(
|
||||||
|
@ -133,8 +133,8 @@ vicious.register(fswidget, vicious.widgets.fs,
|
||||||
color = beautiful.fg_widget_value_important
|
color = beautiful.fg_widget_value_important
|
||||||
end
|
end
|
||||||
result = string.format(
|
result = string.format(
|
||||||
'%s%s<span font="Terminus 8" color="' .. beautiful.fg_widget_label .. '">%s: </span>' ..
|
'%s%s<span color="' .. beautiful.fg_widget_label .. '">%s: </span>' ..
|
||||||
'<span font="Terminus 8" color="' .. color .. '">%2d%%</span>',
|
'<span color="' .. color .. '">%2d%%</span>',
|
||||||
result, #result > 0 and separator.text or "", name, used)
|
result, #result > 0 and separator.text or "", name, used)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue