Add reveletaion + rename bottom right to bottom left
This commit is contained in:
parent
e1aa18dbed
commit
fe159655c3
4 changed files with 100 additions and 4 deletions
|
@ -11,7 +11,7 @@ local wibox = require("wibox")
|
||||||
|
|
||||||
return function(s, widgets)
|
return function(s, widgets)
|
||||||
|
|
||||||
local bottom_right = awful.popup {
|
local bottom_left = awful.popup {
|
||||||
widget = wibox.container.background,
|
widget = wibox.container.background,
|
||||||
ontop = false,
|
ontop = false,
|
||||||
bg = color["Grey900"],
|
bg = color["Grey900"],
|
||||||
|
@ -24,7 +24,7 @@ return function(s, widgets)
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
bottom_right:struts {
|
bottom_left:struts {
|
||||||
bottom = 65
|
bottom = 65
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ return function(s, widgets)
|
||||||
return layout
|
return layout
|
||||||
end
|
end
|
||||||
|
|
||||||
bottom_right:setup {
|
bottom_left:setup {
|
||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
prepare_widgets(widgets),
|
prepare_widgets(widgets),
|
|
@ -61,7 +61,7 @@ awful.screen.connect_for_each_screen(
|
||||||
require("crylia_bar.left_bar")(s, { s.layoutlist, s.taglist })
|
require("crylia_bar.left_bar")(s, { s.layoutlist, 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.gpu_temp, s.cpu_temp, s.ram_info, s.kblayout, s.bluetooth, s.network, s.clock, s.powerbutton })
|
require("crylia_bar.right_bar")(s, { s.gpu_temp, s.cpu_temp, s.ram_info, s.kblayout, s.bluetooth, s.network, s.clock, s.powerbutton })
|
||||||
require("crylia_bar.bottom_right_bar")(s, { s.mpris })
|
require("crylia_bar.bottom_left_bar")(s, { s.mpris })
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
|
|
|
@ -6,6 +6,8 @@ local ruled = require("ruled")
|
||||||
|
|
||||||
local modkey = user_vars.modkey
|
local modkey = user_vars.modkey
|
||||||
local switcher = require("src.modules.awesome_switcher")
|
local switcher = require("src.modules.awesome_switcher")
|
||||||
|
local revelation = require("src.modules.revelation")
|
||||||
|
revelation.init()
|
||||||
|
|
||||||
return gears.table.join(
|
return gears.table.join(
|
||||||
awful.key(
|
awful.key(
|
||||||
|
@ -49,6 +51,12 @@ return gears.table.join(
|
||||||
end,
|
end,
|
||||||
{ description = "Focus previous client by index", group = "Client" }
|
{ description = "Focus previous client by index", group = "Client" }
|
||||||
),
|
),
|
||||||
|
awful.key(
|
||||||
|
{ modkey, "Shift" },
|
||||||
|
"w",
|
||||||
|
revelation,
|
||||||
|
{ description = "Focus previous client by index", group = "Client" }
|
||||||
|
),
|
||||||
--awful.key(
|
--awful.key(
|
||||||
-- { "Mod1" },
|
-- { "Mod1" },
|
||||||
-- "#23",
|
-- "#23",
|
||||||
|
@ -209,6 +217,14 @@ return gears.table.join(
|
||||||
end,
|
end,
|
||||||
{ descripton = "Client switcher (alt+tab)", group = "Application" }
|
{ descripton = "Client switcher (alt+tab)", group = "Application" }
|
||||||
),
|
),
|
||||||
|
awful.key(
|
||||||
|
{ modkey },
|
||||||
|
"#25",
|
||||||
|
function()
|
||||||
|
awful.spawn("rofi -show window -theme ~/.config/rofi/window.rasi")
|
||||||
|
end,
|
||||||
|
{ descripton = "Client switcher (alt+tab)", group = "Application" }
|
||||||
|
),
|
||||||
awful.key(
|
awful.key(
|
||||||
{ modkey },
|
{ modkey },
|
||||||
"#26",
|
"#26",
|
||||||
|
|
80
src/widgets/notification_list.lua
Normal file
80
src/widgets/notification_list.lua
Normal file
|
@ -0,0 +1,80 @@
|
||||||
|
---------------------------------
|
||||||
|
-- This is the mPris2 widget --
|
||||||
|
---------------------------------
|
||||||
|
|
||||||
|
-- Awesome Libs
|
||||||
|
local awful = require("awful")
|
||||||
|
local naughty = require("naughty")
|
||||||
|
local color = require("src.theme.colors")
|
||||||
|
local cat = require("src.theme.catppuccin")
|
||||||
|
local dpi = require("beautiful").xresources.apply_dpi
|
||||||
|
local gears = require("gears")
|
||||||
|
local wibox = require("wibox")
|
||||||
|
require("src.core.signals")
|
||||||
|
|
||||||
|
-- Icon directory path
|
||||||
|
local icon_dir = awful.util.getdir("config") .. "src/assets/icons/mpris/"
|
||||||
|
|
||||||
|
-- Returns the mPris widget
|
||||||
|
return function()
|
||||||
|
|
||||||
|
local notification_list = wibox.widget {
|
||||||
|
{
|
||||||
|
{
|
||||||
|
{
|
||||||
|
{
|
||||||
|
{
|
||||||
|
id = "icon",
|
||||||
|
image = gears.color.recolor_image(icon_dir .. "disc" .. ".png", cat["Crust"]),
|
||||||
|
widget = wibox.widget.imagebox,
|
||||||
|
resize = true
|
||||||
|
},
|
||||||
|
id = "icon_layout",
|
||||||
|
widget = wibox.container.place
|
||||||
|
},
|
||||||
|
widget = wibox.container.margin,
|
||||||
|
id = "icon_margin"
|
||||||
|
},
|
||||||
|
spacing = dpi(10),
|
||||||
|
{
|
||||||
|
{
|
||||||
|
{
|
||||||
|
id = "title",
|
||||||
|
font = "UbuntuMono Nerd Font, Bold 11",
|
||||||
|
align = "left",
|
||||||
|
widget = wibox.widget.textbox
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = "desc",
|
||||||
|
font = "UbuntuMono Nerd Font, Bold 8",
|
||||||
|
align = "left",
|
||||||
|
widget = wibox.widget.textbox
|
||||||
|
},
|
||||||
|
id = "label",
|
||||||
|
layout = wibox.layout.fixed.vertical
|
||||||
|
},
|
||||||
|
id = "label_margin",
|
||||||
|
top = dpi(2),
|
||||||
|
widget = wibox.container.margin
|
||||||
|
},
|
||||||
|
id = "mpris_layout",
|
||||||
|
layout = wibox.layout.fixed.horizontal
|
||||||
|
},
|
||||||
|
id = "container",
|
||||||
|
right = dpi(10),
|
||||||
|
widget = wibox.container.margin
|
||||||
|
},
|
||||||
|
bg = cat["Lavender"],
|
||||||
|
fg = cat["Crust"],
|
||||||
|
shape = function(cr, width, height)
|
||||||
|
gears.shape.rounded_rect(cr, width, height, 5)
|
||||||
|
end,
|
||||||
|
forced_height = 65,
|
||||||
|
widget = wibox.container.background
|
||||||
|
}
|
||||||
|
|
||||||
|
Hover_signal(notification_list, cat["Lavender"], cat["Crust"])
|
||||||
|
|
||||||
|
return notification_list
|
||||||
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue