summaryrefslogtreecommitdiff
path: root/theme.lua
blob: 72400eebe354e545a42982b0b4ed881a4cd12805 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
-- theme handling library
local beautiful = require("beautiful")
local gears = require("gears")

-- colors
local darkgray = "#222222"
local white = "#ffffff"
local lightgray = "#aaaaaa"

-- themes define colours, icons, font and wallpapers
beautiful.init(gears.filesystem.get_themes_dir() .. "gtk/theme.lua")

-- gaps
beautiful.useless_gap = 0
beautiful.gap_single_client = false

-- fonts
beautiful.font_sans = beautiful.font
beautiful.font_mono = "monospace 10"
beautiful.font_mono_bold = "monospace, bold 10"
beautiful.font      = beautiful.font_mono

beautiful.taglist_font   = beautiful.font_sans
beautiful.tasklist_font  = beautiful.font_sans
beautiful.textclock_font = beautiful.font_sans
beautiful.tooltip_font   = beautiful.font_mono

-- bar
--beautiful.tasklist_font_focus = beautiful.font -- prevent bold
beautiful.wibar_height = math.floor(beautiful.get_font_height(beautiful.font) * 1.15)
beautiful.wibar_bg = darkgray
beautiful.tasklist_plain_task_name = true -- don't use client status icons

-- hotkeys menu
beautiful.hotkeys_font = beautiful.font_mono -- TODO make bold
beautiful.hotkeys_description_font = beautiful.font
beautiful.hotkeys_border_color = beautiful.border_focus
beautiful.hotkeys_bg = darkgray
beautiful.hotkeys_fg = white
beautiful.hotkeys_label_fg = white
beautiful.hotkeys_modifiers_fg = lightgray
beautiful.hotkeys_label_bg = darkgray -- ???

-- slider
beautiful.slider_bar_height = 5
beautiful.slider_bar_shape = gears.shape.rounded_rect
beautiful.slider_handle_width = 17.5
beautiful.slider_handle_shape = gears.shape.circle
beautiful.slider_handle_color = beautiful.border_color
beautiful.slider_handle_border_color = "#333333"
beautiful.slider_handle_border_width = 1

-- progressbar
beautiful.progressbar_fg = beautiful.border_focus

-- margins
beautiful.margin_leftright = beautiful.xresources.apply_dpi(5)
beautiful.margin_topbottom = beautiful.xresources.apply_dpi(3)

-- set border on clients
client.connect_signal("focus",   function(c) c.border_color = beautiful.border_focus  end)
client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)