Huge refractor and many fixes for dock, icons(again) etc
This commit is contained in:
@@ -3,27 +3,27 @@
|
||||
--------------------------------------------------------------------------------------------------------------
|
||||
-- Awesome Libs
|
||||
local awful = require("awful")
|
||||
local colors = require ("theme.crylia.colors")
|
||||
local color = require("src.theme.colors")
|
||||
local dpi = require("beautiful").xresources.apply_dpi
|
||||
local gears = require("gears")
|
||||
local wibox = require("wibox")
|
||||
|
||||
return function (s, widget)
|
||||
return function(s, widget)
|
||||
|
||||
local top_center = awful.popup{
|
||||
local top_center = awful.popup {
|
||||
screen = s,
|
||||
widget = wibox.container.background,
|
||||
ontop = false,
|
||||
bg = colors.color["Grey900"],
|
||||
bg = color["Grey900"],
|
||||
visible = true,
|
||||
maximum_width = dpi(500),
|
||||
placement = function (c) awful.placement.top(c, {margins = dpi(10)}) end,
|
||||
shape = function (cr, width, height)
|
||||
placement = function(c) awful.placement.top(c, { margins = dpi(10) }) end,
|
||||
shape = function(cr, width, height)
|
||||
gears.shape.rounded_rect(cr, width, height, 10)
|
||||
end
|
||||
}
|
||||
local naught = require("naughty")
|
||||
top_center:setup{
|
||||
|
||||
top_center:setup {
|
||||
nil,
|
||||
{
|
||||
widget,
|
||||
@@ -37,8 +37,8 @@ return function (s, widget)
|
||||
|
||||
client.connect_signal(
|
||||
"manage",
|
||||
function (c)
|
||||
if #s:get_clients() < 1 then
|
||||
function(c)
|
||||
if #s.selected_tag:clients() < 1 then
|
||||
top_center.visible = false
|
||||
else
|
||||
top_center.visible = true
|
||||
@@ -48,8 +48,8 @@ return function (s, widget)
|
||||
|
||||
client.connect_signal(
|
||||
"unmanage",
|
||||
function (c)
|
||||
if #s:get_clients() < 1 then
|
||||
function(c)
|
||||
if #s.selected_tag:clients() < 1 then
|
||||
top_center.visible = false
|
||||
else
|
||||
top_center.visible = true
|
||||
@@ -59,8 +59,8 @@ return function (s, widget)
|
||||
|
||||
client.connect_signal(
|
||||
"tag::switched",
|
||||
function (c)
|
||||
if #s:get_clients() < 1 then
|
||||
function(c)
|
||||
if #s.selected_tag:clients() < 1 then
|
||||
top_center.visible = false
|
||||
else
|
||||
top_center.visible = true
|
||||
@@ -70,8 +70,8 @@ return function (s, widget)
|
||||
|
||||
awesome.connect_signal(
|
||||
"refresh",
|
||||
function (c)
|
||||
if #s:get_clients() < 1 then
|
||||
function(c)
|
||||
if #s.selected_tag:clients() < 1 then
|
||||
top_center.visible = false
|
||||
else
|
||||
top_center.visible = true
|
||||
|
||||
Reference in New Issue
Block a user