#how to bind scrot to a keyboard shortcut in i3?
30 messages · Page 1 of 1 (latest)
dead chat
Why do you need to run it in kitty?
thats what i want to know
I was trying to run it and it only worked if I ran it through a terminal
exec is an i3 keyword, whatever follows it is run as a shell command. The reason the first fails is because scrot isn't an i3 command, so it doesn't know what to do with it
so whats the solution
remove kitty before the scrot
use exec as the i3 command, and follow it with the command you want to run
I tried that and it didnt work
exec scrot
Basically, the bindsym takes two args, a key combo and an i3 command to run. scrot is not an i3 command, but exec scrot is.
trust me I tried it doesnt work
I have it as bindsym $mod+m exec scort without the --select even and still doesnt work
is there a way to run the terminal in the background so that it doesnt show up
Could you open up a terminal normally, type scrot --select and tell us what happens?
it works as intended
So just to be absolutely clear, you've tried setting your i3 config line to bindsym $mod+m exec scrot --select, saved the file, reloaded i3 ($mod+shift+r by default I think), and then tried the bind?
yep
You reloaded the config after the change? Sometimes I forget to reload when tweaking.