From 42a2b3b7c2d414bd3b80c67aca5f6e1d8a1fa979 Mon Sep 17 00:00:00 2001 From: punkfairie <23287005+punkfairie@users.noreply.github.com> Date: Sat, 24 Feb 2024 12:35:19 -0800 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(awesome):=20Move?= =?UTF-8?q?=20hardcoded=20icons=20to=20variables?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/awesome/config.lua | 15 +++++++++++++++ .config/awesome/main/menu.lua | 2 +- .config/awesome/main/tags.lua | 7 ++++++- 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/.config/awesome/config.lua b/.config/awesome/config.lua index d2e340e..8b559cd 100644 --- a/.config/awesome/config.lua +++ b/.config/awesome/config.lua @@ -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 = { diff --git a/.config/awesome/main/menu.lua b/.config/awesome/main/menu.lua index b71b782..d5d81f1 100644 --- a/.config/awesome/main/menu.lua +++ b/.config/awesome/main/menu.lua @@ -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 = {} diff --git a/.config/awesome/main/tags.lua b/.config/awesome/main/tags.lua index d7d3c44..6efe465 100644 --- a/.config/awesome/main/tags.lua +++ b/.config/awesome/main/tags.lua @@ -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)