♻️ refactor(awesome): Move hardcoded icons to variables

This commit is contained in:
punkfairie 2024-02-24 12:35:19 -08:00
parent 80b53645cb
commit 42a2b3b7c2
3 changed files with 22 additions and 2 deletions

View file

@ -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 = {

View file

@ -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 = {}

View file

@ -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)