leftwm: ScratchPad does not follow rules

Describe the bug When I trigger the ScatchPad, it opens as if it was not a scratchpad but a normal window.

  • When I trigger the keybinding again, It should disappear, and NO … => Another
  • window is open 😕

To Reproduce [scratchpad]] name = “Alacritty” value = “terminator” x = 0.20 y = 0.20 height = 0.80 width = 0.54

[[keybind]] command = “ToggleScratchPad” value = “Alacritty” # Name set for the scratchpad modifier = [“modkey”] key = “s”

Expected behavior SCrtchPad should appear and disappear.

Environment:

  • OS/Distro: Ubuntu 20.04

leftwm-check :: LeftWM version: 0.3.0 :: LeftWM git hash: 9ad1dfd :: Loading configuration . . . -> Configuration loaded OK :: Checking keybinds . . . -> All keybinds OK :: Checking environment . . . -> Environment OK :: Checking theme . . . ERROR: commands.pipe is deprecated. See https://github.com/leftwm/leftwm/issues/652 for workaround.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 21 (9 by maintainers)

Most upvoted comments

Ah you’re right. I forgot to double escape the quotes inside the bash -c command. This works:

    scratchpad: [
        (
            name: "Alacritty",
            value: "WINIT_X11_SCALE_FACTOR=1 alacritty -t \"Alacritty - Scratch\" -o window.opacity=0.8 -e bash -c \"tmux a -t scratch || tmux \\\"new-session;\\\" rename-session scratch\"",
            x: 0.05,
            y: 35,
            height: 0.5,
            width: 0.9
        ),
    ],