diff --git a/rabbithole/components/keys/global.lua b/rabbithole/components/keys/global.lua index 20f1dd7f..526209f4 100644 --- a/rabbithole/components/keys/global.lua +++ b/rabbithole/components/keys/global.lua @@ -157,7 +157,7 @@ return setmetatable({}, { { description = "lua execute prompt", group = "awesome" }), -- quake style dropdown terminal bound to mod4 + \ - awful.key({ modkey }, "\\", function () awful.screen.focused().quake:toggle() end, {description = "dropdown application", group = "launcher"}), + awful.key({ modkey }, "\\", function () awful.screen.focused().dropdown:toggle() end, {description = "dropdown application", group = "launcher"}), -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Resize diff --git a/rabbithole/services/quake.lua b/rabbithole/services/dropdown.lua similarity index 98% rename from rabbithole/services/quake.lua rename to rabbithole/services/dropdown.lua index bb5abe52..42a1a654 100644 --- a/rabbithole/services/quake.lua +++ b/rabbithole/services/dropdown.lua @@ -50,7 +50,7 @@ function quake:display() if not client then -- The client does not exist, we spawn it - cmd = string.format("%s %s %s", self.app, + local cmd = string.format("%s %s %s", self.app, string.format(self.argname, self.name), self.extra) awful.spawn(cmd, { tag = self.screen.selected_tag }) return diff --git a/rabbithole/ui/default/init.lua b/rabbithole/ui/default/init.lua index 99d3adb8..de389589 100644 --- a/rabbithole/ui/default/init.lua +++ b/rabbithole/ui/default/init.lua @@ -1,7 +1,7 @@ local awful = require("awful") local beautiful = require("beautiful") local bling = require("sub.bling") -local quake = require("rabbithole.services.quake") +local dropdown = require("rabbithole.services.dropdown") local UserInterface = {} @@ -26,7 +26,7 @@ function UserInterface.new( rabbithole__ui__default__center(s) -- create dropdown terminal box for each screen - s.quake = quake({ app = "alacritty",argname = "--title %s",extra = "--class QuakeDD -e tmux", visible = true, height = 0.9, screen = s }) + s.dropdown = dropdown({ app = "alacritty",argname = "--title %s",extra = "--class QuakeDD -e tmux", visible = true, height = 0.9, screen = s }) -- set dpi of screens local resolution = s.geometry.width * s.geometry.height