Question: grim

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.

10 points · 4 comments · view on lemmy.world

4 Comments

iii@mander.xyz · 9 pts · 1y

sleep 5 && yourcommand

(1)

Ephera@lemmy.ml · 7 pts · 1y (2 replies)

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 · 5 pts · 1y

That worked perfectly! Thanks!

HotsauceHurricane@lemmy.one · 3 pts · 1y

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!