When added to i3wm config, setxkbmap commands don't take effect

I need a second layout on my PC, so I added some setxkbmap commands in my .i3/config, right under the set $mod Mod4 line. Here is how it looks like:
exec --no-startup-id "setxkbmap -layout us,ru -option 'grp:win_space_toggle'"
If I enter this command to the terminal, it works as expected. But, despite the fact that the commands are in the config, they don’t really change anything. I guess i3wm should be running them, and they work when ran manually - so what can be the problem here?

Hi!
Try adding sleep 10 to the command, it’ll be like this
sleep 10 ; setxbmap .........

exec --no-startup-id "setxkbmap -layout us,ru -option grp:alt_shift_toggle"

might work
or as you want it grp:win_space_toggle
There is no need for the extra '
Also, what do you have set in /etc/X11/xorg.conf.d/00-keyboard.conf ?