Browse Source

Added serenity theme

master
Yessiest 1 year ago
parent
commit
6a29520b3c
  1. 10
      libs/builder.lua
  2. 121
      themes/serenity/COPYING.txt
  3. 8
      themes/serenity/config/client_menu.json
  4. 9
      themes/serenity/config/global.json
  5. 5
      themes/serenity/config/lockpanel.json
  6. 29
      themes/serenity/config/root_menu.json
  7. 44
      themes/serenity/config/titlebar_top.json
  8. 18
      themes/serenity/config/wibar_bottom.json
  9. 25
      themes/serenity/config/wibar_top.json
  10. 3
      themes/serenity/icons/README
  11. BIN
      themes/serenity/icons/ac-adapter-symbolic.png
  12. BIN
      themes/serenity/icons/action-lock-screen-symbolic.png
  13. BIN
      themes/serenity/icons/action-poweroff-symbolic.png
  14. BIN
      themes/serenity/icons/action-suspend-symbolic.png
  15. BIN
      themes/serenity/icons/backlight-symbolic.png
  16. BIN
      themes/serenity/icons/battery-caution-charging-symbolic.png
  17. BIN
      themes/serenity/icons/battery-caution-symbolic.png
  18. BIN
      themes/serenity/icons/battery-empty-charging-symbolic.png
  19. BIN
      themes/serenity/icons/battery-empty-symbolic.png
  20. BIN
      themes/serenity/icons/battery-full-charged-symbolic.png
  21. BIN
      themes/serenity/icons/battery-full-charging-symbolic.png
  22. BIN
      themes/serenity/icons/battery-full-symbolic.png
  23. BIN
      themes/serenity/icons/battery-good-charging-symbolic.png
  24. BIN
      themes/serenity/icons/battery-good-symbolic.png
  25. BIN
      themes/serenity/icons/battery-low-charging-symbolic.png
  26. BIN
      themes/serenity/icons/battery-low-symbolic.png
  27. BIN
      themes/serenity/icons/battery-missing-symbolic.png
  28. BIN
      themes/serenity/icons/battery.png
  29. BIN
      themes/serenity/icons/mpc-next-symbolic.png
  30. BIN
      themes/serenity/icons/mpc-pause-symbolic.png
  31. BIN
      themes/serenity/icons/mpc-play-symbolic.png
  32. BIN
      themes/serenity/icons/mpc-previous-symbolic.png
  33. BIN
      themes/serenity/icons/notifications-area-symbolic.png
  34. BIN
      themes/serenity/icons/reno98.png
  35. BIN
      themes/serenity/icons/unknown-app.png
  36. BIN
      themes/serenity/icons/wallpapers.png
  37. BIN
      themes/serenity/layouts/cornerne.png
  38. BIN
      themes/serenity/layouts/cornernew.png
  39. BIN
      themes/serenity/layouts/cornernw.png
  40. BIN
      themes/serenity/layouts/cornernww.png
  41. BIN
      themes/serenity/layouts/cornerse.png
  42. BIN
      themes/serenity/layouts/cornersew.png
  43. BIN
      themes/serenity/layouts/cornersw.png
  44. BIN
      themes/serenity/layouts/cornersww.png
  45. BIN
      themes/serenity/layouts/dwindle.png
  46. BIN
      themes/serenity/layouts/dwindlew.png
  47. BIN
      themes/serenity/layouts/fairh.png
  48. BIN
      themes/serenity/layouts/fairhw.png
  49. BIN
      themes/serenity/layouts/fairv.png
  50. BIN
      themes/serenity/layouts/fairvw.png
  51. BIN
      themes/serenity/layouts/floating.png
  52. BIN
      themes/serenity/layouts/floatingw.png
  53. BIN
      themes/serenity/layouts/fullscreen.png
  54. BIN
      themes/serenity/layouts/fullscreenw.png
  55. BIN
      themes/serenity/layouts/magnifier.png
  56. BIN
      themes/serenity/layouts/magnifierw.png
  57. BIN
      themes/serenity/layouts/max.png
  58. BIN
      themes/serenity/layouts/maxw.png
  59. BIN
      themes/serenity/layouts/spiral.png
  60. BIN
      themes/serenity/layouts/spiralw.png
  61. BIN
      themes/serenity/layouts/tile.png
  62. BIN
      themes/serenity/layouts/tilebottom.png
  63. BIN
      themes/serenity/layouts/tilebottomw.png
  64. BIN
      themes/serenity/layouts/tileleft.png
  65. BIN
      themes/serenity/layouts/tileleftw.png
  66. BIN
      themes/serenity/layouts/tiletop.png
  67. BIN
      themes/serenity/layouts/tiletopw.png
  68. BIN
      themes/serenity/layouts/tilew.png
  69. BIN
      themes/serenity/submenu.png
  70. BIN
      themes/serenity/taglist/squarefw.png
  71. BIN
      themes/serenity/taglist/squarew.png
  72. 737
      themes/serenity/theme.lua
  73. BIN
      themes/serenity/titlebar/close_focus.png
  74. BIN
      themes/serenity/titlebar/close_normal.png
  75. BIN
      themes/serenity/titlebar/floating_focus_active.png
  76. BIN
      themes/serenity/titlebar/floating_focus_inactive.png
  77. BIN
      themes/serenity/titlebar/floating_normal_active.png
  78. BIN
      themes/serenity/titlebar/floating_normal_inactive.png
  79. BIN
      themes/serenity/titlebar/maximized_focus_active.png
  80. BIN
      themes/serenity/titlebar/maximized_focus_inactive.png
  81. BIN
      themes/serenity/titlebar/maximized_normal_active.png
  82. BIN
      themes/serenity/titlebar/maximized_normal_inactive.png
  83. BIN
      themes/serenity/titlebar/minimize_focus.png
  84. BIN
      themes/serenity/titlebar/minimize_normal.png
  85. BIN
      themes/serenity/titlebar/ontop_focus_active.png
  86. BIN
      themes/serenity/titlebar/ontop_focus_inactive.png
  87. BIN
      themes/serenity/titlebar/ontop_normal_active.png
  88. BIN
      themes/serenity/titlebar/ontop_normal_inactive.png
  89. BIN
      themes/serenity/titlebar/sticky_focus_active.png
  90. BIN
      themes/serenity/titlebar/sticky_focus_inactive.png
  91. BIN
      themes/serenity/titlebar/sticky_normal_active.png
  92. BIN
      themes/serenity/titlebar/sticky_normal_inactive.png
  93. 114
      themes/unity_mate/theme.lua
  94. 8
      widgets/base/popuptitle.lua
  95. 21
      widgets/base/separator.lua
  96. 3
      widgets/base/subpanel.lua

10
libs/builder.lua

@ -68,7 +68,7 @@ return function(description,opts)
(struct.vertical and "vertical") or
"horizontal"
)],
spacing = style.spacing
spacing = style.spacing or struct.spacing
}
for _,v in pairs(struct.list) do
if v.draggable then
@ -89,18 +89,18 @@ return function(description,opts)
local list = {
{
layout = wibox.layout.fixed[orient],
spacing = style.spacing
spacing = style.spacing or struct.spacing
},{
layout = wibox.layout.flex[orient],
spacing = style.spacing
spacing = style.spacing or struct.spacing
},{
-- Simulating "spacing" parameter
widget = builtins[(struct.vertical and "v_spacer") or
"h_spacer"]({size = style.spacing}),
layout = wibox.layout.fixed[orient],
spacing = style.spacing
spacing = style.spacing or struct.spacing
},
layout = wibox.layout.align[orient]
layout = wibox.layout.align[orient],
}
for k,v in pairs({"left","center","right"}) do
for _,obj in pairs(struct.align[v]) do

121
themes/serenity/COPYING.txt

@ -0,0 +1,121 @@
Creative Commons Legal Code
CC0 1.0 Universal
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
HEREUNDER.
Statement of Purpose
The laws of most jurisdictions throughout the world automatically confer
exclusive Copyright and Related Rights (defined below) upon the creator
and subsequent owner(s) (each and all, an "owner") of an original work of
authorship and/or a database (each, a "Work").
Certain owners wish to permanently relinquish those rights to a Work for
the purpose of contributing to a commons of creative, cultural and
scientific works ("Commons") that the public can reliably and without fear
of later claims of infringement build upon, modify, incorporate in other
works, reuse and redistribute as freely as possible in any form whatsoever
and for any purposes, including without limitation commercial purposes.
These owners may contribute to the Commons to promote the ideal of a free
culture and the further production of creative, cultural and scientific
works, or to gain reputation or greater distribution for their Work in
part through the use and efforts of others.
For these and/or other purposes and motivations, and without any
expectation of additional consideration or compensation, the person
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
is an owner of Copyright and Related Rights in the Work, voluntarily
elects to apply CC0 to the Work and publicly distribute the Work under its
terms, with knowledge of his or her Copyright and Related Rights in the
Work and the meaning and intended legal effect of CC0 on those rights.
1. Copyright and Related Rights. A Work made available under CC0 may be
protected by copyright and related or neighboring rights ("Copyright and
Related Rights"). Copyright and Related Rights include, but are not
limited to, the following:
i. the right to reproduce, adapt, distribute, perform, display,
communicate, and translate a Work;
ii. moral rights retained by the original author(s) and/or performer(s);
iii. publicity and privacy rights pertaining to a person's image or
likeness depicted in a Work;
iv. rights protecting against unfair competition in regards to a Work,
subject to the limitations in paragraph 4(a), below;
v. rights protecting the extraction, dissemination, use and reuse of data
in a Work;
vi. database rights (such as those arising under Directive 96/9/EC of the
European Parliament and of the Council of 11 March 1996 on the legal
protection of databases, and under any national implementation
thereof, including any amended or successor version of such
directive); and
vii. other similar, equivalent or corresponding rights throughout the
world based on applicable law or treaty, and any national
implementations thereof.
2. Waiver. To the greatest extent permitted by, but not in contravention
of, applicable law, Affirmer hereby overtly, fully, permanently,
irrevocably and unconditionally waives, abandons, and surrenders all of
Affirmer's Copyright and Related Rights and associated claims and causes
of action, whether now known or unknown (including existing as well as
future claims and causes of action), in the Work (i) in all territories
worldwide, (ii) for the maximum duration provided by applicable law or
treaty (including future time extensions), (iii) in any current or future
medium and for any number of copies, and (iv) for any purpose whatsoever,
including without limitation commercial, advertising or promotional
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
member of the public at large and to the detriment of Affirmer's heirs and
successors, fully intending that such Waiver shall not be subject to
revocation, rescission, cancellation, termination, or any other legal or
equitable action to disrupt the quiet enjoyment of the Work by the public
as contemplated by Affirmer's express Statement of Purpose.
3. Public License Fallback. Should any part of the Waiver for any reason
be judged legally invalid or ineffective under applicable law, then the
Waiver shall be preserved to the maximum extent permitted taking into
account Affirmer's express Statement of Purpose. In addition, to the
extent the Waiver is so judged Affirmer hereby grants to each affected
person a royalty-free, non transferable, non sublicensable, non exclusive,
irrevocable and unconditional license to exercise Affirmer's Copyright and
Related Rights in the Work (i) in all territories worldwide, (ii) for the
maximum duration provided by applicable law or treaty (including future
time extensions), (iii) in any current or future medium and for any number
of copies, and (iv) for any purpose whatsoever, including without
limitation commercial, advertising or promotional purposes (the
"License"). The License shall be deemed effective as of the date CC0 was
applied by Affirmer to the Work. Should any part of the License for any
reason be judged legally invalid or ineffective under applicable law, such
partial invalidity or ineffectiveness shall not invalidate the remainder
of the License, and in such case Affirmer hereby affirms that he or she
will not (i) exercise any of his or her remaining Copyright and Related
Rights in the Work or (ii) assert any associated claims and causes of
action with respect to the Work, in either case contrary to Affirmer's
express Statement of Purpose.
4. Limitations and Disclaimers.
a. No trademark or patent rights held by Affirmer are waived, abandoned,
surrendered, licensed or otherwise affected by this document.
b. Affirmer offers the Work as-is and makes no representations or
warranties of any kind concerning the Work, express, implied,
statutory or otherwise, including without limitation warranties of
title, merchantability, fitness for a particular purpose, non
infringement, or the absence of latent or other defects, accuracy, or
the present or absence of errors, whether or not discoverable, all to
the greatest extent permissible under applicable law.
c. Affirmer disclaims responsibility for clearing rights of other persons
that may apply to the Work or any use thereof, including without
limitation any person's Copyright and Related Rights in the Work.
Further, Affirmer disclaims responsibility for obtaining any necessary
consents, permissions or other rights required for any use of the
Work.
d. Affirmer understands and acknowledges that Creative Commons is not a
party to this document and has no duty or obligation with respect to
this CC0 or use of the Work.

8
themes/serenity/config/client_menu.json

@ -0,0 +1,8 @@
{
"list": [
{"widget": "widgets.clientmenu.volume","vertical":false},
{"widget": "widgets.clientmenu.controls"},
{"widget": "widgets.clientmenu.buttons"}
],
"vertical":true
}

9
themes/serenity/config/global.json

@ -0,0 +1,9 @@
{
"widgets.dismal":{
"x":0,
"y":26
},
"widgets.rootmenu":{},
"widgets.lockscreen":{},
"widgets.base.keypopup":{}
}

5
themes/serenity/config/lockpanel.json

@ -0,0 +1,5 @@
{
"widgets.lock.clock":{
"format": "%a %b %d\n %H: %M"
}
}

29
themes/serenity/config/root_menu.json

@ -0,0 +1,29 @@
{
"list": [
{"widget": "widgets.base.popuptitle",
"options":{
"icon":"icons/reno98.png",
"title":"Serenity"
},
"vertical":true
},
{
"list": [
{"widget": "widgets.base.tagswitcher",
"screen":true
},
{"widget": "widgets.rootmenu.controls"},
{"widget": "widgets.xdgmenu",
"options": {
"exclude_category": [
"Other"
]
}
},
{"widget": "widgets.rootmenu.buttons"}
],
"vertical": true
}
],
"vertical": false
}

44
themes/serenity/config/titlebar_top.json

@ -0,0 +1,44 @@
{
"align": {
"left": [
{
"widget":"widgets.clientmenu",
"client":true
}
],
"center": [
{
"list":[
{
"draggable": true
},
{
"builtin": "titlewidget",
"client" : true,
"options": {
"align": "left"
}
},
{
"widget":"widgets.base.separator",
"vertical":true
}
]
}
],
"right": [
{
"builtin": "minimizebutton",
"client": true
},
{
"builtin": "maximizedbutton",
"client": true
},
{
"builtin": "closebutton",
"client": true
}
]
}
}

18
themes/serenity/config/wibar_bottom.json

@ -0,0 +1,18 @@
{
"align": {
"left": [
{
"widget": "widgets.desktop.tasklist",
"screen": true
}
],
"center": [
],
"right": [
{
"widget": "widgets.desktop.launcher"
}
]
}
}

25
themes/serenity/config/wibar_top.json

@ -0,0 +1,25 @@
{
"align": {
"left": [
{ "widget": "widgets.desktop.soundclown" }
],
"center": [
],
"right": [
{ "widget":"widgets.desktop.volume" },
{ "widget": "widgets.desktop.notifications",
"screen": true
},
{ "widget": "widgets.desktop.wallpapers",
"screen": true,
"options": {
"path": "$HOME/Pictures/Wallpapers"
}
},
{ "widget": "widgets.desktop.battery" },
{ "widget": "widgets.base.systray" },
{ "widget": "widgets.base.clock" }
]
}
}

3
themes/serenity/icons/README

@ -0,0 +1,3 @@
Licensed under conditions of CC0 (https://creativecommons.org/publicdomain/zero/1.0/legalcode.txt)
To the extent possible under law, Yessiest (yessiest@memeware.net) has waived all copyright and related or neighboring rights to Reno98 icons

BIN
themes/serenity/icons/ac-adapter-symbolic.png

After

Width: 48  |  Height: 48  |  Size: 550 B

BIN
themes/serenity/icons/action-lock-screen-symbolic.png

After

Width: 32  |  Height: 32  |  Size: 510 B

BIN
themes/serenity/icons/action-poweroff-symbolic.png

After

Width: 31  |  Height: 32  |  Size: 787 B

BIN
themes/serenity/icons/action-suspend-symbolic.png

After

Width: 32  |  Height: 32  |  Size: 721 B

BIN
themes/serenity/icons/backlight-symbolic.png

After

Width: 48  |  Height: 48  |  Size: 1.2 KiB

BIN
themes/serenity/icons/battery-caution-charging-symbolic.png

After

Width: 48  |  Height: 48  |  Size: 515 B

BIN
themes/serenity/icons/battery-caution-symbolic.png

After

Width: 48  |  Height: 48  |  Size: 392 B

BIN
themes/serenity/icons/battery-empty-charging-symbolic.png

After

Width: 48  |  Height: 48  |  Size: 480 B

BIN
themes/serenity/icons/battery-empty-symbolic.png

After

Width: 48  |  Height: 48  |  Size: 366 B

BIN
themes/serenity/icons/battery-full-charged-symbolic.png

After

Width: 48  |  Height: 48  |  Size: 374 B

BIN
themes/serenity/icons/battery-full-charging-symbolic.png

After

Width: 48  |  Height: 48  |  Size: 510 B

BIN
themes/serenity/icons/battery-full-symbolic.png

After

Width: 48  |  Height: 48  |  Size: 374 B

BIN
themes/serenity/icons/battery-good-charging-symbolic.png

After

Width: 48  |  Height: 48  |  Size: 541 B

BIN
themes/serenity/icons/battery-good-symbolic.png

After

Width: 48  |  Height: 48  |  Size: 396 B

BIN
themes/serenity/icons/battery-low-charging-symbolic.png

After

Width: 48  |  Height: 48  |  Size: 538 B

BIN
themes/serenity/icons/battery-low-symbolic.png

After

Width: 48  |  Height: 48  |  Size: 403 B

BIN
themes/serenity/icons/battery-missing-symbolic.png

After

Width: 48  |  Height: 48  |  Size: 446 B

BIN
themes/serenity/icons/battery.png

After

Width: 48  |  Height: 48  |  Size: 374 B

BIN
themes/serenity/icons/mpc-next-symbolic.png

After

Width: 512  |  Height: 512  |  Size: 6.1 KiB

BIN
themes/serenity/icons/mpc-pause-symbolic.png

After

Width: 512  |  Height: 512  |  Size: 2.3 KiB

BIN
themes/serenity/icons/mpc-play-symbolic.png

After

Width: 512  |  Height: 512  |  Size: 7.6 KiB

BIN
themes/serenity/icons/mpc-previous-symbolic.png

After

Width: 512  |  Height: 512  |  Size: 6.3 KiB

BIN
themes/serenity/icons/notifications-area-symbolic.png

After

Width: 48  |  Height: 48  |  Size: 455 B

BIN
themes/serenity/icons/reno98.png

After

Width: 48  |  Height: 48  |  Size: 718 B

BIN
themes/serenity/icons/unknown-app.png

After

Width: 64  |  Height: 64  |  Size: 768 B

BIN
themes/serenity/icons/wallpapers.png

After

Width: 40  |  Height: 35  |  Size: 682 B

BIN
themes/serenity/layouts/cornerne.png

After

Width: 64  |  Height: 64  |  Size: 272 B

BIN
themes/serenity/layouts/cornernew.png

After

Width: 64  |  Height: 64  |  Size: 272 B

BIN
themes/serenity/layouts/cornernw.png

After

Width: 64  |  Height: 64  |  Size: 263 B

BIN
themes/serenity/layouts/cornernww.png

After

Width: 64  |  Height: 64  |  Size: 264 B

BIN
themes/serenity/layouts/cornerse.png

After

Width: 64  |  Height: 64  |  Size: 264 B

BIN
themes/serenity/layouts/cornersew.png

After

Width: 64  |  Height: 64  |  Size: 264 B

BIN
themes/serenity/layouts/cornersw.png

After

Width: 64  |  Height: 64  |  Size: 263 B

BIN
themes/serenity/layouts/cornersww.png

After

Width: 64  |  Height: 64  |  Size: 264 B

BIN
themes/serenity/layouts/dwindle.png

After

Width: 64  |  Height: 64  |  Size: 320 B

BIN
themes/serenity/layouts/dwindlew.png

After

Width: 64  |  Height: 64  |  Size: 320 B

BIN
themes/serenity/layouts/fairh.png

After

Width: 64  |  Height: 64  |  Size: 245 B

BIN
themes/serenity/layouts/fairhw.png

After

Width: 64  |  Height: 64  |  Size: 245 B

BIN
themes/serenity/layouts/fairv.png

After

Width: 64  |  Height: 64  |  Size: 246 B

BIN
themes/serenity/layouts/fairvw.png

After

Width: 64  |  Height: 64  |  Size: 246 B

BIN
themes/serenity/layouts/floating.png

After

Width: 64  |  Height: 64  |  Size: 282 B

BIN
themes/serenity/layouts/floatingw.png

After

Width: 64  |  Height: 64  |  Size: 282 B

BIN
themes/serenity/layouts/fullscreen.png

After

Width: 64  |  Height: 64  |  Size: 866 B

BIN
themes/serenity/layouts/fullscreenw.png

After

Width: 64  |  Height: 64  |  Size: 865 B

BIN
themes/serenity/layouts/magnifier.png

After

Width: 64  |  Height: 64  |  Size: 345 B

BIN
themes/serenity/layouts/magnifierw.png

After

Width: 64  |  Height: 64  |  Size: 345 B

BIN
themes/serenity/layouts/max.png

After

Width: 64  |  Height: 64  |  Size: 574 B

BIN
themes/serenity/layouts/maxw.png

After

Width: 64  |  Height: 64  |  Size: 581 B

BIN
themes/serenity/layouts/spiral.png

After

Width: 64  |  Height: 64  |  Size: 328 B

BIN
themes/serenity/layouts/spiralw.png

After

Width: 64  |  Height: 64  |  Size: 328 B

BIN
themes/serenity/layouts/tile.png

After

Width: 64  |  Height: 64  |  Size: 265 B

BIN
themes/serenity/layouts/tilebottom.png

After

Width: 64  |  Height: 64  |  Size: 264 B

BIN
themes/serenity/layouts/tilebottomw.png

After

Width: 64  |  Height: 64  |  Size: 264 B

BIN
themes/serenity/layouts/tileleft.png

After

Width: 64  |  Height: 64  |  Size: 266 B

BIN
themes/serenity/layouts/tileleftw.png

After

Width: 64  |  Height: 64  |  Size: 266 B

BIN
themes/serenity/layouts/tiletop.png

After

Width: 56  |  Height: 56  |  Size: 260 B

BIN
themes/serenity/layouts/tiletopw.png

After

Width: 64  |  Height: 64  |  Size: 265 B

BIN
themes/serenity/layouts/tilew.png

After

Width: 64  |  Height: 64  |  Size: 265 B

BIN
themes/serenity/submenu.png

After

Width: 25  |  Height: 25  |  Size: 440 B

BIN
themes/serenity/taglist/squarefw.png

After

Width: 8  |  Height: 32  |  Size: 187 B

BIN
themes/serenity/taglist/squarew.png

After

Width: 8  |  Height: 32  |  Size: 193 B

737
themes/serenity/theme.lua

@ -0,0 +1,737 @@
-- Reno98 - a retro replica of a very recognizable theme
--[[
Reno98 - A theme for Reno desktop
Written in 2022 by Yessiest (yessiest@memeware.net)
To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
--]]
local theme_assets = require("beautiful.theme_assets")
local xresources = require("beautiful.xresources")
local dpi = xresources.apply_dpi
local gears = require("gears")
local gfs = require("gears.filesystem")
local themes_path = root_path.."/themes/"
local theme = {}
theme.font = "Terminus 8"
theme.bg_normal = "#c0c0c0"
theme.bg_focus = "#D6D3CE"
theme.bg_urgent = "#FFEDCC"
theme.bg_minimize = "#efefef"
theme.bg_highlight = "#D6D3CE"
theme.bg_highlight_shadow = "#404040FF"
theme.bg_highlight_light = "#FFFFFFFF"
theme.bg_highlight_outline = "#808080FF"
theme.bg_systray = theme.bg_normal
theme.fg_normal = "#000000"
theme.fg_focus = "#000000"
theme.fg_urgent = "#000000"
theme.fg_minimize = "#000000"
theme.useless_gap = dpi(0)
-- technically speaking these are irrelevant since they're not exactly smart
-- borders
theme.titlebar_bg_accent_normal_1 = "#808080"
theme.titlebar_bg_accent_normal_2 = "#c0c0c0"
theme.titlebar_bg_accent_focus_1 = "#632210"
theme.titlebar_bg_accent_focus_2 = "#b47856"
theme.border_width = 0
theme.border_normal = "#c0c0c0"
theme.border_focus = "#c0c0c0"
theme.border_marked = "#c0c0c0"
theme.window_rounding = 0
theme.titlebar_bg_focus = {
type = "linear",
from = { 0, 0 },
to = { 640, 0 },
stops = { {0, "#632210"}, {1, "#fed8b1"} }
}
theme.titlebar_bg_normal = {
type = "linear",
from = { 0, 0 },
to = { 640, 0 },
stops = { {0, "#828282"}, {1, "#AFAFAF"} }
}
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.menu_height = dpi(15)
theme.menu_width = dpi(100)
theme.systray_icon_spacing = 2
-- Define the image to load
theme.titlebar_ontop_button_normal_inactive = themes_path.."serenity/titlebar/ontop_normal_inactive.png"
theme.titlebar_ontop_button_focus_inactive = themes_path.."serenity/titlebar/ontop_focus_inactive.png"
theme.titlebar_ontop_button_normal_active = themes_path.."serenity/titlebar/ontop_normal_active.png"
theme.titlebar_ontop_button_focus_active = themes_path.."serenity/titlebar/ontop_focus_active.png"
theme.titlebar_sticky_button_normal_inactive = themes_path.."serenity/titlebar/sticky_normal_inactive.png"
theme.titlebar_sticky_button_focus_inactive = themes_path.."serenity/titlebar/sticky_focus_inactive.png"
theme.titlebar_sticky_button_normal_active = themes_path.."serenity/titlebar/sticky_normal_active.png"
theme.titlebar_sticky_button_focus_active = themes_path.."serenity/titlebar/sticky_focus_active.png"
theme.titlebar_floating_button_normal_inactive = themes_path.."serenity/titlebar/floating_normal_inactive.png"
theme.titlebar_floating_button_focus_inactive = themes_path.."serenity/titlebar/floating_focus_inactive.png"
theme.titlebar_floating_button_normal_active = themes_path.."serenity/titlebar/floating_normal_active.png"
theme.titlebar_floating_button_focus_active = themes_path.."serenity/titlebar/floating_focus_active.png"
theme = theme_assets.recolor_titlebar(theme,theme.fg_normal,"normal")
theme = theme_assets.recolor_titlebar(theme,theme.fg_focus,"focus")
theme.titlebar_close_button_normal = themes_path.."serenity/titlebar/close_normal.png"
theme.titlebar_close_button_focus = themes_path.."serenity/titlebar/close_focus.png"
theme.titlebar_minimize_button_normal = themes_path.."serenity/titlebar/minimize_normal.png"
theme.titlebar_minimize_button_focus = themes_path.."serenity/titlebar/minimize_focus.png"
theme.titlebar_maximized_button_normal_inactive = themes_path.."serenity/titlebar/maximized_normal_inactive.png"
theme.titlebar_maximized_button_focus_inactive = themes_path.."serenity/titlebar/maximized_focus_inactive.png"
theme.titlebar_maximized_button_normal_active = themes_path.."serenity/titlebar/maximized_normal_active.png"
theme.titlebar_maximized_button_focus_active = themes_path.."serenity/titlebar/maximized_focus_active.png"
theme.wallpaper = themes_path.."serenity/background.png"
theme.wallpapers_icon = themes_path.."serenity/icons/wallpapers.png"
-- You can use your own layout icons like this:
theme.layout_fairh = themes_path.."serenity/layouts/fairhw.png"
theme.layout_fairv = themes_path.."serenity/layouts/fairvw.png"
theme.layout_floating = themes_path.."serenity/layouts/floatingw.png"
theme.layout_magnifier = themes_path.."serenity/layouts/magnifierw.png"
theme.layout_max = themes_path.."serenity/layouts/maxw.png"
theme.layout_fullscreen = themes_path.."serenity/layouts/fullscreenw.png"
theme.layout_tilebottom = themes_path.."serenity/layouts/tilebottomw.png"
theme.layout_tileleft = themes_path.."serenity/layouts/tileleftw.png"
theme.layout_tile = themes_path.."serenity/layouts/tilew.png"
theme.layout_tiletop = themes_path.."serenity/layouts/tiletopw.png"
theme.layout_spiral = themes_path.."serenity/layouts/spiralw.png"
theme.layout_dwindle = themes_path.."serenity/layouts/dwindlew.png"
theme.layout_cornernw = themes_path.."serenity/layouts/cornernww.png"
theme.layout_cornerne = themes_path.."serenity/layouts/cornernew.png"
theme.layout_cornersw = themes_path.."serenity/layouts/cornersww.png"
theme.layout_cornerse = themes_path.."serenity/layouts/cornersew.png"
-- Generate Awesome icon:
theme.awesome_icon = theme_assets.awesome_icon(
theme.menu_height, theme.bg_focus, theme.fg_focus
)
theme.hotkeys_border_width = 3
theme.hotkeys_border_color = theme.bg_focus
theme.hotkeys_modifiers_fg = theme.fg_normal
theme.hotkeys_label_fg = theme.fg_normal
theme.bgimage_outset = function(context, cr, width, height,...)
local light = gears.color(theme.bg_highlight_light)
local shadow = gears.color(theme.bg_highlight_shadow)
local outline = gears.color(theme.bg_highlight_outline)
-- Background
-- Light
cr:set_source(light)
cr.line_width=2
cr:move_to(0,0)
cr:line_to(width,0)
cr:move_to(0,0)
cr:line_to(0,height)
cr:stroke()
-- Outline
cr:set_source(outline)
cr:move_to(width-1,height-1)
cr:line_to(width-1,1)
cr:move_to(width-2,height-1)
cr:line_to(1,height-1)
cr:stroke()
-- Shadow
cr:set_source(shadow)
cr:move_to(width,height)
cr:line_to(width,0)
cr:move_to(width-1,height)
cr:line_to(0,height)
cr:stroke()
end
theme.bgimage_inset = function(context,cr,width,height)
local light = gears.color(theme.bg_highlight_light)
local shadow = gears.color(theme.bg_highlight_shadow)
local outline = gears.color(theme.bg_highlight_outline)
-- Light
cr:set_source(light)
cr.line_width=2
cr:move_to(width,height)
cr:line_to(width,0)
cr:move_to(width,height)
cr:line_to(0,height)
cr:stroke()
-- Shadow
cr:set_source(shadow)
cr.line_width=2
cr:move_to(0,0)
cr:line_to(0,height)
cr:move_to(0,0)
cr:line_to(width,0)
cr:stroke()
end
theme.bgimage_highlight = function(context,cr,width,height)
local light = gears.color(theme.bg_highlight_light)
local shadow = gears.color(theme.bg_highlight_shadow)
local outline = gears.color(theme.bg_highlight_outline)
-- Light
cr:set_source(light)
cr.line_width=2
cr:move_to(1,1)
cr:line_to(1,height-2)
cr:move_to(1,1)
cr:line_to(width-2,1)
cr:stroke()
-- Outline
cr:set_source(outline)
cr.line_width=2
cr:rectangle(0,0,width-1,height-1)
cr:stroke()
-- Light (bottom)
cr:set_source(light)
cr:move_to(width,height)
cr:line_to(width,0)
cr:move_to(width,height)
cr:line_to(0,height)
cr:stroke()
end
theme.wibar_bgimage_top = function(context, cr, width, height,...)
local shadow = gears.color(theme.bg_highlight_shadow)
local outline = gears.color(theme.bg_highlight_outline)
-- Background
-- Outline
cr:set_source(outline)
cr:move_to(0,height-1)
cr:line_to(width,height-1)
cr:stroke()
-- Shadow
cr:set_source(shadow)
cr:move_to(0,height)
cr:line_to(width,height)
cr:stroke()
end
theme.wibar_bgimage_bottom = function(context, cr, width, height,...)
local light = gears.color(theme.bg_highlight_light)
-- Background
-- Light
cr:set_source(light)
cr.line_width=2
cr:move_to(0,0)
cr:line_to(width,0)
cr:stroke()
end
-- A complex piece of "code" to simulate borders.
theme.titlebar_bgimage_top_focus = function(context, cr, width, height,...)
local outer_line = gears.color(theme.titlebar_bg_accent_focus_1)
local inner_line = gears.color(theme.titlebar_bg_accent_focus_2)
cr.line_width = 2
cr:set_source(outer_line)
cr:move_to(1,height)
cr:line_to(width-1,height)
cr:stroke()
cr:set_source(inner_line)
cr:move_to(1,1)
cr:line_to(1,height)
cr:move_to(1,1)
cr:line_to(width-1,1)
cr:move_to(width-1,1)
cr:line_to(width-1,height)
cr:stroke()
cr:set_source(outer_line)
cr:move_to(0,0)
cr:line_to(0,height)
cr:move_to(0,0)
cr:line_to(width,0)
cr:move_to(width,0)
cr:line_to(width,height)
cr:stroke()
end
theme.titlebar_bgimage_bottom_focus = function(context, cr, width, height, ...)
local outer_line = gears.color(theme.titlebar_bg_accent_focus_1)
local inner_line = gears.color(theme.titlebar_bg_accent_focus_2)
cr.line_width = 2
cr:set_source(inner_line)
cr:move_to(1,height-1)
cr:line_to(width-1,height-1)
cr:move_to(1,height-1)
cr:line_to(1,0)
cr:move_to(width-1,height-1)
cr:line_to(width-1,0)
cr:stroke()
cr:set_source(outer_line)
cr:move_to(0,height)
cr:line_to(width,height)
cr:move_to(0,height)
cr:line_to(0,0)
cr:move_to(width,height)
cr:line_to(width,0)
cr:stroke()
end
theme.titlebar_bgimage_left_focus = function(context, cr, width, height,...)
local outer_line = gears.color(theme.titlebar_bg_accent_focus_1)
local inner_line = gears.color(theme.titlebar_bg_accent_focus_2)
cr.line_width = 2
cr:set_source(inner_line)
cr:move_to(1,0)
cr:line_to(1,height)
cr:stroke()
cr:set_source(outer_line)
cr:move_to(0,0)
cr:line_to(0,height)
cr:stroke()
end
theme.titlebar_bgimage_right_focus = function(context, cr, width, height,...)
local outer_line = gears.color(theme.titlebar_bg_accent_focus_1)
local inner_line = gears.color(theme.titlebar_bg_accent_focus_2)
cr.line_width=2
cr:set_source(inner_line)
cr:move_to(width-1,0)
cr:line_to(width-1,height)
cr:stroke()
cr:set_source(outer_line)
cr:move_to(width,0)
cr:line_to(width,height)
cr:stroke()
end
theme.titlebar_bgimage_top_normal = function(context, cr, width, height,...)
local outer_line = gears.color(theme.titlebar_bg_accent_normal_1)
local inner_line = gears.color(theme.titlebar_bg_accent_normal_2)
cr.line_width = 2
cr:set_source(outer_line)
cr:move_to(1,height)
cr:line_to(width-1,height)
cr:stroke()
cr:set_source(inner_line)
cr:move_to(1,1)
cr:line_to(1,height)
cr:move_to(1,1)
cr:line_to(width-1,1)
cr:move_to(width-1,1)
cr:line_to(width-1,height)
cr:stroke()
cr:set_source(outer_line)
cr:move_to(0,0)
cr:line_to(0,height)
cr:move_to(0,0)
cr:line_to(width,0)
cr:move_to(width,0)
cr:line_to(width,height)
cr:stroke()
end
theme.titlebar_bgimage_bottom_normal = function(context, cr, width, height, ...)
local outer_line = gears.color(theme.titlebar_bg_accent_normal_1)
local inner_line = gears.color(theme.titlebar_bg_accent_normal_2)
cr.line_width = 2
cr:set_source(inner_line)
cr:move_to(1,height-1)
cr:line_to(width-1,height-1)
cr:move_to(1,height-1)
cr:line_to(1,0)
cr:move_to(width-1,height-1)
cr:line_to(width-1,0)
cr:stroke()
cr:set_source(outer_line)
cr:move_to(0,height)
cr:line_to(width,height)
cr:move_to(0,height)
cr:line_to(0,0)
cr:move_to(width,height)
cr:line_to(width,0)
cr:stroke()
end
theme.titlebar_bgimage_left_normal = function(context, cr, width, height,...)
local outer_line = gears.color(theme.titlebar_bg_accent_normal_1)
local inner_line = gears.color(theme.titlebar_bg_accent_normal_2)
cr.line_width = 2
cr:set_source(inner_line)
cr:move_to(1,0)
cr:line_to(1,height)
cr:stroke()
cr:set_source(outer_line)
cr:move_to(0,0)
cr:line_to(0,height)
cr:stroke()
end
theme.titlebar_bgimage_right_normal = function(context, cr, width, height,...)
local outer_line = gears.color(theme.titlebar_bg_accent_normal_1)
local inner_line = gears.color(theme.titlebar_bg_accent_normal_2)
cr.line_width=2
cr:set_source(inner_line)
cr:move_to(width-1,0)
cr:line_to(width-1,height)
cr:stroke()
cr:set_source(outer_line)
cr:move_to(width,0)
cr:line_to(width,height)
cr:stroke()
end
---theme.bgimage_outset
-- Define the icon theme for application icons. If not set then the icons
-- from /usr/share/icons and /usr/share/icons/hicolor will be used.
theme.icon_theme = "Chicago95"
-- Icons
local icons = {
"battery-caution-charging-symbolic",
"battery-empty-charging-symbolic",
"battery-full-charging-symbolic",
"battery-good-charging-symbolic",
"battery-low-charging-symbolic"
}
for _,v in pairs(icons) do
theme[v] = themes_path.."serenity/icons/"..v..".png"
theme[v:gsub("-charging","")] = themes_path.."serenity/icons/"..v:gsub("-charging","")..".png"
end
theme["battery-full-charged-symbolic"] = themes_path.."serenity/icons/battery-full-charged-symbolic.png"
theme["battery-missing-symbolic"] = themes_path.."serenity/icons/battery-missing-symbolic.png"
theme["ac-adapter-symbolic"] = themes_path.."serenity/icons/ac-adapter-symbolic.png"
theme["backlight-symbolic"] = themes_path.."serenity/icons/backlight-symbolic.png"
theme["notifications-area-symbolic"] = themes_path.."serenity/icons/notifications-area-symbolic.png"
theme["mpc-previous-symbolic"] = themes_path.."serenity/icons/mpc-previous-symbolic.png"
theme["mpc-play-symbolic"] = themes_path.."serenity/icons/mpc-play-symbolic.png"
theme["mpc-pause-symbolic"] = themes_path.."serenity/icons/mpc-pause-symbolic.png"
theme["mpc-next-symbolic"] = themes_path.."serenity/icons/mpc-next-symbolic.png"
theme["action-poweroff-symbolic"] = themes_path.."serenity/icons/action-poweroff-symbolic.png"
theme["action-lock-screen-symbolic"] = themes_path.."serenity/icons/action-lock-screen-symbolic.png"
theme["action-suspend-symbolic"] = themes_path.."serenity/icons/action-suspend-symbolic.png"
-- Notification popups settings
theme.notification_width = 240
theme.notification_height = 60
-- Default icon for clients
-- This one has to be baked as a surface to avoid memory leaks
theme.icon_default = gears.surface(themes_path.."serenity/icons/unknown-app.png")
theme.widgets = {
-- {{{ Widget base
default = {
container = {
bgimage_normal = theme.bgimage_highlight,
shape = function(cr,width,height)
return require("gears").shape.rounded_rect(cr,width,height,0)
end,
bgimage_highlight = theme.bgimage_inset
},
button = {
bgimage_normal = theme.bgimage_outset,
shape = function(cr,width,height)
return require("gears").shape.rounded_rect(cr,width,height,0)
end,
onpress = function(widget)
widget:set_bg(theme.bg_focus)
widget:set_bgimage(theme.bgimage_inset)
end,
onrelease = function(widget)
widget:set_bg(theme.bg_normal)
widget:set_bgimage(theme.bgimage_outset)
end
},
popup = {
bgimage_normal = theme.bgimage_outset,
shape = function(cr,width,height)
return gears.shape.rounded_rect(cr,width,height,0)
end,
},
titlebar = {
hidden_size = 2,
bgimage_normal = theme.bgimage_outset,
--margins = 5,
left = 4,
right = 5,
top = 4,
bottom = 3,
spacing = 1
},
wibar = {
height = 26,
width = 60,
margins = 3,
shape = function(cr,width,height)
return gears.shape.rounded_rect(cr,width,height,0)
end,
bgimage_normal = theme.bgimage_outset,
stretch = true
},
slider = {
shape = function(cr,width,height)
return gears.shape.rounded_rect(cr,width,height,0)
end,
height = 20,
width = 140,
handle_width = 8,
handle_border_color = theme.bg_focus,
handle_border_width = 2,
bar_height = 6
}
},
-- }}}
-- {{{ Menus
generic_menu = {
base = {
spacing = 2,
menu_slide = true
},
button = {
forced_height = 20,
forced_width = 160
},
},
--}}}
-- {{{ Bars/Panels/Menu popups
generic_composite_widget = {
base = {
spacing = 2
}
},
generic_iconified_widget = {
button = {
margins = 0,
bgimage_normal = function() end,
bgimage_focus = function() end,
onpress = function() end,
onrelease = function() end
}
},
-- }}}
-- {{{ Status panel widgets
generic_status_widget = {
container = {
bgimage_normal = function() end,
margins = 0
},
button = {
margins = 0,
onpress = function() end,
onrelease = function() end,
bgimage_normal = function() end
}
},
-- }}}
-- {{{ Various button lists
generic_button_list = {
button = {
forced_width = 20,
forced_height = 20
},
base = {
spacing = 2
}
},
-- }}}
-- {{{ All widgets that fit into a single line
generic_oneline_widget = {
container = {
bgimage_normal = theme.bgimage_inset
},
button = {
margins = 0,
bgimage_normal = function() end,
bgimage_focus = function() end,
onpress = function() end,
onrelease = function() end
}
},
-- }}}
-- {{{ All kinds of widget popups
generic_popup = {
button = {
width = 180,
height = 40
},
article = {
icon_size = 30
},
},
-- }}}
popuptitle = {
container = {
bg_normal = {
type = "linear",
from = { 0, 0 },
to = { 90, 0 },
stops = { {0, "#632210"}, {1, "#fed8b1"} }
},
-- awesomewm: yo pass me that pango markup
-- pango: you better not make unintuitive cryptic shit
-- awesomewm: *attach foreground setting to drawable container*
fg_normal = "#FAFAFA"
}
},
soundclown = {
--[[ --Uncomment to leetify that MPC
container = {
bg_normal = "#0c0c0c",
fg_normal = "#00FF00"
},
]]
base = {
width = 140,
},
container = {
margins = 1
}
},
subpanel = {
container = {
bgimage_normal = theme.bgimage_inset,
margins = 2
}
},
separator = {
container = {
bgimage_normal = function(context, cr, width, height)
local bar_color = gears.color("#00000070")
cr.line_width = 1
cr:set_source(bar_color)
for i = 0,math.floor(height/2) do
cr:move_to(3,(i*2)+0.5)
cr:line_to(width-3,(i*2)+0.5)
end
cr:stroke()
end,
margins = 2,
bg_normal = "#00000000"
},
separator = {
color = "#30303000"
}
},
taglist = {
base = {
spacing = 2,
layout = require("wibox").layout.flex.horizontal
},
button = {
margins = 2,
bgimage_focus = theme.bgimage_inset,
bgimage_normal = theme.bgimage_outset,
},
container = {
margins = 3
}
},
tasklist = {
button = {
width = 160,
height = 50,
margins = 2,
bgimage_focus = theme.bgimage_inset,
bgimage_normal = theme.bgimage_outset,
bgimage_urgent = theme.bgimage_outset,
bgimage_minimize = theme.bgimage_outset
}
},
lockscreen = {
popup = {
margins = 0
}
},
lockbar = {
base = {
height = 22
}
},
lockpanel = {
base = {
icon_height = 60,
icon_width = 60,
panel_height = 300,
panel_width = 200,
panel_bgimage = theme.bgimage_outset
}
},
lock_clock = {
textbox = {
font = "Terminus 20"
}
},
titlebar = {
titlebar_top = {
bgimage_normal = theme.titlebar_bgimage_top_normal,
bgimage_focus = theme.titlebar_bgimage_top_focus,
bg_focus = theme.titlebar_bg_focus,
bg_normal = theme.titlebar_bg_normal,
fg_focus = "#FAFAFA",
fg_normal = theme.fg_normal,
size = 22,
},
titlebar_left = {
bgimage_normal = theme.titlebar_bgimage_left_normal,
bgimage_focus = theme.titlebar_bgimage_left_focus,
size = 3,
bg_focus = theme.titlebar_bg_accent_focus_1,
bg_normal = theme.titlebar_bg_accent_normal_1
},
titlebar_right = {
bgimage_normal = theme.titlebar_bgimage_right_normal,
bgimage_focus = theme.titlebar_bgimage_right_focus,
size = 3,
bg_focus = theme.titlebar_bg_accent_focus_1,
bg_normal = theme.titlebar_bg_accent_normal_1
},
titlebar_bottom = {
bgimage_normal = theme.titlebar_bgimage_bottom_normal,
bgimage_focus = theme.titlebar_bgimage_bottom_focus,
size = 3,
bg_focus = theme.titlebar_bg_accent_focus_1,
bg_normal = theme.titlebar_bg_accent_normal_1
}
},
wibar = {
wibar_top = {
height = 22,
bgimage_normal = theme.wibar_bgimage_top,
},
wibar_bottom = {
height = 26,
bgimage_normal = theme.wibar_bgimage_bottom
}
}
}
return theme
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80

BIN
themes/serenity/titlebar/close_focus.png

After

Width: 16  |  Height: 16  |  Size: 369 B

BIN
themes/serenity/titlebar/close_normal.png

After

Width: 16  |  Height: 16  |  Size: 369 B

BIN
themes/serenity/titlebar/floating_focus_active.png

After

Width: 64  |  Height: 64  |  Size: 386 B

BIN
themes/serenity/titlebar/floating_focus_inactive.png

After

Width: 64  |  Height: 64  |  Size: 237 B

BIN
themes/serenity/titlebar/floating_normal_active.png

After

Width: 64  |  Height: 64  |  Size: 386 B

BIN
themes/serenity/titlebar/floating_normal_inactive.png

After

Width: 64  |  Height: 64  |  Size: 237 B

BIN
themes/serenity/titlebar/maximized_focus_active.png

After

Width: 16  |  Height: 16  |  Size: 217 B

BIN
themes/serenity/titlebar/maximized_focus_inactive.png

After

Width: 16  |  Height: 16  |  Size: 206 B

BIN
themes/serenity/titlebar/maximized_normal_active.png

After

Width: 16  |  Height: 16  |  Size: 217 B

BIN
themes/serenity/titlebar/maximized_normal_inactive.png

After

Width: 16  |  Height: 16  |  Size: 206 B

BIN
themes/serenity/titlebar/minimize_focus.png

After

Width: 16  |  Height: 16  |  Size: 190 B

BIN
themes/serenity/titlebar/minimize_normal.png

After

Width: 16  |  Height: 16  |  Size: 190 B

BIN
themes/serenity/titlebar/ontop_focus_active.png

After

Width: 64  |  Height: 64  |  Size: 467 B

BIN
themes/serenity/titlebar/ontop_focus_inactive.png

After

Width: 64  |  Height: 64  |  Size: 604 B

BIN
themes/serenity/titlebar/ontop_normal_active.png

After

Width: 64  |  Height: 64  |  Size: 467 B

BIN
themes/serenity/titlebar/ontop_normal_inactive.png

After

Width: 64  |  Height: 64  |  Size: 604 B

BIN
themes/serenity/titlebar/sticky_focus_active.png

After

Width: 64  |  Height: 64  |  Size: 654 B

BIN
themes/serenity/titlebar/sticky_focus_inactive.png

After

Width: 64  |  Height: 64  |  Size: 758 B

BIN
themes/serenity/titlebar/sticky_normal_active.png

After

Width: 64  |  Height: 64  |  Size: 654 B

BIN
themes/serenity/titlebar/sticky_normal_inactive.png

After

Width: 64  |  Height: 64  |  Size: 758 B

114
themes/unity_mate/theme.lua

@ -148,52 +148,52 @@ theme.systray_icon_spacing = 2
-- Define the image to load
theme.titlebar_ontop_button_normal_inactive = themes_path.."unity/titlebar/ontop_normal_inactive.png"
theme.titlebar_ontop_button_focus_inactive = themes_path.."unity/titlebar/ontop_focus_inactive.png"
theme.titlebar_ontop_button_normal_active = themes_path.."unity/titlebar/ontop_normal_active.png"
theme.titlebar_ontop_button_focus_active = themes_path.."unity/titlebar/ontop_focus_active.png"
theme.titlebar_ontop_button_normal_inactive = themes_path.."unity_mate/titlebar/ontop_normal_inactive.png"
theme.titlebar_ontop_button_focus_inactive = themes_path.."unity_mate/titlebar/ontop_focus_inactive.png"
theme.titlebar_ontop_button_normal_active = themes_path.."unity_mate/titlebar/ontop_normal_active.png"
theme.titlebar_ontop_button_focus_active = themes_path.."unity_mate/titlebar/ontop_focus_active.png"
theme.titlebar_sticky_button_normal_inactive = themes_path.."unity/titlebar/sticky_normal_inactive.png"
theme.titlebar_sticky_button_focus_inactive = themes_path.."unity/titlebar/sticky_focus_inactive.png"
theme.titlebar_sticky_button_normal_active = themes_path.."unity/titlebar/sticky_normal_active.png"
theme.titlebar_sticky_button_focus_active = themes_path.."unity/titlebar/sticky_focus_active.png"
theme.titlebar_sticky_button_normal_inactive = themes_path.."unity_mate/titlebar/sticky_normal_inactive.png"
theme.titlebar_sticky_button_focus_inactive = themes_path.."unity_mate/titlebar/sticky_focus_inactive.png"
theme.titlebar_sticky_button_normal_active = themes_path.."unity_mate/titlebar/sticky_normal_active.png"
theme.titlebar_sticky_button_focus_active = themes_path.."unity_mate/titlebar/sticky_focus_active.png"
theme.titlebar_floating_button_normal_inactive = themes_path.."unity/titlebar/floating_normal_inactive.png"
theme.titlebar_floating_button_focus_inactive = themes_path.."unity/titlebar/floating_focus_inactive.png"
theme.titlebar_floating_button_normal_active = themes_path.."unity/titlebar/floating_normal_active.png"
theme.titlebar_floating_button_focus_active = themes_path.."unity/titlebar/floating_focus_active.png"
theme.titlebar_floating_button_normal_inactive = themes_path.."unity_mate/titlebar/floating_normal_inactive.png"
theme.titlebar_floating_button_focus_inactive = themes_path.."unity_mate/titlebar/floating_focus_inactive.png"
theme.titlebar_floating_button_normal_active = themes_path.."unity_mate/titlebar/floating_normal_active.png"
theme.titlebar_floating_button_focus_active = themes_path.."unity_mate/titlebar/floating_focus_active.png"
theme = theme_assets.recolor_titlebar(theme,theme.fg_normal,"normal")
theme = theme_assets.recolor_titlebar(theme,theme.fg_focus,"focus")
theme.titlebar_close_button_normal = themes_path.."unity/titlebar/close_normal.png"
theme.titlebar_close_button_focus = themes_path.."unity/titlebar/close_focus.png"
theme.titlebar_close_button_normal = themes_path.."unity_mate/titlebar/close_normal.png"
theme.titlebar_close_button_focus = themes_path.."unity_mate/titlebar/close_focus.png"
theme.titlebar_minimize_button_normal = themes_path.."unity/titlebar/minimize_normal.png"
theme.titlebar_minimize_button_focus = themes_path.."unity/titlebar/minimize_focus.png"
theme.titlebar_minimize_button_normal = themes_path.."unity_mate/titlebar/minimize_normal.png"
theme.titlebar_minimize_button_focus = themes_path.."unity_mate/titlebar/minimize_focus.png"
theme.titlebar_maximized_button_normal_inactive = themes_path.."unity/titlebar/maximized_normal_inactive.png"
theme.titlebar_maximized_button_focus_inactive = themes_path.."unity/titlebar/maximized_focus_inactive.png"
theme.titlebar_maximized_button_normal_active = themes_path.."unity/titlebar/maximized_normal_active.png"
theme.titlebar_maximized_button_focus_active = themes_path.."unity/titlebar/maximized_focus_active.png"
theme.titlebar_maximized_button_normal_inactive = themes_path.."unity_mate/titlebar/maximized_normal_inactive.png"
theme.titlebar_maximized_button_focus_inactive = themes_path.."unity_mate/titlebar/maximized_focus_inactive.png"
theme.titlebar_maximized_button_normal_active = themes_path.."unity_mate/titlebar/maximized_normal_active.png"
theme.titlebar_maximized_button_focus_active = themes_path.."unity_mate/titlebar/maximized_focus_active.png"
-- You can use your own layout icons like this:
theme.layout_fairh = themes_path.."unity/layouts/fairhw.png"
theme.layout_fairv = themes_path.."unity/layouts/fairvw.png"
theme.layout_floating = themes_path.."unity/layouts/floatingw.png"
theme.layout_magnifier = themes_path.."unity/layouts/magnifierw.png"
theme.layout_max = themes_path.."unity/layouts/maxw.png"
theme.layout_fullscreen = themes_path.."unity/layouts/fullscreenw.png"
theme.layout_tilebottom = themes_path.."unity/layouts/tilebottomw.png"
theme.layout_tileleft = themes_path.."unity/layouts/tileleftw.png"
theme.layout_tile = themes_path.."unity/layouts/tilew.png"
theme.layout_tiletop = themes_path.."unity/layouts/tiletopw.png"
theme.layout_spiral = themes_path.."unity/layouts/spiralw.png"
theme.layout_dwindle = themes_path.."unity/layouts/dwindlew.png"
theme.layout_cornernw = themes_path.."unity/layouts/cornernww.png"
theme.layout_cornerne = themes_path.."unity/layouts/cornernew.png"
theme.layout_cornersw = themes_path.."unity/layouts/cornersww.png"
theme.layout_cornerse = themes_path.."unity/layouts/cornersew.png"
theme.layout_fairh = themes_path.."unity_mate/layouts/fairhw.png"
theme.layout_fairv = themes_path.."unity_mate/layouts/fairvw.png"
theme.layout_floating = themes_path.."unity_mate/layouts/floatingw.png"
theme.layout_magnifier = themes_path.."unity_mate/layouts/magnifierw.png"
theme.layout_max = themes_path.."unity_mate/layouts/maxw.png"
theme.layout_fullscreen = themes_path.."unity_mate/layouts/fullscreenw.png"
theme.layout_tilebottom = themes_path.."unity_mate/layouts/tilebottomw.png"
theme.layout_tileleft = themes_path.."unity_mate/layouts/tileleftw.png"
theme.layout_tile = themes_path.."unity_mate/layouts/tilew.png"
theme.layout_tiletop = themes_path.."unity_mate/layouts/tiletopw.png"
theme.layout_spiral = themes_path.."unity_mate/layouts/spiralw.png"
theme.layout_dwindle = themes_path.."unity_mate/layouts/dwindlew.png"
theme.layout_cornernw = themes_path.."unity_mate/layouts/cornernww.png"
theme.layout_cornerne = themes_path.."unity_mate/layouts/cornernew.png"
theme.layout_cornersw = themes_path.."unity_mate/layouts/cornersww.png"
theme.layout_cornerse = themes_path.."unity_mate/layouts/cornersew.png"
-- Generate Awesome icon:
theme.awesome_icon = theme_assets.awesome_icon(
@ -219,35 +219,35 @@ local icons = {
"battery-low-charging-symbolic"
}
for _,v in pairs(icons) do
theme[v] = themes_path.."unity/icons/"..v..".png"
theme[v:gsub("-charging","")] = themes_path.."unity/icons/"..v:gsub("-charging","")..".png"
theme[v] = themes_path.."unity_mate/icons/"..v..".png"
theme[v:gsub("-charging","")] = themes_path.."unity_mate/icons/"..v:gsub("-charging","")..".png"
end
theme["battery-full-charged-symbolic"] = themes_path.."unity/icons/battery-full-charged-symbolic.png"
theme["battery-missing-symbolic"] = themes_path.."unity/icons/battery-missing-symbolic.png"
theme["ac-adapter-symbolic"] = themes_path.."unity/icons/ac-adapter-symbolic.png"
theme["backlight-symbolic"] = themes_path.."unity/icons/backlight-symbolic.png"
theme["notifications-area-symbolic"] = themes_path.."unity/icons/notifications-area-symbolic.png"
theme["battery-full-charged-symbolic"] = themes_path.."unity_mate/icons/battery-full-charged-symbolic.png"
theme["battery-missing-symbolic"] = themes_path.."unity_mate/icons/battery-missing-symbolic.png"
theme["ac-adapter-symbolic"] = themes_path.."unity_mate/icons/ac-adapter-symbolic.png"
theme["backlight-symbolic"] = themes_path.."unity_mate/icons/backlight-symbolic.png"
theme["notifications-area-symbolic"] = themes_path.."unity_mate/icons/notifications-area-symbolic.png"
theme["mpc-previous-symbolic"] = themes_path.."unity/icons/mpc-previous-symbolic.png"
theme["mpc-previous-symbolic"] = themes_path.."unity_mate/icons/mpc-previous-symbolic.png"
theme["mpc-play-symbolic"] = themes_path.."unity/icons/mpc-play-symbolic.png"
theme["mpc-pause-symbolic"] = themes_path.."unity/icons/mpc-pause-symbolic.png"
theme["mpc-next-symbolic"] = themes_path.."unity/icons/mpc-next-symbolic.png"
theme["mpc-play-symbolic"] = themes_path.."unity_mate/icons/mpc-play-symbolic.png"
theme["mpc-pause-symbolic"] = themes_path.."unity_mate/icons/mpc-pause-symbolic.png"
theme["mpc-next-symbolic"] = themes_path.."unity_mate/icons/mpc-next-symbolic.png"
theme["action-poweroff-symbolic"] = themes_path.."unity/icons/action-poweroff-symbolic.png"
theme["action-lock-screen-symbolic"] = themes_path.."unity/icons/action-lock-screen-symbolic.png"
theme["action-suspend-symbolic"] = themes_path.."unity/icons/action-suspend-symbolic.png"
theme["volume-high-symbolic"] = themes_path.."unity/icons/volume-high-symbolic.png"
theme["volume-medium-symbolic"] = themes_path.."unity/icons/volume-medium-symbolic.png"
theme["volume-low-symbolic"] = themes_path.."unity/icons/volume-low-symbolic.png"
theme["volume-muted-symbolic"] = themes_path.."unity/icons/volume-muted-symbolic.png"
theme["action-poweroff-symbolic"] = themes_path.."unity_mate/icons/action-poweroff-symbolic.png"
theme["action-lock-screen-symbolic"] = themes_path.."unity_mate/icons/action-lock-screen-symbolic.png"
theme["action-suspend-symbolic"] = themes_path.."unity_mate/icons/action-suspend-symbolic.png"
theme["volume-high-symbolic"] = themes_path.."unity_mate/icons/volume-high-symbolic.png"
theme["volume-medium-symbolic"] = themes_path.."unity_mate/icons/volume-medium-symbolic.png"
theme["volume-low-symbolic"] = themes_path.."unity_mate/icons/volume-low-symbolic.png"
theme["volume-muted-symbolic"] = themes_path.."unity_mate/icons/volume-muted-symbolic.png"
theme.wallpaper = themes_path.."unity/background.png"
theme.wallpapers_icon = themes_path.."unity/icons/wallpapers.png"
theme.wallpaper = themes_path.."unity_mate/background.png"
theme.wallpapers_icon = themes_path.."unity_mate/icons/wallpapers.png"
-- Default icon for clients
-- This one has to be baked as a surface to avoid memory leaks
theme.icon_default = themes_path.."unity/icons/unknown-app.png"
theme.icon_default = themes_path.."unity_mate/icons/unknown-app.png"
for _,v in pairs({
"battery-caution-symbolic",

8
widgets/base/popuptitle.lua

@ -22,14 +22,14 @@ return function(args)
title = args.title
})))
else
widget = wibox.widget({
t.container(t.article({
widget = wibox.widget(t.container({
t.article({
icon = root_path.."/themes/"..global.theme.."/"..args.icon,
title = args.title
})),
}),
widget = wibox.container.rotate,
direction = "east"
})
}))
end
return widget
end

21
widgets/base/separator.lua

@ -0,0 +1,21 @@
-- This file is part of Reno desktop.
--
-- Reno desktop is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
--
-- Reno desktop is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License along with Reno desktop. If not, see <https://www.gnu.org/licenses/>.
-- Base for widgets
local awmtk2 = require("awmtk2")
local wibox = require("wibox")
return function(args)
local style = awmtk2.create_style("separator",awmtk2.default,args.style,args.vertical)
local templates = awmtk2.create_template_lib("separator",awmtk2.templates,args.templates)
local t = awmtk2.build_templates(templates,style,args.vertical)
local widget = wibox.widget(t.container(
(args.vertical and t.hseparator()) or
t.vseparator()
))
return widget
end

3
widgets/base/subpanel.lua

@ -8,9 +8,6 @@
-- For those rare occasions when you want to group widgets in a panel
local awmtk2 = require("awmtk2")
local wibox = require("wibox")
local gears = require("gears")
local awful = require("awful")
local beautiful = require("beautiful")
return function(args)
local style = awmtk2.create_style("subpanel",

Loading…
Cancel
Save