Skip to content

Commit

Permalink
Making dropdown container universal
Browse files Browse the repository at this point in the history
  • Loading branch information
LycanDarko666 committed Sep 14, 2023
1 parent 1ebdfca commit 3372edb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rabbithole/components/keys/global.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions rabbithole/ui/default/init.lua
Original file line number Diff line number Diff line change
@@ -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 = {}
Expand All @@ -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
Expand Down

0 comments on commit 3372edb

Please sign in to comment.