1--------------------------
2-- Default awesome theme --
3---------------------------
4
5local theme_assets = require("beautiful.theme_assets")
6local xresources = require("beautiful.xresources")
7local rnotification = require("ruled.notification")
8local dpi = xresources.apply_dpi
9local config_dir = require("gears").filesystem.get_configuration_dir()
10
11local gfs = require("gears.filesystem")
12local themes_path = gfs.get_themes_dir()
13local colors = require("theme.colors.pita")
14
15local theme = {}
16
17theme.font = "Rubik 13 "
18
19theme.bg = colors.bg
20theme.bg1 = colors.bg1
21theme.bg2 = colors.bg2
22theme.fbg = colors.fbg
23
24theme.fg = colors.fg
25theme.fg1 = colors.fg1
26theme.grey = colors.grey
27
28theme.blue = colors.blue
29theme.green = colors.green
30theme.yellow = colors.yellow
31theme.red = colors.red
32
33theme.bg_normal = theme.bg
34theme.bg_focus = theme.bg2
35theme.bg_urgent = theme.bg3
36theme.bg_minimize = theme.bg3
37theme.bg_systray = theme.bg_normal
38theme.pita = config_dir .. "theme/icons/default.svg"
39
40theme.fg_normal = theme.fg
41theme.fg_focus = theme.fg1
42theme.fg_urgent = theme.fg1
43theme.fg_minimize = theme.fg1
44
45theme.useless_gap = dpi(4)
46theme.border_width = dpi(0)
47theme.border_color_normal = "#000000"
48theme.border_color_active = "#535d6c"
49theme.border_color_marked = "#91231c"
50
51-- There are other variable sets
52-- overriding the default one when
53-- defined, the sets are:
54-- taglist_[bg|fg]_[focus|urgent|occupied|empty|volatile]
55-- tasklist_[bg|fg]_[focus|urgent]
56-- titlebar_[bg|fg]_[normal|focus]
57-- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color]
58-- prompt_[fg|bg|fg_cursor|bg_cursor|font]
59-- hotkeys_[bg|fg|border_width|border_color|shape|opacity|modifiers_fg|label_bg|label_fg|group_margin|font|description_font]
60-- Example:
61
62theme.taglist_bg_empty = "#131313"
63theme.taglist_bg_occupied = "#131313"
64theme.taglist_bg_focus = "#ef5a5a"
65
66theme.taglist_fg_empty = "#ffffff"
67theme.taglist_fg_occupied = "#ffffff"
68theme.taglist_fg_focus = "#ffffff"
69
70theme.tasklist_bg_empty = "#131313"
71theme.tasklist_bg_occupied = "#212121"
72theme.tasklist_bg_focus = "#212121"
73
74theme.tasklist_fg_empty = "#ffffff"
75theme.tasklist_fg_occupied = "#ffffff"
76theme.tasklist_fg_focus = "#ffffff"
77
78-- Variables set for theming notifications:
79-- notification_font
80-- notification_[bg|fg]
81-- notification_[width|height|margin]
82-- notification_[border_color|border_width|shape|opacity]
83
84-- Variables set for theming the menu:
85-- menu_[bg|fg]_[normal|focus]
86-- menu_[border_color|border_width]
87theme.menu_submenu_icon = themes_path .. "default/submenu.png"
88theme.menu_height = dpi(15)
89theme.menu_width = dpi(100)
90
91-- You can add as many variables as
92-- you wish and access them by using
93-- beautiful.variable in your rc.lua
94--theme.bg_widget = "#cc0000"
95
96-- Define the image to load
97theme.titlebar_close_button_normal = themes_path .. "default/titlebar/close_normal.png"
98theme.titlebar_close_button_focus = themes_path .. "default/titlebar/close_focus.png"
99
100theme.titlebar_minimize_button_normal = themes_path .. "default/titlebar/minimize_normal.png"
101theme.titlebar_minimize_button_focus = themes_path .. "default/titlebar/minimize_focus.png"
102
103theme.titlebar_ontop_button_normal_inactive = themes_path .. "default/titlebar/ontop_normal_inactive.png"
104theme.titlebar_ontop_button_focus_inactive = themes_path .. "default/titlebar/ontop_focus_inactive.png"
105theme.titlebar_ontop_button_normal_active = themes_path .. "default/titlebar/ontop_normal_active.png"
106theme.titlebar_ontop_button_focus_active = themes_path .. "default/titlebar/ontop_focus_active.png"
107
108theme.titlebar_sticky_button_normal_inactive = themes_path .. "default/titlebar/sticky_normal_inactive.png"
109theme.titlebar_sticky_button_focus_inactive = themes_path .. "default/titlebar/sticky_focus_inactive.png"
110theme.titlebar_sticky_button_normal_active = themes_path .. "default/titlebar/sticky_normal_active.png"
111theme.titlebar_sticky_button_focus_active = themes_path .. "default/titlebar/sticky_focus_active.png"
112
113theme.titlebar_floating_button_normal_inactive = themes_path .. "default/titlebar/floating_normal_inactive.png"
114theme.titlebar_floating_button_focus_inactive = themes_path .. "default/titlebar/floating_focus_inactive.png"
115theme.titlebar_floating_button_normal_active = themes_path .. "default/titlebar/floating_normal_active.png"
116theme.titlebar_floating_button_focus_active = themes_path .. "default/titlebar/floating_focus_active.png"
117
118theme.titlebar_maximized_button_normal_inactive = themes_path .. "default/titlebar/maximized_normal_inactive.png"
119theme.titlebar_maximized_button_focus_inactive = themes_path .. "default/titlebar/maximized_focus_inactive.png"
120theme.titlebar_maximized_button_normal_active = themes_path .. "default/titlebar/maximized_normal_active.png"
121theme.titlebar_maximized_button_focus_active = themes_path .. "default/titlebar/maximized_focus_active.png"
122
123theme.wallpaper = "/home/pita/Downloads/wallppp.jpg"
124
125-- You can use your own layout icons like this:
126theme.layout_fairh = themes_path .. "default/layouts/fairhw.png"
127theme.layout_fairv = themes_path .. "default/layouts/fairvw.png"
128theme.layout_floating = themes_path .. "default/layouts/floatingw.png"
129theme.layout_magnifier = themes_path .. "default/layouts/magnifierw.png"
130theme.layout_max = themes_path .. "default/layouts/maxw.png"
131theme.layout_fullscreen = themes_path .. "default/layouts/fullscreenw.png"
132theme.layout_tilebottom = themes_path .. "default/layouts/tilebottomw.png"
133theme.layout_tileleft = themes_path .. "default/layouts/tileleftw.png"
134theme.layout_tile = themes_path .. "default/layouts/tilew.png"
135theme.layout_tiletop = themes_path .. "default/layouts/tiletopw.png"
136theme.layout_spiral = themes_path .. "default/layouts/spiralw.png"
137theme.layout_dwindle = themes_path .. "default/layouts/dwindlew.png"
138theme.layout_cornernw = themes_path .. "default/layouts/cornernww.png"
139theme.layout_cornerne = themes_path .. "default/layouts/cornernew.png"
140theme.layout_cornersw = themes_path .. "default/layouts/cornersww.png"
141theme.layout_cornerse = themes_path .. "default/layouts/cornersew.png"
142
143-- Generate Awesome icon:
144theme.awesome_icon = theme_assets.awesome_icon(theme.menu_height, theme.bg_focus, theme.fg_focus)
145
146-- Define the icon theme for application icons. If not set then the icons
147-- from /usr/share/icons and /usr/share/icons/hicolor will be used.
148theme.icon_theme = "Papirus-Dark"
149
150-- Set different colors for urgent notifications.
151rnotification.connect_signal("request::rules", function()
152 rnotification.append_rule({
153 rule = { urgency = "critical" },
154 properties = { bg = "#ff0000", fg = "#ffffff" },
155 })
156end)
157
158return theme