From f594c7126ca1fece657a22fd9873c7e7aee52d12 Mon Sep 17 00:00:00 2001 From: punkfairie <23287005+punkfairie@users.noreply.github.com> Date: Sat, 24 Feb 2024 19:54:19 -0800 Subject: [PATCH] =?UTF-8?q?=E2=9A=B0=EF=B8=8F=20refactor(awesome):=20Remov?= =?UTF-8?q?e=20main.apps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/awesome/main/apps.lua | 10 ---------- .config/awesome/main/rules.lua | 4 ++-- 2 files changed, 2 insertions(+), 12 deletions(-) delete mode 100644 .config/awesome/main/apps.lua diff --git a/.config/awesome/main/apps.lua b/.config/awesome/main/apps.lua deleted file mode 100644 index f117535..0000000 --- a/.config/awesome/main/apps.lua +++ /dev/null @@ -1,10 +0,0 @@ - -local apps = { - terminal = "alacritty", - launcher = "rofi -no-lazy-grab -show drun -theme ~/.config/rofi/launcher.rasi", - browser = "firefox", - file_manager = "thunar", - code_editor = "vscodium", - music_player = "alacritty --class music -e ncmpcpp", -} -return apps diff --git a/.config/awesome/main/rules.lua b/.config/awesome/main/rules.lua index 39d298f..f85ab58 100644 --- a/.config/awesome/main/rules.lua +++ b/.config/awesome/main/rules.lua @@ -2,7 +2,7 @@ local awful = require("awful") local ruled = require("ruled") local dpi = require("beautiful.xresources").apply_dpi local helpers = require("helpers") -local apps = require("main.apps") +local config = require("config") ruled.client.connect_signal("request::rules", function() ruled.client.append_rule({ @@ -27,7 +27,7 @@ ruled.client.connect_signal("request::rules", function() }) ruled.client.append_rule({ - rule = { class = apps["launcher"] }, + rule = { class = config.apps.launcher }, properties = { titlebars_enabled = false, },