Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

scratchpads not working with st terminal #212

@aldevv

Description

@aldevv

I have the following code in a default awesome wm config:

local term_scratch = bling.module.scratchpad:new {
  -- command                 = "alacritty --class spad",
  command                 = "st -c spad",
  rule                    = { instance = "spad" },
  sticky                  = false,
  autoclose               = false,
  floating                = true,
  geometry                = { x = 560, y = 240, height = 600, width = 800 },
  reapply                 = true,
  dont_focus_before_close = true,
}

local scratchpads = {
  awful.key({ modkey, }, "c", function()
    term_scratch:toggle()
  end, { description = "show mai scratchz", group = "awesome" })

}

and I add it to my keybindings like this:

globalkeys = gears.table.join(
  scratchpads[1],
  awful.key({ modkey, }, "s", hotkeys_popup.show_help,
  ...

the issue is that each time I press the keybinding a new terminal is opened instead of toggling the same terminal, i tested with alacritty and is working as expected, checked with xprop and the class in st is set correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions