bruh
This commit is contained in:
@@ -70,4 +70,13 @@ Theme.titlebar_maximized_button_active = icondir .. "maximize.svg"
|
||||
Theme.titlebar_maximized_button_inactive = icondir .. "maximize.svg"
|
||||
|
||||
Theme.bg_systray = colors.color["BlueGrey800"]
|
||||
Theme.systray_icon_spacing = dpi(10)
|
||||
Theme.systray_icon_spacing = dpi(10)
|
||||
|
||||
Theme.hotkeys_bg = colors.color["Grey900"]
|
||||
Theme.hotkeys_fg = colors.color["White"]
|
||||
Theme.hotkeys_border_width = 0
|
||||
Theme.hotkeys_shape = function (cr, width, height)
|
||||
gears.shape.rounded_rect(cr, width, height, 10)
|
||||
end
|
||||
Theme.hotkeys_description_font = "JetBrains Mono, Bold 14"
|
||||
|
||||
|
||||
@@ -2,11 +2,13 @@
|
||||
-- This is the audio widget --
|
||||
------------------------------
|
||||
local naughty = require("naughty")
|
||||
local awful = require("awful")
|
||||
|
||||
function Get_icon(theme, c)
|
||||
if theme and c then
|
||||
local clientName = string.lower(c.class) .. ".svg"
|
||||
local clientName
|
||||
clientName = string.lower(c.class) .. ".svg"
|
||||
local resolutions = {"128x128", "96x96", "64x64", "48x48", "42x42", "32x32", "24x24", "16x16"}
|
||||
local home = os.getenv("HOME")
|
||||
for i, res in ipairs(resolutions) do
|
||||
local iconDir = "/usr/share/icons/" .. theme .. "/" .. res .."/apps/"
|
||||
local ioStream = io.open(iconDir .. clientName, "r")
|
||||
@@ -18,4 +20,22 @@ function Get_icon(theme, c)
|
||||
end
|
||||
end
|
||||
return c:Get_icon(1)
|
||||
end
|
||||
|
||||
function Get_icon_by_class_name(theme, c)
|
||||
if theme and c then
|
||||
local c_name = string.lower(c) .. ".svg"
|
||||
local resolutions = {"128x128", "96x96", "64x64", "48x48", "42x42", "32x32", "24x24", "16x16"}
|
||||
for i, res in ipairs(resolutions) do
|
||||
local iconDir = "/usr/share/icons/" .. theme .. "/" .. res .."/apps/"
|
||||
local ioStream = io.open(iconDir .. c_name, "r")
|
||||
if ioStream ~= nil then
|
||||
return iconDir .. c_name
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function Get_icon_by_desktop(theme, c)
|
||||
|
||||
end
|
||||
@@ -62,8 +62,8 @@ return function ()
|
||||
local battery_tooltip = awful.tooltip{
|
||||
objects = {battery_widget},
|
||||
text = "",
|
||||
mode = "inside",
|
||||
align = "right",
|
||||
mode = "outside",
|
||||
preferred_alignments = "middle",
|
||||
margins = dpi(10)
|
||||
}
|
||||
|
||||
|
||||
@@ -43,8 +43,8 @@ return function ()
|
||||
local bluetooth_tooltip = awful.tooltip{
|
||||
objects = {bluetooth_widget},
|
||||
text = "",
|
||||
mode = "inside",
|
||||
align = "right",
|
||||
mode = "outside",
|
||||
preferred_alignments = "middle",
|
||||
margins = dpi(10)
|
||||
}
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ return function ()
|
||||
|
||||
local xkeyboard_country_code = {
|
||||
{"ad", "", "AND"}, -- Andorra
|
||||
{"af", "", "AFG"}, -- Afganistan
|
||||
{"af", "", "AFG"}, -- Afghanistan
|
||||
{"al", "", "ALB"}, -- Albania
|
||||
{"am", "", "ARM"}, -- Armenia
|
||||
{"ara", "", "ARB"}, -- Arabic
|
||||
|
||||
@@ -72,8 +72,8 @@ return function ()
|
||||
local network_tooltip = awful.tooltip{
|
||||
text = "Loading",
|
||||
objects = {network_widget},
|
||||
mode = "inside",
|
||||
align = "right",
|
||||
mode = "outside",
|
||||
preferred_alignments = "middle",
|
||||
margins = dpi(10)
|
||||
}
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@ return function (s)
|
||||
width = dpi(100),
|
||||
strategy = "exact",
|
||||
layout = wibox.container.constraint,
|
||||
id = "container"
|
||||
},
|
||||
widget = wibox.container.background,
|
||||
shape = function (cr, width, height)
|
||||
@@ -34,7 +35,7 @@ return function (s)
|
||||
bg = color.color["BlueGrey800"]
|
||||
}
|
||||
-- Signals
|
||||
--hover_signal(systray, color.color["Red200"])
|
||||
hover_signal(systray.container, color.color["Red200"])
|
||||
|
||||
return systray
|
||||
end
|
||||
@@ -90,10 +90,12 @@ local list_update = function (widget, buttons, label, data, objects)
|
||||
tag_widget:buttons(create_buttons(buttons, object))
|
||||
|
||||
local text, bg_color, bg_image, icon, args = label(object, tag_label)
|
||||
|
||||
local naughty = require("naughty")
|
||||
tag_label:set_text(object.index)
|
||||
|
||||
if object == awful.screen.focused().selected_tag then
|
||||
if object.urgent == true then
|
||||
tag_widget:set_bg(color.color["RedA200"])
|
||||
tag_widget:set_fg(color.color["Grey900"])
|
||||
elseif object == awful.screen.focused().selected_tag then
|
||||
tag_widget:set_bg(color.color["White"])
|
||||
tag_widget:set_fg(color.color["Grey900"])
|
||||
else
|
||||
|
||||
@@ -6,45 +6,42 @@ local color = require('theme.crylia.colors')
|
||||
|
||||
local list_update = function (widget, buttons, label, data, objects)
|
||||
widget:reset()
|
||||
|
||||
for i, object in ipairs(objects) do
|
||||
|
||||
local task_icon = wibox.widget{
|
||||
nil,
|
||||
{
|
||||
id = "icon",
|
||||
resize = true,
|
||||
widget = wibox.widget.imagebox
|
||||
},
|
||||
nil,
|
||||
layout = wibox.layout.align.horizontal
|
||||
}
|
||||
|
||||
local task_icon_margin = wibox.widget{
|
||||
task_icon,
|
||||
forced_width = dpi(33),
|
||||
margins = dpi(3),
|
||||
widget = wibox.container.margin
|
||||
}
|
||||
|
||||
local task_title = wibox.widget{
|
||||
text = "",
|
||||
align = "center",
|
||||
valign = "center",
|
||||
visible = true,
|
||||
widget = wibox.widget.textbox
|
||||
}
|
||||
|
||||
local task_widget = wibox.widget{
|
||||
{
|
||||
{
|
||||
task_icon_margin,
|
||||
task_title,
|
||||
layout = wibox.layout.fixed.horizontal
|
||||
{
|
||||
{
|
||||
nil,
|
||||
{
|
||||
id = "icon",
|
||||
resize = true,
|
||||
widget = wibox.widget.imagebox
|
||||
},
|
||||
nil,
|
||||
layout = wibox.layout.align.horizontal,
|
||||
id = "layout_icon"
|
||||
},
|
||||
forced_width = dpi(33),
|
||||
margins = dpi(3),
|
||||
widget = wibox.container.margin,
|
||||
id = "margin"
|
||||
},
|
||||
{
|
||||
text = "",
|
||||
align = "center",
|
||||
valign = "center",
|
||||
visible = true,
|
||||
widget = wibox.widget.textbox,
|
||||
id = "title"
|
||||
},
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
id = "layout_it"
|
||||
},
|
||||
right = dpi(5),
|
||||
left = dpi(5),
|
||||
widget = wibox.container.margin
|
||||
widget = wibox.container.margin,
|
||||
id = "container"
|
||||
},
|
||||
bg = color.color["White"],
|
||||
fg = color.color["Grey900"],
|
||||
@@ -87,11 +84,11 @@ local list_update = function (widget, buttons, label, data, objects)
|
||||
|
||||
task_widget:buttons(create_buttons(buttons, object))
|
||||
|
||||
local text, bg, bg_image, icon, args = label(object, task_title)
|
||||
local text, bg, bg_image, icon, args = label(object, task_widget.container.layout_it.title)
|
||||
|
||||
if object == client.focus then
|
||||
if text == nil or text == '' then
|
||||
task_title:set_margins(0)
|
||||
task_widget.container.layout_it.title:set_margins(0)
|
||||
else
|
||||
local text_full = text:match('>(.-)<')
|
||||
if text_full then
|
||||
@@ -104,12 +101,12 @@ local list_update = function (widget, buttons, label, data, objects)
|
||||
end
|
||||
task_widget:set_bg(color.color["White"])
|
||||
task_widget:set_fg(color.color["Grey900"])
|
||||
task_title:set_text(text)
|
||||
task_widget.container.layout_it.title:set_text(text)
|
||||
else
|
||||
task_widget:set_bg("#3A475C")
|
||||
task_title:set_text('')
|
||||
task_widget.container.layout_it.title:set_text('')
|
||||
end
|
||||
task_icon.icon:set_image(Get_icon("Papirus-Dark", object))
|
||||
task_widget.container.layout_it.margin.layout_icon.icon:set_image(Get_icon("Papirus-Dark", object))
|
||||
widget:add(task_widget)
|
||||
widget:set_spacing(dpi(6))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user