♻️ refactor(awesome): Move hardcoded icons to variables
This commit is contained in:
parent
80b53645cb
commit
42a2b3b7c2
3 changed files with 22 additions and 2 deletions
|
@ -16,6 +16,21 @@ M.apps = {
|
|||
M.apps.start_editor = M.apps.terminal .. "-e" .. M.apps.editor
|
||||
M.apps.music_player = M.apps.terminal .. "--class music -e ncmpcpp"
|
||||
|
||||
M.theme = {
|
||||
flavor = "macchiato",
|
||||
accent = "pink",
|
||||
icons = {},
|
||||
}
|
||||
|
||||
M.theme.icons.tags = {
|
||||
general = " ",
|
||||
files = " ",
|
||||
media = " ",
|
||||
terminal = " ",
|
||||
coding = " ",
|
||||
misc = " ",
|
||||
}
|
||||
|
||||
M.widget = {}
|
||||
|
||||
M.widget.weather = {
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
local awful = require("awful")
|
||||
local theme = require("beautiful").get()
|
||||
local gears = require("gears")
|
||||
local wibox = require("wibox")
|
||||
local helpers = require("helpers")
|
||||
local hotkeys_popup = require("awful.hotkeys_popup")
|
||||
|
||||
local theme = require("beautiful").get()
|
||||
local apps = require("config").apps
|
||||
|
||||
local menu = {}
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
local awful = require("awful")
|
||||
local icons = require("config").theme.icons.tags
|
||||
|
||||
screen.connect_signal("request::desktop_decoration", function(s)
|
||||
awful.tag({ " ", " ", " ", " ", " ", " " }, s, awful.layout.layouts[1])
|
||||
awful.tag(
|
||||
{ icons.general, icons.files, icons.media, icons.terminal, icons.coding, icons.misc },
|
||||
s,
|
||||
awful.layout.layouts[1]
|
||||
)
|
||||
end)
|
||||
|
|
Loading…
Reference in a new issue