Skip to content

util.quake: how to toggle Alacritty when class_id is not set #536

@lpanebr

Description

@lpanebr

I have two quake definitions and corresponding bindings:

  awful.key({ modkey, }, "v", function () qvolume:toggle() end),
  awful.key({ modkey }, "t", function () qtext:toggle() end),

Problem:

  1. The spad_volume works perfectly toggling
  2. The TextScratchpad opens but instead of closing it opens other instances.

Definitions:

local qvolume = lain.util.quake(
  {
    app = "alacritty",
    name = "spad_volume",
    argname = "-t volume",
    extra = "-o font.size=10 -e pulsemixer",
    followtag = true,
  }
)
local qtext = lain.util.quake(
  {
    app = "alacritty",
    name = "TextScratchpad",
    argname = "-t TextScratchpad",
    extra = "--working-directory /tmp/ -o font.size=8 -e nvim /tmp/tmp.txt",
    followtag = true,
  }
)

What am I missing?

Versions:

 > awesome -v
awesome v4.3 (Too long)
 • Compiled against Lua 5.3.3 (running with Lua 5.3)
 • D-Bus support: ✔
 • execinfo support: ✔
 • xcb-randr version: 1.6
 • LGI version: 0.9.2

~/tmp
> lua -v
zsh: permission denied: lua

It could be the "permission denied" but everything else works...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions