systray, dock, icon_handler some major revision
This commit is contained in:
@@ -41,7 +41,8 @@ font:
|
|||||||
y: 0
|
y: 0
|
||||||
draw_bold_text_with_bright_colors: false
|
draw_bold_text_with_bright_colors: false
|
||||||
# Background opacity from 0.0 transparent, 1.0 Opaque
|
# Background opacity from 0.0 transparent, 1.0 Opaque
|
||||||
background_opacity: 0.4
|
window:
|
||||||
|
opacity: 0.4
|
||||||
# Terminal colors
|
# Terminal colors
|
||||||
colors:
|
colors:
|
||||||
primary:
|
primary:
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ return function()
|
|||||||
{ modkey },
|
{ modkey },
|
||||||
"d",
|
"d",
|
||||||
function ()
|
function ()
|
||||||
awful.spawn("rofi -show drun -theme ~/.config/rofi/launcher/launcher.rasi")
|
awful.spawn("/home/crylia/.local/bin/rofi -show drun -theme ~/.config/rofi/rofi.rasi")
|
||||||
end,
|
end,
|
||||||
{ descripton = "Application launcher", group = "Application" }
|
{ descripton = "Application launcher", group = "Application" }
|
||||||
),
|
),
|
||||||
@@ -169,7 +169,15 @@ return function()
|
|||||||
{ modkey },
|
{ modkey },
|
||||||
"Tab",
|
"Tab",
|
||||||
function ()
|
function ()
|
||||||
awful.spawn("rofi -show window -theme ~/.config/rofi/launcher/launcher.rasi")
|
awful.spawn("/home/crylia/.local/bin/rofi -show window -theme ~/.config/rofi/window.rasi")
|
||||||
|
end,
|
||||||
|
{ descripton = "Client switcher (alt+tab)", group = "Application" }
|
||||||
|
),
|
||||||
|
awful.key(
|
||||||
|
{ "Mod1" },
|
||||||
|
"Tab",
|
||||||
|
function ()
|
||||||
|
awful.spawn("/home/crylia/.local/bin/rofi -show window -theme ~/.config/rofi/window.rasi")
|
||||||
end,
|
end,
|
||||||
{ descripton = "Client switcher (alt+tab)", group = "Application" }
|
{ descripton = "Client switcher (alt+tab)", group = "Application" }
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ 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,
|
widget = wibox.container.background,
|
||||||
ontop = false,
|
ontop = false,
|
||||||
bg = colors.color["Grey900"],
|
bg = colors.color["Grey900"],
|
||||||
@@ -21,7 +22,7 @@ return function (s, widget)
|
|||||||
gears.shape.rounded_rect(cr, width, height, 10)
|
gears.shape.rounded_rect(cr, width, height, 10)
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
local naught = require("naughty")
|
||||||
top_center:setup{
|
top_center:setup{
|
||||||
nil,
|
nil,
|
||||||
{
|
{
|
||||||
@@ -34,10 +35,48 @@ return function (s, widget)
|
|||||||
layout = wibox.layout.align.horizontal
|
layout = wibox.layout.align.horizontal
|
||||||
}
|
}
|
||||||
|
|
||||||
awesome.connect_signal(
|
client.connect_signal(
|
||||||
"hide_centerbar",
|
"manage",
|
||||||
function (hide)
|
function (c)
|
||||||
top_center.visible = hide
|
if #s:get_clients() < 1 then
|
||||||
|
top_center.visible = false
|
||||||
|
else
|
||||||
|
top_center.visible = true
|
||||||
|
end
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
end
|
|
||||||
|
client.connect_signal(
|
||||||
|
"unmanage",
|
||||||
|
function (c)
|
||||||
|
if #s:get_clients() < 1 then
|
||||||
|
top_center.visible = false
|
||||||
|
else
|
||||||
|
top_center.visible = true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
)
|
||||||
|
|
||||||
|
client.connect_signal(
|
||||||
|
"tag::switched",
|
||||||
|
function (c)
|
||||||
|
if #s:get_clients() < 1 then
|
||||||
|
top_center.visible = false
|
||||||
|
else
|
||||||
|
top_center.visible = true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
)
|
||||||
|
|
||||||
|
awesome.connect_signal(
|
||||||
|
"refresh",
|
||||||
|
function (c)
|
||||||
|
if #s:get_clients() < 1 then
|
||||||
|
top_center.visible = false
|
||||||
|
else
|
||||||
|
top_center.visible = true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
)
|
||||||
|
|
||||||
|
end
|
||||||
|
|||||||
@@ -10,41 +10,8 @@ local wibox = require("wibox")
|
|||||||
|
|
||||||
return function(s, programs)
|
return function(s, programs)
|
||||||
|
|
||||||
local function create_dock_element (program, name, size)
|
local function create_dock_element (program, name, is_steam, size)
|
||||||
|
is_steam = is_steam or false
|
||||||
local function create_indicator()
|
|
||||||
local color = ""
|
|
||||||
local indicators = {layout = wibox.layout.flex.horizontal}
|
|
||||||
local t = 2
|
|
||||||
local naughty = require("naughty")
|
|
||||||
for i, indicator_screen in ipairs(screen) do
|
|
||||||
for j, indicator_client in ipairs(indicator_screen.clients) do
|
|
||||||
if indicator_client.class == program then
|
|
||||||
if indicator_client.maximized then
|
|
||||||
color = colors.color["Green200"]
|
|
||||||
elseif indicator_client.fullscreen then
|
|
||||||
color = colors.color["Red200"]
|
|
||||||
elseif indicator_client.focus then
|
|
||||||
color = colors.color["Blue200"]
|
|
||||||
elseif indicator_client.minimised then
|
|
||||||
color = colors.color["Pink200"]
|
|
||||||
else
|
|
||||||
color = colors.color["White"]
|
|
||||||
end
|
|
||||||
|
|
||||||
local indicator = wibox.widget{
|
|
||||||
widget = wibox.container.background,
|
|
||||||
shape = gears.shape.circle,
|
|
||||||
forced_height = dpi(5),
|
|
||||||
bg = color
|
|
||||||
}
|
|
||||||
indicators[t] = indicator
|
|
||||||
t = t + 1
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
return indicators
|
|
||||||
end
|
|
||||||
|
|
||||||
local dock_element = wibox.widget{
|
local dock_element = wibox.widget{
|
||||||
{
|
{
|
||||||
@@ -54,10 +21,14 @@ return function(s, programs)
|
|||||||
resize = true,
|
resize = true,
|
||||||
forced_width = size,
|
forced_width = size,
|
||||||
forced_height = size,
|
forced_height = size,
|
||||||
image = Get_icon_by_class_name("Papirus-Dark",program),
|
image = Get_icon("Papirus-Dark",program, is_steam),
|
||||||
widget = wibox.widget.imagebox
|
widget = wibox.widget.imagebox
|
||||||
},
|
},
|
||||||
create_indicator(),
|
{
|
||||||
|
widget = nil,
|
||||||
|
layout = wibox.layout.align.horizontal,
|
||||||
|
id = "indicator"
|
||||||
|
},
|
||||||
layout = wibox.layout.align.vertical,
|
layout = wibox.layout.align.vertical,
|
||||||
id = "dock_layout"
|
id = "dock_layout"
|
||||||
},
|
},
|
||||||
@@ -81,17 +52,57 @@ return function(s, programs)
|
|||||||
dock_element:connect_signal(
|
dock_element:connect_signal(
|
||||||
"button::press",
|
"button::press",
|
||||||
function ()
|
function ()
|
||||||
awful.spawn(program)
|
if is_steam then
|
||||||
|
awful.spawn("steam steam://rungameid/" .. program)
|
||||||
|
else
|
||||||
|
awful.spawn(program)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
|
|
||||||
local dock_tooltip = awful.tooltip{
|
awful.tooltip {
|
||||||
objects = {dock_element},
|
objects = {dock_element},
|
||||||
text = name,
|
text = name,
|
||||||
mode = "outside",
|
mode = "outside",
|
||||||
preferred_alignments = "middle",
|
preferred_alignments = "middle",
|
||||||
margins = dpi(10)
|
margins = dpi(10)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local function create_indicator()
|
||||||
|
local color = ""
|
||||||
|
local indicators
|
||||||
|
local t = 1
|
||||||
|
for indicator_screen in screen do
|
||||||
|
for j,indicator_client in ipairs(indicator_screen.get_clients()) do
|
||||||
|
if indicator_client.class == program then
|
||||||
|
if indicator_client.maximized then
|
||||||
|
color = colors.color["Green200"]
|
||||||
|
elseif indicator_client.fullscreen then
|
||||||
|
color = colors.color["Red200"]
|
||||||
|
elseif indicator_client.focus then
|
||||||
|
color = colors.color["Blue200"]
|
||||||
|
elseif indicator_client.minimised then
|
||||||
|
color = colors.color["Pink200"]
|
||||||
|
else
|
||||||
|
color = colors.color["White"]
|
||||||
|
end
|
||||||
|
|
||||||
|
local indicator = wibox.widget{
|
||||||
|
widget = wibox.container.background,
|
||||||
|
shape = gears.shape.circle,
|
||||||
|
forced_height = dpi(50),
|
||||||
|
bg = color
|
||||||
|
}
|
||||||
|
indicators.add(indicator)
|
||||||
|
t = t + 1
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
return indicators
|
||||||
|
end
|
||||||
|
|
||||||
|
dock_element.background.margin.dock_layout.indicator = create_indicator()
|
||||||
|
|
||||||
return dock_element
|
return dock_element
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -113,7 +124,7 @@ return function(s, programs)
|
|||||||
local dock_elements = {layout = wibox.layout.fixed.horizontal}
|
local dock_elements = {layout = wibox.layout.fixed.horizontal}
|
||||||
|
|
||||||
for i, p in ipairs(pr) do
|
for i, p in ipairs(pr) do
|
||||||
dock_elements[i] = create_dock_element(p[1], p[2], user_vars.vars.dock_icon_size)
|
dock_elements[i] = create_dock_element(p[1], p[2], p[3], user_vars.vars.dock_icon_size)
|
||||||
end
|
end
|
||||||
|
|
||||||
return dock_elements
|
return dock_elements
|
||||||
@@ -123,21 +134,21 @@ return function(s, programs)
|
|||||||
get_dock_elements(programs),
|
get_dock_elements(programs),
|
||||||
layout = wibox.layout.fixed.vertical
|
layout = wibox.layout.fixed.vertical
|
||||||
}
|
}
|
||||||
|
local naughty = require("naughty")
|
||||||
-- TODO: This function runs only every second, it can be optimized by
|
--[[ TODO: This function runs every 0.1 second, it can be optimized by
|
||||||
-- calling it every time the mouse is over the dock, a client changes it states ...
|
calling it every time the mouse is over the dock, a client changes it states ...
|
||||||
-- but im too lazy rn
|
but im too lazy rn ]]
|
||||||
local function check_for_dock_hide()
|
local function check_for_dock_hide()
|
||||||
for i, screen in ipairs(screen) do
|
for s in screen do
|
||||||
local mx, my = mouse.coords().x * 100 / screen.geometry.width, mouse.coords().y * 100 / screen.geometry.height
|
local mx, my = mouse.coords().x * 100 / s.geometry.width, mouse.coords().y * 100 / s.geometry.height
|
||||||
if ((mx > 30) and (mx < 70)) and (my > 95) then
|
if ((mx > 30) and (mx < 70)) and (my > 99) then
|
||||||
dock.visible = true
|
dock.visible = true
|
||||||
break;
|
break;
|
||||||
end
|
end
|
||||||
for j, c in ipairs(screen.clients) do
|
for j,c in ipairs(s.get_clients()) do
|
||||||
local y = c:geometry().y
|
local y = c:geometry().y
|
||||||
local h = c.height
|
local h = c.height
|
||||||
if (y + h) >= screen.geometry.height - user_vars.vars.dock_icon_size - 35 then
|
if (y + h) >= s.geometry.height - user_vars.vars.dock_icon_size - 35 then
|
||||||
dock.visible = false
|
dock.visible = false
|
||||||
break;
|
break;
|
||||||
else
|
else
|
||||||
@@ -146,11 +157,11 @@ return function(s, programs)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
local naughty = require("naughty")
|
|
||||||
awesome.connect_signal(
|
client.connect_signal(
|
||||||
"manage",
|
"manage",
|
||||||
function ()
|
function ()
|
||||||
naughty.notify({title = "hi"})
|
check_for_dock_hide()
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -162,4 +173,18 @@ return function(s, programs)
|
|||||||
check_for_dock_hide()
|
check_for_dock_hide()
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
end
|
|
||||||
|
dock:connect_signal(
|
||||||
|
"mouse::enter",
|
||||||
|
function ()
|
||||||
|
dock_intelligent_hide:stop()
|
||||||
|
end
|
||||||
|
)
|
||||||
|
|
||||||
|
dock:connect_signal(
|
||||||
|
"mouse::leave",
|
||||||
|
function ()
|
||||||
|
dock_intelligent_hide:again()
|
||||||
|
end
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|||||||
@@ -5,10 +5,14 @@
|
|||||||
local awful = require("awful")
|
local awful = require("awful")
|
||||||
|
|
||||||
awful.screen.connect_for_each_screen(
|
awful.screen.connect_for_each_screen(
|
||||||
|
-- For each screen this function is called once
|
||||||
|
-- If you want to change the modules per screen use the indices
|
||||||
|
-- e.g. 1 would be the primary screen and 2 the secondary screen.
|
||||||
function (s)
|
function (s)
|
||||||
-- Modules
|
|
||||||
require("theme.crylia.modules.powermenu")(s)
|
require("theme.crylia.modules.powermenu")(s)
|
||||||
require("theme.crylia.modules.calendar_osd")(s)
|
-- TODO: rewrite calendar osd, maybe write an own inplementation
|
||||||
|
-- require("theme.crylia.modules.calendar_osd")(s)
|
||||||
require("theme.crylia.modules.volume_osd")(s)
|
require("theme.crylia.modules.volume_osd")(s)
|
||||||
require("theme.crylia.modules.brightness_osd")(s)
|
require("theme.crylia.modules.brightness_osd")(s)
|
||||||
require("theme.crylia.modules.titlebar")
|
require("theme.crylia.modules.titlebar")
|
||||||
@@ -22,15 +26,31 @@ awful.screen.connect_for_each_screen(
|
|||||||
s.bluetooth = require("theme.crylia.widgets.bluetooth")()
|
s.bluetooth = require("theme.crylia.widgets.bluetooth")()
|
||||||
s.layoutlist = require("theme.crylia.widgets.layout_list")()
|
s.layoutlist = require("theme.crylia.widgets.layout_list")()
|
||||||
s.powerbutton = require("theme.crylia.widgets.power")()
|
s.powerbutton = require("theme.crylia.widgets.power")()
|
||||||
s.kblayout = require("theme.crylia.widgets.kblayout")()
|
s.kblayout = require("theme.crylia.widgets.kblayout")(s)
|
||||||
s.taglist = require("theme.crylia.widgets.taglist")(s)
|
s.taglist = require("theme.crylia.widgets.taglist")(s)
|
||||||
s.tasklist = require("theme.crylia.widgets.tasklist")(s)
|
s.tasklist = require("theme.crylia.widgets.tasklist")(s)
|
||||||
s.systray = require("theme.crylia.widgets.systray")(s)
|
s.systray = require("theme.crylia.widgets.systray")(s)
|
||||||
|
|
||||||
|
-- Add more of these if statements if you want to change
|
||||||
|
-- the modules/widgets per screen.
|
||||||
|
-- uncomment this example and dont forget to remove/comment the other code below
|
||||||
|
--[[ if s.index == 1 then
|
||||||
|
require("crylia_bar.left_bar")(s, {s.layoutlist, s.systray, s.taglist})
|
||||||
|
require("crylia_bar.center_bar")(s, s.tasklist)
|
||||||
|
require("crylia_bar.right_bar")(s, {s.date, s.clock,s.powerbutton})
|
||||||
|
require("crylia_bar.dock")(s, user_vars.vars.dock_programs)
|
||||||
|
end ]]
|
||||||
|
|
||||||
|
--[[ if s.index == 2 then
|
||||||
|
require("crylia_bar.left_bar")(s, {s.layoutlist, s.systray, s.taglist})
|
||||||
|
require("crylia_bar.center_bar")(s, s.tasklist)
|
||||||
|
require("crylia_bar.right_bar")(s, {s.battery, s.network, s.bluetooth, s.audio, s.kblayout, s.date, s.clock,s.powerbutton})
|
||||||
|
end ]]
|
||||||
-- Bars
|
-- Bars
|
||||||
require("crylia_bar.left_bar")(s, {s.layoutlist, s.systray, s.taglist})
|
require("crylia_bar.left_bar")(s, {s.layoutlist, s.systray, s.taglist})
|
||||||
require("crylia_bar.center_bar")(s, s.tasklist)
|
require("crylia_bar.center_bar")(s, s.tasklist)
|
||||||
require("crylia_bar.right_bar")(s, {s.battery, s.network, s.bluetooth, s.audio, s.kblayout, s.date, s.clock,s.powerbutton})
|
require("crylia_bar.right_bar")(s, {s.battery, s.network, s.bluetooth, s.audio, s.kblayout, s.date, s.clock,s.powerbutton})
|
||||||
require("crylia_bar.dock")(s, user_vars.vars.dock_programs)
|
require("crylia_bar.dock")(s, user_vars.vars.dock_programs)
|
||||||
|
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ local wibox = require("wibox")
|
|||||||
return function (s, widgets)
|
return function (s, widgets)
|
||||||
|
|
||||||
local top_left = awful.popup{
|
local top_left = awful.popup{
|
||||||
|
screen = s,
|
||||||
widget = wibox.container.background,
|
widget = wibox.container.background,
|
||||||
ontop = false,
|
ontop = false,
|
||||||
bg = colors.color["Grey900"],
|
bg = colors.color["Grey900"],
|
||||||
@@ -50,4 +51,4 @@ return function (s, widgets)
|
|||||||
nil,
|
nil,
|
||||||
layout = wibox.layout.fixed.horizontal
|
layout = wibox.layout.fixed.horizontal
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -34,5 +34,5 @@ return function()
|
|||||||
{ "Open Terminal", user_vars.vars.terminal },
|
{ "Open Terminal", user_vars.vars.terminal },
|
||||||
{ "Settings", settings },
|
{ "Settings", settings },
|
||||||
}
|
}
|
||||||
return menu_ttems
|
return menu_items
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -2,6 +2,20 @@
|
|||||||
local awful = require("awful")
|
local awful = require("awful")
|
||||||
local beautiful = require("beautiful")
|
local beautiful = require("beautiful")
|
||||||
|
|
||||||
|
screen.connect_signal(
|
||||||
|
"added",
|
||||||
|
function ()
|
||||||
|
awesome.restart()
|
||||||
|
end
|
||||||
|
)
|
||||||
|
|
||||||
|
screen.connect_signal(
|
||||||
|
"removed",
|
||||||
|
function ()
|
||||||
|
awesome.restart()
|
||||||
|
end
|
||||||
|
)
|
||||||
|
|
||||||
client.connect_signal(
|
client.connect_signal(
|
||||||
"manage",
|
"manage",
|
||||||
function (c)
|
function (c)
|
||||||
@@ -133,4 +147,4 @@ function hover_signal (widget, bg, fg)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -22,13 +22,13 @@ local _M = {
|
|||||||
modkey = "Mod4",
|
modkey = "Mod4",
|
||||||
|
|
||||||
-- place your wallpaper at this path with this name, you could also try to change the path
|
-- place your wallpaper at this path with this name, you could also try to change the path
|
||||||
wallpaper = home .. "/.config/awesome/theme/crylia/assets/wallpaper.jpg",
|
wallpaper = home .. "/.config/awesome/theme/crylia/assets/space.jpg",
|
||||||
|
|
||||||
-- Naming scheme for the powermenu, userhost = "user@hostname", fullname = "Firstname Surname", something else ...
|
-- Naming scheme for the powermenu, userhost = "user@hostname", fullname = "Firstname Surname", something else ...
|
||||||
namestyle = "userhost",
|
namestyle = "userhost",
|
||||||
|
|
||||||
-- List every Keyboard layout you use here comma seperated. (run localectl list-keymaps to list all averiable keymaps)
|
-- List every Keyboard layout you use here comma seperated. (run localectl list-keymaps to list all averiable keymaps)
|
||||||
kblayout = {"de", "ru", "us"},
|
kblayout = {"de", "ru"},
|
||||||
|
|
||||||
-- Set to false if you dont have a controller
|
-- Set to false if you dont have a controller
|
||||||
bluetooth = true,
|
bluetooth = true,
|
||||||
@@ -45,6 +45,7 @@ local _M = {
|
|||||||
-- Add your programs exactly like in this example.
|
-- Add your programs exactly like in this example.
|
||||||
-- First entry has to be how you would start the program in the terminal (just try it if you dont know yahoo it)
|
-- First entry has to be how you would start the program in the terminal (just try it if you dont know yahoo it)
|
||||||
-- Second can be what ever the fuck you want it to be (will be the displayed name if you hover over it)
|
-- Second can be what ever the fuck you want it to be (will be the displayed name if you hover over it)
|
||||||
|
-- For steam games please use this format {"394360", "Name", true} true will tell the func that it's a steam game
|
||||||
dock_programs = {
|
dock_programs = {
|
||||||
{"firefox", "Firefox"},
|
{"firefox", "Firefox"},
|
||||||
{"discord", "Discord"},
|
{"discord", "Discord"},
|
||||||
@@ -60,4 +61,4 @@ local _M = {
|
|||||||
screens_size = get_screen()
|
screens_size = get_screen()
|
||||||
}
|
}
|
||||||
|
|
||||||
return _M
|
return _M
|
||||||
|
|||||||
BIN
awesome/theme/crylia/assets/blueminimalistic.png
Normal file
BIN
awesome/theme/crylia/assets/blueminimalistic.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1008 KiB |
BIN
awesome/theme/crylia/assets/space.jpg
Normal file
BIN
awesome/theme/crylia/assets/space.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 930 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 292 KiB After Width: | Height: | Size: 245 KiB |
@@ -120,6 +120,7 @@ return function (s)
|
|||||||
}
|
}
|
||||||
|
|
||||||
local calendar_osd_container = awful.popup{
|
local calendar_osd_container = awful.popup{
|
||||||
|
screen = s,
|
||||||
widget = wibox.container.background,
|
widget = wibox.container.background,
|
||||||
ontop = true,
|
ontop = true,
|
||||||
bg = color.color["Grey900"],
|
bg = color.color["Grey900"],
|
||||||
@@ -178,4 +179,4 @@ return function (s)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -324,4 +324,4 @@ client.connect_signal(
|
|||||||
awful.titlebar.hide(c, 'bottom')
|
awful.titlebar.hide(c, 'bottom')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ Theme = { }
|
|||||||
dofile(Theme_path .. "theme_variables.lua")
|
dofile(Theme_path .. "theme_variables.lua")
|
||||||
dofile(Theme_path .. "layouts.lua")
|
dofile(Theme_path .. "layouts.lua")
|
||||||
|
|
||||||
Theme.wallpaper = Theme_path .. "assets/wallpaper.png"
|
--Theme.wallpaper = Theme_path .. "assets/space.jpg"
|
||||||
Theme.awesome_icon = Theme_path .. "assets/icons/icon.png"
|
Theme.awesome_icon = Theme_path .. "assets/icons/icon.png"
|
||||||
Theme.awesome_subicon = Theme_path .. "assets/icons/icon.png"
|
Theme.awesome_subicon = Theme_path .. "assets/icons/icon.png"
|
||||||
|
|
||||||
return Theme
|
return Theme
|
||||||
|
|||||||
@@ -1,13 +1,23 @@
|
|||||||
------------------------------
|
-----------------------------------------------------
|
||||||
-- This is the audio widget --
|
-- Helper to get icons from a program/program name --
|
||||||
------------------------------
|
-----------------------------------------------------
|
||||||
local naughty = require("naughty")
|
|
||||||
local awful = require("awful")
|
|
||||||
|
|
||||||
function Get_icon(theme, c)
|
-- tries to find a matching file name in /usr/share/icons/THEME/RESOLUTION/apps/ and if not found tried with first letter
|
||||||
|
-- as uppercase, this should get almost all icons to work with the papirus theme atleast
|
||||||
|
-- TODO: try with more icon themes
|
||||||
|
function Get_icon(theme, c, is_steam)
|
||||||
if theme and c then
|
if theme and c then
|
||||||
local clientName
|
local clientName
|
||||||
clientName = string.lower(c.class) .. ".svg"
|
-- TODO: Access steamdb api to fetch the clienticon if there is no icon found in this theme
|
||||||
|
if is_steam then
|
||||||
|
clientName = "steam_icon_" .. tostring(c) .. ".svg"
|
||||||
|
else
|
||||||
|
if type(c) == type("") then
|
||||||
|
clientName = string.lower(c) .. ".svg"
|
||||||
|
else
|
||||||
|
clientName = string.lower(c.class) .. ".svg"
|
||||||
|
end
|
||||||
|
end
|
||||||
local resolutions = {"128x128", "96x96", "64x64", "48x48", "42x42", "32x32", "24x24", "16x16"}
|
local resolutions = {"128x128", "96x96", "64x64", "48x48", "42x42", "32x32", "24x24", "16x16"}
|
||||||
for i, res in ipairs(resolutions) do
|
for i, res in ipairs(resolutions) do
|
||||||
local iconDir = "/usr/share/icons/" .. theme .. "/" .. res .."/apps/"
|
local iconDir = "/usr/share/icons/" .. theme .. "/" .. res .."/apps/"
|
||||||
@@ -15,27 +25,29 @@ function Get_icon(theme, c)
|
|||||||
if ioStream ~= nil then
|
if ioStream ~= nil then
|
||||||
return iconDir .. clientName
|
return iconDir .. clientName
|
||||||
else
|
else
|
||||||
return c.icon
|
clientName = clientName:gsub("^%l", string.upper)
|
||||||
|
iconDir = "/usr/share/icons/" .. theme .. "/" .. res .."/apps/"
|
||||||
|
ioStream = io.open(iconDir .. clientName, "r")
|
||||||
|
if ioStream ~= nil then
|
||||||
|
return iconDir .. clientName
|
||||||
|
elseif type(c) ~= type("") then
|
||||||
|
local naughty = require("naughty")
|
||||||
|
if pcall(
|
||||||
|
function ()
|
||||||
|
if c:Get_icon(1) then
|
||||||
|
error("icon error")
|
||||||
|
else
|
||||||
|
return c:Get_icon(1)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
) then
|
||||||
|
return nil
|
||||||
|
end
|
||||||
|
return "/usr/share/icons/Papirus-Dark/128x128/apps/Zoom.svg"
|
||||||
|
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return c:Get_icon(1)
|
return nil
|
||||||
end
|
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
|
|
||||||
@@ -53,7 +53,7 @@ return function ()
|
|||||||
shape = function (cr, width, height)
|
shape = function (cr, width, height)
|
||||||
gears.shape.rounded_rect(cr, width, height, 5)
|
gears.shape.rounded_rect(cr, width, height, 5)
|
||||||
end,
|
end,
|
||||||
widget = wibox.widget.background
|
widget = wibox.container.background
|
||||||
}
|
}
|
||||||
|
|
||||||
local get_volume = function ()
|
local get_volume = function ()
|
||||||
@@ -120,4 +120,4 @@ return function ()
|
|||||||
|
|
||||||
check_muted()
|
check_muted()
|
||||||
return audio_widget
|
return audio_widget
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ return function ()
|
|||||||
shape = function (cr, width, height)
|
shape = function (cr, width, height)
|
||||||
gears.shape.rounded_rect(cr, width, height, 5)
|
gears.shape.rounded_rect(cr, width, height, 5)
|
||||||
end,
|
end,
|
||||||
widget = wibox.widget.background
|
widget = wibox.container.background
|
||||||
}
|
}
|
||||||
|
|
||||||
local battery_tooltip = awful.tooltip{
|
local battery_tooltip = awful.tooltip{
|
||||||
@@ -198,4 +198,4 @@ return function ()
|
|||||||
)
|
)
|
||||||
|
|
||||||
return battery_widget
|
return battery_widget
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ return function ()
|
|||||||
shape = function (cr, width, height)
|
shape = function (cr, width, height)
|
||||||
gears.shape.rounded_rect(cr, width, height, 5)
|
gears.shape.rounded_rect(cr, width, height, 5)
|
||||||
end,
|
end,
|
||||||
widget = wibox.widget.background
|
widget = wibox.container.background
|
||||||
}
|
}
|
||||||
|
|
||||||
local bluetooth_tooltip = awful.tooltip{
|
local bluetooth_tooltip = awful.tooltip{
|
||||||
@@ -123,4 +123,4 @@ return function ()
|
|||||||
|
|
||||||
get_bluetooth_information()
|
get_bluetooth_information()
|
||||||
return bluetooth_widget
|
return bluetooth_widget
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ return function ()
|
|||||||
shape = function (cr, width, height)
|
shape = function (cr, width, height)
|
||||||
gears.shape.rounded_rect(cr, width, height, 5)
|
gears.shape.rounded_rect(cr, width, height, 5)
|
||||||
end,
|
end,
|
||||||
widget = wibox.widget.background
|
widget = wibox.container.background
|
||||||
}
|
}
|
||||||
|
|
||||||
local set_clock = function ()
|
local set_clock = function ()
|
||||||
@@ -75,4 +75,4 @@ return function ()
|
|||||||
hover_signal(clock_widget, color.color["Orange200"])
|
hover_signal(clock_widget, color.color["Orange200"])
|
||||||
|
|
||||||
return clock_widget
|
return clock_widget
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ return function ()
|
|||||||
shape = function (cr, width, height)
|
shape = function (cr, width, height)
|
||||||
gears.shape.rounded_rect(cr, width, height, 5)
|
gears.shape.rounded_rect(cr, width, height, 5)
|
||||||
end,
|
end,
|
||||||
widget = wibox.widget.background
|
widget = wibox.container.background
|
||||||
}
|
}
|
||||||
|
|
||||||
local set_date = function ()
|
local set_date = function ()
|
||||||
@@ -89,4 +89,4 @@ return function ()
|
|||||||
)
|
)
|
||||||
|
|
||||||
return date_widget
|
return date_widget
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ require("main.signals")
|
|||||||
-- Icon directory path
|
-- Icon directory path
|
||||||
local icondir = awful.util.getdir("config") .. "theme/crylia/assets/icons/kblayout/"
|
local icondir = awful.util.getdir("config") .. "theme/crylia/assets/icons/kblayout/"
|
||||||
|
|
||||||
return function ()
|
return function (s)
|
||||||
local kblayout_widget = wibox.widget{
|
local kblayout_widget = wibox.widget{
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
@@ -52,7 +52,7 @@ return function ()
|
|||||||
shape = function (cr, width, height)
|
shape = function (cr, width, height)
|
||||||
gears.shape.rounded_rect(cr, width, height, 5)
|
gears.shape.rounded_rect(cr, width, height, 5)
|
||||||
end,
|
end,
|
||||||
widget = wibox.widget.background
|
widget = wibox.container.background
|
||||||
}
|
}
|
||||||
|
|
||||||
local layout = "";
|
local layout = "";
|
||||||
@@ -246,6 +246,7 @@ return function ()
|
|||||||
end
|
end
|
||||||
|
|
||||||
local kb_menu_widget = awful.popup{
|
local kb_menu_widget = awful.popup{
|
||||||
|
screen = s,
|
||||||
shape = function (cr, width, height)
|
shape = function (cr, width, height)
|
||||||
gears.shape.rounded_rect(cr, width, height, 5)
|
gears.shape.rounded_rect(cr, width, height, 5)
|
||||||
end,
|
end,
|
||||||
@@ -335,4 +336,4 @@ return function ()
|
|||||||
get_kblayout()
|
get_kblayout()
|
||||||
kb_menu_widget.visible = false
|
kb_menu_widget.visible = false
|
||||||
return kblayout_widget
|
return kblayout_widget
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ return function ()
|
|||||||
shape = function (cr, width, height)
|
shape = function (cr, width, height)
|
||||||
gears.shape.rounded_rect(cr, width, height, 5)
|
gears.shape.rounded_rect(cr, width, height, 5)
|
||||||
end,
|
end,
|
||||||
widget = wibox.widget.background
|
widget = wibox.container.background
|
||||||
}
|
}
|
||||||
|
|
||||||
local network_tooltip = awful.tooltip{
|
local network_tooltip = awful.tooltip{
|
||||||
@@ -334,4 +334,4 @@ return function ()
|
|||||||
)
|
)
|
||||||
|
|
||||||
return network_widget
|
return network_widget
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ return function ()
|
|||||||
shape = function (cr, width, height)
|
shape = function (cr, width, height)
|
||||||
gears.shape.rounded_rect(cr, height, width, 5)
|
gears.shape.rounded_rect(cr, height, width, 5)
|
||||||
end,
|
end,
|
||||||
widget = wibox.widget.background
|
widget = wibox.container.background
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Signals
|
-- Signals
|
||||||
@@ -61,4 +61,4 @@ return function ()
|
|||||||
)
|
)
|
||||||
|
|
||||||
return power_widget
|
return power_widget
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -16,14 +16,14 @@ return function (s)
|
|||||||
local systray = wibox.widget{
|
local systray = wibox.widget{
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
wibox.widget.systray,
|
wibox.widget.systray(),
|
||||||
top = dpi(6),
|
top = dpi(6),
|
||||||
bottom = dpi(6),
|
bottom = dpi(6),
|
||||||
left = dpi(6),
|
left = dpi(6),
|
||||||
right = dpi(6),
|
right = dpi(6),
|
||||||
widget = wibox.container.margin
|
widget = wibox.container.margin,
|
||||||
|
id = 'st'
|
||||||
},
|
},
|
||||||
width = dpi(100),
|
|
||||||
strategy = "exact",
|
strategy = "exact",
|
||||||
layout = wibox.container.constraint,
|
layout = wibox.container.constraint,
|
||||||
id = "container"
|
id = "container"
|
||||||
@@ -36,6 +36,6 @@ return function (s)
|
|||||||
}
|
}
|
||||||
-- Signals
|
-- Signals
|
||||||
hover_signal(systray.container, color.color["Red200"])
|
hover_signal(systray.container, color.color["Red200"])
|
||||||
|
systray.container.st.widget:set_base_size(dpi(20))
|
||||||
return systray
|
return systray
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ local list_update = function (widget, buttons, label, data, objects)
|
|||||||
shape = function (cr, width, height)
|
shape = function (cr, width, height)
|
||||||
gears.shape.rounded_rect(cr, width, height, 5)
|
gears.shape.rounded_rect(cr, width, height, 5)
|
||||||
end,
|
end,
|
||||||
widget = wibox.widget.background
|
widget = wibox.container.background
|
||||||
}
|
}
|
||||||
|
|
||||||
local function create_buttons(buttons, object)
|
local function create_buttons(buttons, object)
|
||||||
@@ -235,12 +235,11 @@ local tag_list = function (s)
|
|||||||
awful.tag.viewprev(t.screen)
|
awful.tag.viewprev(t.screen)
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
)
|
),
|
||||||
,
|
|
||||||
{},
|
{},
|
||||||
list_update,
|
list_update,
|
||||||
wibox.layout.fixed.horizontal()
|
wibox.layout.fixed.horizontal()
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
return tag_list
|
return tag_list
|
||||||
|
|||||||
@@ -6,7 +6,9 @@ local color = require('theme.crylia.colors')
|
|||||||
|
|
||||||
local list_update = function (widget, buttons, label, data, objects)
|
local list_update = function (widget, buttons, label, data, objects)
|
||||||
widget:reset()
|
widget:reset()
|
||||||
|
local count
|
||||||
for i, object in ipairs(objects) do
|
for i, object in ipairs(objects) do
|
||||||
|
count = i
|
||||||
local task_widget = wibox.widget{
|
local task_widget = wibox.widget{
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
@@ -48,7 +50,7 @@ local list_update = function (widget, buttons, label, data, objects)
|
|||||||
shape = function (cr, width, height)
|
shape = function (cr, width, height)
|
||||||
gears.shape.rounded_rect(cr, width, height, 5)
|
gears.shape.rounded_rect(cr, width, height, 5)
|
||||||
end,
|
end,
|
||||||
widget = wibox.widget.background
|
widget = wibox.container.background
|
||||||
}
|
}
|
||||||
|
|
||||||
local task_tool_tip = awful.tooltip{
|
local task_tool_tip = awful.tooltip{
|
||||||
@@ -81,11 +83,9 @@ local list_update = function (widget, buttons, label, data, objects)
|
|||||||
return btns
|
return btns
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
task_widget:buttons(create_buttons(buttons, object))
|
task_widget:buttons(create_buttons(buttons, object))
|
||||||
|
|
||||||
local text, bg, bg_image, icon, args = label(object, task_widget.container.layout_it.title)
|
local text, bg, bg_image, icon, args = label(object, task_widget.container.layout_it.title)
|
||||||
|
|
||||||
if object == client.focus then
|
if object == client.focus then
|
||||||
if text == nil or text == '' then
|
if text == nil or text == '' then
|
||||||
task_widget.container.layout_it.title:set_margins(0)
|
task_widget.container.layout_it.title:set_margins(0)
|
||||||
@@ -109,7 +109,6 @@ local list_update = function (widget, buttons, label, data, objects)
|
|||||||
task_widget.container.layout_it.margin.layout_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:add(task_widget)
|
||||||
widget:set_spacing(dpi(6))
|
widget:set_spacing(dpi(6))
|
||||||
|
|
||||||
local old_wibox, old_cursor, old_bg
|
local old_wibox, old_cursor, old_bg
|
||||||
task_widget:connect_signal(
|
task_widget:connect_signal(
|
||||||
"mouse::enter",
|
"mouse::enter",
|
||||||
@@ -161,16 +160,10 @@ local list_update = function (widget, buttons, label, data, objects)
|
|||||||
end
|
end
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
if (widget.children and #widget.children or 0) == 0 then
|
|
||||||
awesome.emit_signal("hide_centerbar", false)
|
|
||||||
else
|
|
||||||
awesome.emit_signal("hide_centerbar", true)
|
|
||||||
end
|
|
||||||
return widget
|
return widget
|
||||||
end
|
end
|
||||||
|
|
||||||
return function(s)
|
local tasklist = function(s)
|
||||||
return awful.widget.tasklist(
|
return awful.widget.tasklist(
|
||||||
s,
|
s,
|
||||||
awful.widget.tasklist.filter.currenttags,
|
awful.widget.tasklist.filter.currenttags,
|
||||||
@@ -203,4 +196,6 @@ return function(s)
|
|||||||
list_update,
|
list_update,
|
||||||
wibox.layout.fixed.horizontal()
|
wibox.layout.fixed.horizontal()
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return tasklist
|
||||||
|
|||||||
192
rofi/rofi.rasi
192
rofi/rofi.rasi
@@ -1,149 +1,113 @@
|
|||||||
configuration {
|
configuration {
|
||||||
font: "Inter Regular 10";
|
font: "JetBrainsMono NF 12";
|
||||||
show-icons: true;
|
show-icons: true;
|
||||||
drun-display-format: "{name}";
|
icon-theme: "Papirus-Dark";
|
||||||
fullscreen: false;
|
display-drun: "";
|
||||||
threads: 0;
|
drun-display-format: "{name}";
|
||||||
matching: "fuzzy";
|
disable-history: false;
|
||||||
scroll-method: 0;
|
sidebar-mode: false;
|
||||||
disable-history: false;
|
|
||||||
fullscreen: true;
|
|
||||||
window-thumbnail: true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
* {
|
* {
|
||||||
transparent: #00000000;
|
background: #00000060;
|
||||||
foreground: #F2F2F2EE;
|
background-alt: #00000000;
|
||||||
background-selected: #F2F2F245;
|
background-bar: #f2f2f215;
|
||||||
background-active: #F2F2F230;
|
foreground: #f2f2f2EE;
|
||||||
background-white: #F2F2F211;
|
accent: #ffffff66;
|
||||||
background-black: #00000066;
|
|
||||||
urgent: #E91E6366;
|
|
||||||
urgent-selected: #E91E6377;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
window {
|
window {
|
||||||
transparency: "real";
|
transparency: "real";
|
||||||
background-color: @transparent;
|
background-color: @background;
|
||||||
text-color: @foreground;
|
text-color: @foreground;
|
||||||
location: northwest;
|
border: 0px;
|
||||||
anchor: northwest;
|
border-color: @border;
|
||||||
|
border-radius: 0px;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
prompt {
|
prompt {
|
||||||
enabled: false;
|
enabled: true;
|
||||||
}
|
padding: 0.30% -0.5% 0% 0.5%;
|
||||||
|
background-color: @background-alt;
|
||||||
button {
|
text-color: @foreground;
|
||||||
action: "ok";
|
font: "JetBrainsMono Nerd Font 12";
|
||||||
str: " ";
|
|
||||||
font: "FantasqueSansMono Nerd Font 11";
|
|
||||||
expand: false;
|
|
||||||
text-color: @foreground;
|
|
||||||
background-color: @transparent;
|
|
||||||
vertical-align: 0.7;
|
|
||||||
horizontal-align: 0.5;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
entry {
|
entry {
|
||||||
font: "Inter Regular 11";
|
background-color: @background-alt;
|
||||||
background-color: @transparent;
|
text-color: @foreground;
|
||||||
text-color: @foreground;
|
placeholder-color: @foreground;
|
||||||
expand: true;
|
expand: true;
|
||||||
vertical-align: 0.5;
|
horizontal-align: 0;
|
||||||
horizontal-align: 0.5;
|
placeholder: "Search";
|
||||||
placeholder: "Type to search";
|
padding: 0% 0% 0% 0%;
|
||||||
placeholder-color: @foreground;
|
blink: true;
|
||||||
blink: true;
|
|
||||||
}
|
|
||||||
|
|
||||||
case-indicator {
|
|
||||||
background-color: @transparent;
|
|
||||||
text-color: @foreground;
|
|
||||||
vertical-align: 0.5;
|
|
||||||
horizontal-align: 0.5;
|
|
||||||
}
|
|
||||||
|
|
||||||
entry-wrapper {
|
|
||||||
orientation: horizontal;
|
|
||||||
vertical-align: 0.5;
|
|
||||||
spacing: 4px;
|
|
||||||
background-color: @transparent;
|
|
||||||
children: [ button, entry, case-indicator ];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
inputbar {
|
inputbar {
|
||||||
background-color: @background-white;
|
children: [ prompt, entry ];
|
||||||
text-color: @foreground;
|
background-color: @background-bar;
|
||||||
expand: false;
|
text-color: @foreground;
|
||||||
border-radius: 6px;
|
expand: false;
|
||||||
margin: 0px calc((100% - 640px) / 2) 0px calc((100% - 640px) / 2);
|
border: 0.1%;
|
||||||
padding: 10px 10px 10px 10px;
|
border-radius: 8px;
|
||||||
position: north;
|
border-color: @accent;
|
||||||
children: [ entry-wrapper ];
|
margin: 0% 25% 0% 25%;
|
||||||
|
padding: 1%;
|
||||||
}
|
}
|
||||||
|
|
||||||
listview {
|
listview {
|
||||||
background-color: @transparent;
|
background-color: @background-alt;
|
||||||
columns: 6;
|
columns: 7;
|
||||||
spacing: 5px;
|
lines: 4;
|
||||||
cycle: false;
|
spacing: 2%;
|
||||||
dynamic: true;
|
cycle: false;
|
||||||
layout: vertical;
|
dynamic: true;
|
||||||
|
layout: vertical;
|
||||||
}
|
}
|
||||||
|
|
||||||
mainbox {
|
mainbox {
|
||||||
background-color: @background-black;
|
background-color: @background-alt;
|
||||||
children: [ inputbar, listview ];
|
border: 0% 0% 0% 0%;
|
||||||
spacing: 25px;
|
border-radius: 0% 0% 0% 0%;
|
||||||
padding: 70px 15% 0 15%;
|
border-color: @accent;
|
||||||
/*padding: 70px 135px 0 135px;*/
|
children: [ inputbar, listview ];
|
||||||
|
spacing: 8%;
|
||||||
|
padding: 10% 8.5% 10% 8.5%;
|
||||||
}
|
}
|
||||||
|
|
||||||
element {
|
element {
|
||||||
background-color: @transparent;
|
background-color: @background-alt;
|
||||||
text-color: @foreground;
|
text-color: @foreground;
|
||||||
orientation: vertical;
|
orientation: vertical;
|
||||||
border-radius: 12px;
|
border-radius: 0%;
|
||||||
padding: 25px 0 25px 0;
|
padding: 2.5% 0% 2.5% 0%;
|
||||||
}
|
}
|
||||||
|
|
||||||
element-icon {
|
element-icon {
|
||||||
size: 72px;
|
background-color: @background-alt;
|
||||||
border: 0;
|
text-color: inherit;
|
||||||
|
horizontal-align: 0.5;
|
||||||
|
vertical-align: 0.5;
|
||||||
|
size: 81px;
|
||||||
|
border: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
element-text {
|
element-text {
|
||||||
expand: true;
|
background-color: @background-alt;
|
||||||
horizontal-align: 0.5;
|
text-color: inherit;
|
||||||
vertical-align: 0.5;
|
expand: true;
|
||||||
margin: 0 10px 0 10px;
|
horizontal-align: 0.5;
|
||||||
}
|
vertical-align: 0.5;
|
||||||
|
margin: 0.5% 0.5% -0.5% 0.5%;
|
||||||
element normal.urgent,
|
|
||||||
element alternate.urgent {
|
|
||||||
background-color: @urgent;
|
|
||||||
text-color: @foreground;
|
|
||||||
border-radius: 9px;
|
|
||||||
}
|
|
||||||
|
|
||||||
element normal.active,
|
|
||||||
element alternate.active {
|
|
||||||
background-color: @background-active;
|
|
||||||
text-color: @foreground;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
element selected {
|
element selected {
|
||||||
background-color: @background-selected;
|
background-color: @background-bar;
|
||||||
text-color: @foreground;
|
text-color: @foreground;
|
||||||
}
|
border: 0% 0% 0% 0%;
|
||||||
|
border-radius: 12px;
|
||||||
element selected.urgent {
|
border-color: @accent;
|
||||||
background-color: @urgent-selected;
|
|
||||||
text-color: @foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
element selected.active {
|
|
||||||
background-color: @background-active;
|
|
||||||
color: @foreground-selected;
|
|
||||||
}
|
}
|
||||||
|
|||||||
86
rofi/window.rasi
Normal file
86
rofi/window.rasi
Normal file
@@ -0,0 +1,86 @@
|
|||||||
|
configuration {
|
||||||
|
font: "JetBrainsMono NF 12";
|
||||||
|
show-icons: true;
|
||||||
|
icon-theme: "Papirus-Dark";
|
||||||
|
display-drun: "";
|
||||||
|
drun-display-format: "{name}";
|
||||||
|
disable-history: false;
|
||||||
|
sidebar-mode: false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
* {
|
||||||
|
background: #00000000;
|
||||||
|
background-alt: #00000000;
|
||||||
|
background-bar: #f2f2f215;
|
||||||
|
foreground: #f2f2f2EE;
|
||||||
|
accent: #3DAEE966;
|
||||||
|
}
|
||||||
|
|
||||||
|
window {
|
||||||
|
transparency: "real";
|
||||||
|
background-color: #21212188;
|
||||||
|
text-color: @foreground;
|
||||||
|
border: 1px;
|
||||||
|
border-color: @border;
|
||||||
|
border-radius: 25px;
|
||||||
|
//width: 26%;
|
||||||
|
location: center;
|
||||||
|
x-offset: 0;
|
||||||
|
y-offset: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
prompt, entry, inputbar {
|
||||||
|
enabled: false;
|
||||||
|
}
|
||||||
|
|
||||||
|
listview {
|
||||||
|
background-color: @background-alt;
|
||||||
|
columns: 100;
|
||||||
|
lines: 1;
|
||||||
|
spacing: 1%;
|
||||||
|
cycle: false;
|
||||||
|
dynamic: true;
|
||||||
|
layout: vertical;
|
||||||
|
}
|
||||||
|
|
||||||
|
mainbox {
|
||||||
|
background-color: @background-alt;
|
||||||
|
border: 0% 0% 0% 0%;
|
||||||
|
border-color: @accent;
|
||||||
|
children: [ inputbar, listview ];
|
||||||
|
spacing: 2%;
|
||||||
|
padding: 2% 1% 2% 1%;
|
||||||
|
}
|
||||||
|
|
||||||
|
element {
|
||||||
|
background-color: @background-alt;
|
||||||
|
text-color: @foreground;
|
||||||
|
orientation: vertical;
|
||||||
|
padding: 2.5% 0% 2.5% 0%;
|
||||||
|
}
|
||||||
|
|
||||||
|
element-icon {
|
||||||
|
background-color: @background-alt;
|
||||||
|
text-color: inherit;
|
||||||
|
horizontal-align: 0.5;
|
||||||
|
vertical-align: 0.5;
|
||||||
|
size: 6%;
|
||||||
|
}
|
||||||
|
|
||||||
|
element-text {
|
||||||
|
background-color: @background-alt;
|
||||||
|
text-color: inherit;
|
||||||
|
expand: false;
|
||||||
|
horizontal-align: 0.5;
|
||||||
|
vertical-align: 0.5;
|
||||||
|
margin: 0.5% 0.5% -0.5% 0.5%;
|
||||||
|
}
|
||||||
|
|
||||||
|
element selected {
|
||||||
|
background-color: #40404088;
|
||||||
|
text-color: @foreground;
|
||||||
|
border: 0% 0% 0% 0%;
|
||||||
|
border-radius: 12px;
|
||||||
|
border-color: @accent;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user