Is there a way to set a five second timer for grim via the terminal? I want to take a screenshot, but the thing i want to screenshot disappears once i try another keycombo or select a new window.

  • Ephera@lemmy.ml
    link
    fedilink
    arrow-up
    9
    ·
    2 months ago

    You can probably just do sleep 5 && grim as the program to run.

    It depends on your desktop environment or window manager, how you’d bind a command to a keybind.

    • HotsauceHurricaneOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 months ago

      I use sway so keybinds are bindsym $mod+p exec grim ^ super simple version of my my grim keybind. I tie it with slurp. Either way, i’ll give it a shot!