New Setup 📦
This commit is contained in:
parent
d16174b447
commit
415dbd08a1
10194 changed files with 1368647 additions and 4 deletions
30
home/.config/awesome/ui/widgets/launcher.lua
Normal file
30
home/.config/awesome/ui/widgets/launcher.lua
Normal file
|
@ -0,0 +1,30 @@
|
|||
-- ## Launcher ##
|
||||
-- ~~~~~~~~~~~~~~
|
||||
|
||||
-- Requirements :
|
||||
-- ~~~~~~~~~~~~~~
|
||||
local gears = require("gears")
|
||||
local awful = require("awful")
|
||||
local wibox = require("wibox")
|
||||
|
||||
-- # Libs :
|
||||
-- ~~~~~~~~
|
||||
local helpers = require("libs.helpers")
|
||||
|
||||
-- launcher :
|
||||
local launcher = wibox.widget{
|
||||
widget = wibox.widget.textbox,
|
||||
font = theme.ui_font,
|
||||
markup = helpers.colorize_text(" ", colors.main_scheme),
|
||||
align = "center",
|
||||
valign = "center",
|
||||
}
|
||||
|
||||
launcher:buttons(gears.table.join({
|
||||
awful.button({ }, 1, function ()
|
||||
awful.spawn.with_shell(require("libs.misc").rofiCommand, false)
|
||||
end)
|
||||
|
||||
}))
|
||||
|
||||
return launcher
|
Loading…
Add table
Add a link
Reference in a new issue