Question: grim
from HotsauceHurricane@lemmy.one to linux@lemmy.ml on 08 Nov 18:46
https://lemmy.one/post/21019201

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.

#linux

threaded - newest

Ephera@lemmy.ml on 08 Nov 18:50 next collapse

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.

HotsauceHurricane@lemmy.one on 08 Nov 18:54 next collapse

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!

HotsauceHurricane@lemmy.one on 08 Nov 20:26 collapse

That worked perfectly! Thanks!

iii@mander.xyz on 08 Nov 18:50 collapse

sleep 5 && yourcommand

(1)